-
Notifications
You must be signed in to change notification settings - Fork 3
/
mgob.yaml
80 lines (79 loc) · 2.56 KB
/
mgob.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# Note that two backup plans are provided as templates - they contain dummy values and should be changed before
# attempting to apply the chart to your cluster.
replicaCount: 1
image:
repository: stefanprodan/mgob
pullPolicy: IfNotPresent
# We need edge to be able to use the "configMap.data[name].target.params", required to set the auth db.
# When this is official, update to the proper stable release.
#
# @see https://github.com/stefanprodan/mgob/commit/b70e86b3acba8c82447a568cfcdd31fbd5ee3f7c
tag: edge
service:
name: mgob
externalPort: 8090
internalPort: 8090
selector:
role: mongo-backup
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
storage:
longTerm:
accessMode: "ReadWriteOnce"
storageClass: "standard" # Note: Use the storage class for your cloud provider.
name: "mgob-storage"
size: 10Gi
tmp:
accessMode: "ReadWriteOnce"
storageClass: "standard" # Note: Use the storage class for your cloud provider.
name: "mgob-tmp"
size: 3Gi
configMap:
name: "mgob-config"
data:
# Add each plan as per below.
sugarizer-database.yml: |
target:
host: "mymongodb-mongodb-replicaset-0.mymongodb-mongodb-replicaset.default,mymongodb-mongodb-replicaset-1.mymongodb-mongodb-replicaset.default,mymongodb-mongodb-replicaset-2.mymongodb-mongodb-replicaset.default"
port: 27017
database: ""
scheduler:
cron: "0 0,6,12,18 */1 * *"
retention: 14
timeout: 60
gcloud:
bucket: "BucketName"
keyFilePath: /secret/service-acc-secret/service-account.json
s3:
url: "https://s3.region.amazonaws.com"
bucket: "BucketName"
accessKey: "AccessKey"
secretKey: "SecretKey"
api: "S3v4"
azure:
containerName: "ContainerName"
connectionString: "ConnectionString"
secret: # Will be mainly required for GCloud Storage
- name: service-acc-secret
## You can either insert your secret values as part of helm values, or refer externally created secrets.
#- name: gcp-example-secret-name
#- name: gcp-example-secret-name-with-values
# data:
# service-account.json: |
# {
# "type": "service_account",
# "project_id": "your-gcp-project-id",
# "private_key_id": "12345678901234567890",
# "private_key": "-----BEGIN PRIVATE KEY-----\n...........\n-----END PRIVATE KEY-----\n",
# ...
# }
env: {}
#- name: HTTPS_PROXY
# value: "http://localhost:3128"