forked from dgraph-io/charts
/
values.yaml
634 lines (558 loc) · 21.9 KB
/
values.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
## Global Docker image parameters
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry and imagePullSecrets
##
# global:
# imageRegistry: myRegistryName
# imagePullSecrets:
# - myRegistryKeySecretName
image: &image
registry: docker.io
repository: dgraph/dgraph
tag: v21.03.1
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistryKeySecretName
## Set to true if you would like to see extra information on logs
## It turns BASH and NAMI debugging in minideb
## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging
##
debug: false
zero:
name: zero
metrics:
enabled: true
monitorLabel: zero-dgraph-io
## StatefulSet controller supports automated updates. There are two valid update strategies: RollingUpdate and OnDelete
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
##
updateStrategy: RollingUpdate
## Scheduler name
## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName: stork
## Partition update strategy
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
##
# rollingUpdatePartition:
## StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
##
podManagementPolicy: OrderedReady
## Number of dgraph zero pods
##
replicaCount: 3
## Max number of replicas per data shard.
## i.e., the max number of Dgraph Alpha instances per group (shard).
##
shardReplicaCount: 5
## zero server pod termination grace period
##
terminationGracePeriodSeconds: 60
## Hard means that by default pods will only be scheduled if there are enough nodes for them
## and that they will never end up on the same node. Setting this to soft will do this "best effort"
antiAffinity: soft
## By default this will make sure two pods don't end up on the same node
## Changing this to a region would allow you to spread pods across regions
podAntiAffinitytopologyKey: "kubernetes.io/hostname"
## This is the node affinity settings as defined in
## https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
nodeAffinity: {}
## Extra environment variables which will be appended to the env: definition for the container.
extraEnvs: []
## Extra flags for command line flags in command
extraFlags: ""
## Configuration file for dgraph zero used as an alternative to command-line options
## Ref: https://dgraph.io/docs/deploy/#config
configFile: {}
## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer
##
service:
type: ClusterIP
annotations: {}
## StatefulSet pods will need to have addresses published in order to
## communicate to each other in order to enter a ready state.
publishNotReadyAddresses: true
## References:
## * General: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
## * GKE: https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#lb_subnet
## * AKS: https://docs.microsoft.com/en-us/azure/aks/ingress-static-ip
loadBalancerIP: ""
## References:
## * General: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
## * EKS: https://aws.amazon.com/blogs/opensource/network-load-balancer-support-in-kubernetes-1-9/
## * AKS: https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard#maintain-the-clients-ip-on-inbound-connections
externalTrafficPolicy: ""
## References:
## * General: https://kubernetes.io/docs/concepts/services-networking/service/#aws-nlb-support
## * GKE: https://cloud.google.com/kubernetes-engine/docs/concepts/security-overview#filtering_load_balanced_traffic
## * EKS: https://aws.amazon.com/premiumsupport/knowledge-center/eks-cidr-ip-address-loadbalancer/
## * AKS: https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard#restrict-inbound-traffic-to-specific-ip-ranges
loadBalancerSourceRanges: []
## dgraph Pod Security Context
securityContext:
enabled: false
fsGroup: 1001
runAsUser: 1001
## TLS Configuration
tls:
enabled: false
## Files created from './tls' directory set with `dgraph cert` command
## Can use make_tls_secrets.sh to generate secrets.yaml
files: {}
## dgraph data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
persistence:
enabled: true
# storageClass: "-"
accessModes:
- ReadWriteOnce
size: 32Gi
## Node labels and tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
##
nodeSelector: {}
tolerations: []
## Configure resource requests
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
requests:
memory: 100Mi
## Configure extra options for startup, liveness and readiness probes.
## NOTE: startupProbe only support in Kubernetes v1.16+
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
##
startupProbe:
enabled: false
port: 6080
path: /health
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
livenessProbe:
enabled: false
port: 6080
path: /health
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: false
port: 6080
path: /health
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
## Custom liveness and readiness probes
customStartupProbe: {}
customLivenessProbe: {}
customReadinessProbe: {}
alpha:
name: alpha
metrics:
enabled: true
monitorLabel: alpha-dgraph-io
## StatefulSet controller supports automated updates. There are two valid update strategies: RollingUpdate and OnDelete
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
##
updateStrategy: RollingUpdate
## Scheduler name
## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName: stork
## Partition update strategy
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
##
# rollingUpdatePartition:
## StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
##
podManagementPolicy: OrderedReady
## Number of dgraph nodes
##
replicaCount: 3
## alpha server pod termination grace period
##
terminationGracePeriodSeconds: 600
## Hard means that by default pods will only be scheduled if there are enough nodes for them
## and that they will never end up on the same node. Setting this to soft will do this "best effort"
antiAffinity: soft
## By default this will make sure two pods don't end up on the same node
## Changing this to a region would allow you to spread pods across regions
podAntiAffinitytopologyKey: "kubernetes.io/hostname"
## This is the node affinity settings as defined in
## https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature
nodeAffinity: {}
## Extra environment variables which will be appended to the env: definition for the container.
extraEnvs: []
# - name: AWS_ACCESS_KEY_ID
# value: "XXXXXXXXXXXXXXXXXXXX"
# - name: AWS_SECRET_ACCESS_KEY
# value: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
## Extra flags for command line flags in command
extraFlags: ""
## Configuration file for dgraph alpha used as an alternative to command-line options
## Ref: https://dgraph.io/docs/deploy/#config
configFile: {}
## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer
##
service:
type: ClusterIP
annotations: {}
## StatefulSet pods will need to have addresses published in order to
## communicate to each other in order to enter a ready state.
publishNotReadyAddresses: true
## References:
## * General: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
## * GKE: https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#lb_subnet
## * AKS: https://docs.microsoft.com/en-us/azure/aks/ingress-static-ip
loadBalancerIP: ""
## References:
## * General: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
## * EKS: https://aws.amazon.com/blogs/opensource/network-load-balancer-support-in-kubernetes-1-9/
## * AKS: https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard#maintain-the-clients-ip-on-inbound-connections
externalTrafficPolicy: ""
## References:
## * General: https://kubernetes.io/docs/concepts/services-networking/service/#aws-nlb-support
## * GKE: https://cloud.google.com/kubernetes-engine/docs/concepts/security-overview#filtering_load_balanced_traffic
## * EKS: https://aws.amazon.com/premiumsupport/knowledge-center/eks-cidr-ip-address-loadbalancer/
## * AKS: https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard#restrict-inbound-traffic-to-specific-ip-ranges
loadBalancerSourceRanges: []
## alpha ingress resource configuration
## This requires an ingress controller to be installed into your k8s cluster
ingress:
enabled: false
# hostname: ""
# annotations: {}
# tls: {}
## alpha GRPC ingress resource configuration
## This requires an ingress controller to be installed into your k8s cluster
ingress_grpc:
enabled: false
# hostname: ""
# annotations: {}
# tls: {}
## dgraph Pod Security Context
securityContext:
enabled: false
fsGroup: 1001
runAsUser: 1001
## TLS Configuration
## Documentation on dgraph alpha TLS options,
## see https://dgraph.io/docs/deploy/#tls-options
tls:
enabled: false
## Files created from './tls' directory set with `dgraph cert` command
## Can use make_tls_secrets.sh to generate secrets.yaml
files: {}
## ACL Configuration
## Documentation on Enterprise ACL Feature
## see https://dgraph.io/docs/enterprise-features/access-control-lists/
acl:
enabled: false
## The values in `file: {}` will be the filename as key and the file data as the value.
## Make sure that the filename key matches the dgraph configuration of `acl_secret_file`
# file:
# ## value for 1234567890123456789012345678901
# ## Note that Kubernetes secrets must be base64-encoded
# hmac_secret_file: MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMQo=
## Encryption at Rest Configuration
## Documentation on Enterprise ACL Feature
## see https://dgraph.io/docs/enterprise-features/encryption-at-rest/
encryption:
enabled: false
## The values in `file: {}` will be the filename as key and the file data as the value.
## Make sure that the filename key matches the dgraph configuration of `encryption_key_file`
# file:
# ## value for 123456789012345
# ## Note that Kubernetes secrets must be base64-encoded
# enc_key_file: MTIzNDU2Nzg5MDEyMzQ1Cg==
## dgraph data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
persistence:
enabled: true
# storageClass: "-"
accessModes:
- ReadWriteOnce
size: 100Gi
annotations: {}
## Node labels and tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
##
nodeSelector: {}
tolerations: []
## Configure resource requests
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
requests:
memory: 100Mi
## Configure extra options for startup, liveness and readiness probes
## NOTE: startupProbe only support in Kubernetes v1.16+
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
##
startupProbe:
enabled: false
port: 8080
path: /health?live=1
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 30
successThreshold: 1
livenessProbe:
enabled: false
port: 8080
path: /health?live=1
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: false
port: 8080
path: /health
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
## Custom liveness and readiness probes
customStartupProbe: {}
customLivenessProbe: {}
customReadinessProbe: {}
## You may want to initialize the Alphas with data before starting Alpha containers.
## Examples can include:
## * offline data restore from binary backups with `dgraph restore`
## (ref. https://dgraph.io/docs/enterprise-features/binary-backups/#restore-from-backup)
## * bulk loader (ref. https://dgraph.io/docs/deploy/fast-data-loading/#bulk-loader)
initContainers:
init:
enabled: false
image:
<< : *image
command:
- bash
- "-c"
- |
trap "exit" SIGINT SIGTERM
echo "Write to /dgraph/doneinit when ready."
until [ -f /dgraph/doneinit ]; do sleep 2; done
ratel:
name: ratel
## Disable Ratel service
enabled: false
## NOTE: Ratel is no longer included in dgraph image since dgraph/dgraph:v21.03.0
## The image dgraph/dgraph:v21.11.3 is last known version that has Ratel.
image:
registry: docker.io
repository: dgraph/ratel
tag: v21.03.1
## Scheduler name
## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName: stork
## Number of dgraph nodes
##
replicaCount: 1
# Extra environment variables which will be appended to the env: definition for the container.
extraEnvs: []
## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use ClusterIP or LoadBalancer
##
service:
type: ClusterIP
annotations: {}
## References:
## * General: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
## * GKE: https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#lb_subnet
## * AKS: https://docs.microsoft.com/en-us/azure/aks/ingress-static-ip
loadBalancerIP: ""
## References:
## * General: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
## * EKS: https://aws.amazon.com/blogs/opensource/network-load-balancer-support-in-kubernetes-1-9/
## * AKS: https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard#maintain-the-clients-ip-on-inbound-connections
externalTrafficPolicy: ""
## References:
## * General: https://kubernetes.io/docs/concepts/services-networking/service/#aws-nlb-support
## * GKE: https://cloud.google.com/kubernetes-engine/docs/concepts/security-overview#filtering_load_balanced_traffic
## * EKS: https://aws.amazon.com/premiumsupport/knowledge-center/eks-cidr-ip-address-loadbalancer/
## * AKS: https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard#restrict-inbound-traffic-to-specific-ip-ranges
loadBalancerSourceRanges: []
## ratel ingress resource configuration
## This requires an ingress controller to be installed into your k8s cluster
ingress:
enabled: false
# hostname: ""
# annotations: {}
# tls: {}
## dgraph Pod Security Context
securityContext:
enabled: false
fsGroup: 1001
runAsUser: 1001
## Configure resource requests
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
## resources:
## requests:
## memory: 256Mi
## cpu: 250m
## Configure extra options for liveness and readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
##
livenessProbe:
enabled: false
port: 8000
path: /
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: false
port: 8000
path: /
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
## Custom liveness and readiness probes
customLivenessProbe: {}
customReadinessProbe: {}
## Binary Backup CronJob Configuration (Enterprise feature)
## ref: https://dgraph.io/docs/enterprise-features/binary-backups/
##
backups:
name: backups
## Scheduler name
## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName: stork
admin:
## backup user and password that is a member of 'guardians'group used to
## login if ACLs are enabled. This fetches an access token used to trigger backups
## ref: https://dgraph.io/docs/enterprise-features/access-control-lists/
user: groot
# password: password
## Mutual TLS client certficate and key can be used to secure transaction that was created with
## dgraph cert --client <name-of-client> should be specified here.
## ref. https://dgraph.io/docs/deploy/tls-configuration/
tls_client: ""
## Authorization Token can be used to secure /login and /admin. The auth token
## string that is set Alpha configuration or environment variable needs to be
## specified here so that backups can properly login.
## ref. https://dgraph.io/docs/deploy/dgraph-administration/#securing-alter-operations
auth_token: ""
## Backups image - image needs at least curl command
## default is to reuse dgraph image
image:
<< : *image
## NFS Configuration for mounting a filepath in Alpha pods
## Prerequisites: NFS Server required, e.g. Google Cloud FileStore, EFS, etc.
## ref. https://kubernetes.io/docs/concepts/storage/volumes/#nfs
nfs:
enabled: false
server: ""
path: ""
storage: 512Gi
mountPath: &nfs_backups_path /dgraph/backups
## Volume Configuration for mounting a filepath in Alpha pods
## Prerequisites: PVC must be created beforehand.
## On cluster with 2+ alpha pods, RWX (ReadWriteMany) access mode is required.
## ref. https://kubernetes.io/docs/concepts/storage/persistent-volumes/
volume:
enabled: false
claim: ""
mountPath: &vol_backups_path /dgraph/backups/
full:
enabled: false
## enable bash debugging (set -x)
debug: false
## full backup schedule
## 12AM server time
schedule: "0 0 * * *"
## restart policy
restartPolicy: Never
incremental:
enabled: false
## enable bash debugging (set -x)
debug: false
## incremental backup schedule
## every hour, except 12AM serer time
schedule: "0 1-23 * * *"
## restart policy
restartPolicy: Never
## destination is file path, s3, or minio
## examples:
## /dgraph/backups
## s3://s3.us-west-2.amazonaws.com/<bucketname>
## minio://my-release-minio.default.svc:9000/<bucketname>
destination: *nfs_backups_path
## subpath directory useful to store full and reclated incremental backuups
## in the same directory.
## NOTE: It is important to create directory name that matches the schedule.
## For example, daily fulls and hourly incrementals, a directory could
## be named dgraph_$(date +%Y%m%d)
## ref. `date` command: https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html#date-invocation
subpath: dgraph_$(date +%Y%m%d)
## enable if minio service has https://
minioSecure: false
## specify access keys required by MinIO or S3
keys:
minio:
## MINIO_ACCESS_KEY env var
access: ""
## MINIO_SECRET_KEY env var
secret: ""
s3:
## AWS_ACCESS_KEY_ID env var
access: ""
## AWS_SECRET_ACCESS_KEY env var
secret: ""
global:
domain: cluster.local
## Combined ingress resource for alpha and ratel services
## This will override existing ingress configurations under alpha and ratel
## This requires an ingress controller to be installed into your k8s cluster
ingress:
enabled: false
annotations: {}
tls: {}
ratel_hostname: ""
alpha_hostname: ""
ingress_grpc:
enabled: false
annotations: {}
tls: {}
alpha_grpc_hostname: ""