-
Notifications
You must be signed in to change notification settings - Fork 25
/
mongo.yaml
1711 lines (1681 loc) · 74.7 KB
/
mongo.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
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# helm install mongodb-test bitnami/mongodb-sharded -n test -f deploy/example/perf/mongo.yaml
## @section Global parameters
## 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, imagePullSecrets and storageClass
##
## @param global.imageRegistry Global Docker image registry
## @param global.imagePullSecrets Global Docker registry secret names as an array
## @param global.storageClass Global storage class for dynamic provisioning
##
global:
imageRegistry: ""
## E.g.
## imagePullSecrets:
## - myRegistryKeySecretName
##
imagePullSecrets: []
storageClass: "alicloud-disk-essd"
## @section Common parameters
##
## @param kubeVersion Override Kubernetes version
##
kubeVersion: ""
## @param nameOverride String to partially override common.names.name
##
nameOverride: ""
## @param fullnameOverride String to fully override common.names.fullname
##
fullnameOverride: ""
## @param namespaceOverride String to fully override common.names.namespace
##
namespaceOverride: ""
## @param commonLabels Labels to add to all deployed objects
##
commonLabels: {}
## @param commonAnnotations Annotations to add to all deployed objects
##
commonAnnotations: {}
## @param clusterDomain Kubernetes cluster domain name
##
clusterDomain: cluster.local
## @param extraDeploy Array of extra objects to deploy with the release
##
extraDeploy: []
## Enable diagnostic mode in the deployment
##
diagnosticMode:
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
##
enabled: false
## @param diagnosticMode.command Command to override all containers in the deployment
##
command:
- sleep
## @param diagnosticMode.args Args to override all containers in the deployment
##
args:
- infinity
## @section MongoDB(®) Sharded parameters
##
## Bitnami MongoDB(®) Sharded image version
## ref: https://hub.docker.com/r/bitnami/mongodb-sharded/tags/
## @param image.registry MongoDB(®) Sharded image registry
## @param image.repository MongoDB(®) Sharded Image name
## @param image.tag MongoDB(®) Sharded image tag (immutable tags are recommended)
## @param image.digest MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
## @param image.pullPolicy MongoDB(®) Sharded image pull policy
## @param image.pullSecrets Specify docker-registry secret names as an array
## @param image.debug Specify if debug logs should be enabled
##
image:
registry: docker.io
repository: bitnami/mongodb-sharded
tag: 6.0.3-debian-11-r0
digest: ""
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: https://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/
## e.g:
## pullSecrets:
## - myRegistryKeySecretName
##
pullSecrets: []
## Set to true if you would like to see extra information on logs
##
debug: false
## MongoDB(®) Authentication parameters
##
auth:
## @param auth.enabled Enable authentication
## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
##
enabled: true
## @param auth.rootUser MongoDB(®) root user
##
rootUser: root
## @param auth.rootPassword MongoDB(®) root password
## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#setting-the-root-user-and-password-on-first-run
##
rootPassword: "QYE4XbfFl9uAGw"
## @param auth.replicaSetKey Key used for authentication in the replicaset (only when `architecture=replicaset`)
##
replicaSetKey: "PXazehcyuNSglg"
## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-password`, `mongodb-root-password`, ` mongodb-replica-set-key`)
## NOTE: When it's set the previous parameters are ignored.
##
existingSecret: ""
## @param auth.usePasswordFile Mount credentials as files instead of using environment variables
##
usePasswordFile: false
## @param shards Number of shards to be created
## ref: https://docs.mongodb.com/manual/core/sharded-cluster-shards/
##
shards: 3
## Properties for all of the pods in the cluster (shards, config servers and mongos)
##
common:
## @param common.mongodbEnableNumactl Enable launch MongoDB instance prefixed with "numactl --interleave=all"
## ref: https://docs.mongodb.com/manual/administration/production-notes/#mongodb-and-numa-hardware
##
mongodbEnableNumactl: false
## @param common.useHostnames Enable DNS hostnames in the replica set config
##
useHostnames: true
## @param common.mongodbEnableIPv6 Switch to enable/disable IPv6 on MongoDB®
## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#enablingdisabling-ipv6
##
mongodbEnableIPv6: false
## @param common.mongodbDirectoryPerDB Switch to enable/disable DirectoryPerDB on MongoDB®
## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#enablingdisabling-directoryperdb
##
mongodbDirectoryPerDB: false
## @param common.mongodbSystemLogVerbosity MongoDB® system log verbosity level
## ref: https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption-mongo-ipv6
##
mongodbSystemLogVerbosity: 0
## @param common.mongodbDisableSystemLog Whether to disable MongoDB® system log or not
## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#configuring-system-log-verbosity-level
##
mongodbDisableSystemLog: false
## @param common.mongodbMaxWaitTimeout Maximum time (in seconds) for MongoDB® nodes to wait for another MongoDB® node to be ready
##
mongodbMaxWaitTimeout: 120
## @param common.initScriptsCM Configmap with init scripts to execute
##
initScriptsCM: ""
## @param common.initScriptsSecret Secret with init scripts to execute (for sensitive data)
##
initScriptsSecret: ""
## @param common.extraEnvVars An array to add extra env vars
## For example:
## extraEnvVars:
## - name: KIBANA_ELASTICSEARCH_URL
## value: test
##
extraEnvVars: []
## @param common.extraEnvVarsCM Name of a ConfigMap containing extra env vars
##
extraEnvVarsCM: ""
## @param common.extraEnvVarsSecret Name of a Secret containing extra env vars
##
extraEnvVarsSecret: ""
## @param common.sidecars Add sidecars to the pod
## For example:
## sidecars:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
## ports:
## - name: portname
## containerPort: 1234
##
sidecars: []
## @param common.initContainers Add init containers to the pod
## For example:
## initcontainers:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
##
initContainers: []
## @param common.podAnnotations Additional pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## @param common.podLabels Additional pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##
podLabels: {}
## @param common.extraVolumes Array to add extra volumes
##
extraVolumes: []
## @param common.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
##
extraVolumeMounts: []
## @param common.containerPorts.mongodb MongoDB container port
##
containerPorts:
mongodb: 27017
## K8s Service Account.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##
serviceAccount:
## @param common.serviceAccount.create Whether to create a Service Account for all pods automatically
##
create: false
## @param common.serviceAccount.name Name of a Service Account to be used by all Pods
## If not set and create is true, a name is generated using the XXX.fullname template
##
name: ""
## @param common.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
##
annotations: {}
## @param common.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
##
automountServiceAccountToken: true
## Init containers parameters:
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
##
volumePermissions:
## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
##
enabled: false
## @param volumePermissions.image.registry Init container volume-permissions image registry
## @param volumePermissions.image.repository Init container volume-permissions image name
## @param volumePermissions.image.tag Init container volume-permissions image tag
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
##
image:
registry: docker.io
repository: bitnami/bitnami-shell
tag: 11-debian-11-r52
digest: ""
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/
## e.g:
## pullSecrets:
## - myRegistryKeySecretName
##
pullSecrets: []
## @param volumePermissions.resources Init container resource requests/limit
##
resources: {}
## Kubernetes service type
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
##
service:
## @param service.name Specify an explicit service name
##
name: ""
## @param service.annotations Additional service annotations (evaluate as a template)
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
annotations: {}
## @param service.type Service type
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
##
type: ClusterIP
## @param service.externalTrafficPolicy External traffic policy
## Enable client source IP preservation
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
##
externalTrafficPolicy: Cluster
## @param service.ports.mongodb MongoDB® service port
##
ports:
mongodb: 27017
## @param service.clusterIP Static clusterIP or None for headless services
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
##
clusterIP: ""
## @param service.nodePorts.mongodb Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
nodePorts:
mongodb: ""
## @param service.externalIPs External IP list to use with ClusterIP service type
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
##
externalIPs: []
## @param service.loadBalancerIP Static IP Address to use for LoadBalancer service type
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
##
loadBalancerIP: ""
## @param service.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
##
loadBalancerSourceRanges: []
## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
##
extraPorts: []
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
##
sessionAffinity: None
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
## sessionAffinityConfig:
## clientIP:
## timeoutSeconds: 300
##
sessionAffinityConfig: {}
## @section Config Server parameters
##
## Config Server replica set properties
## ref: https://docs.mongodb.com/manual/core/sharded-cluster-config-servers/
##
configsvr:
## @param configsvr.replicaCount Number of nodes in the replica set (the first node will be primary)
##
replicaCount: 3
## @param configsvr.resources Configure pod resources
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
limits:
cpu: "2"
memory: 4096Mi
requests:
cpu: '2'
memory: 4096Mi
## @param configsvr.hostAliases Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## @param configsvr.mongodbExtraFlags MongoDB® additional command line flags
## Can be used to specify command line flags, for example:
## mongodbExtraFlags:
## - "--wiredTigerCacheSizeGB=2"
##
mongodbExtraFlags: []
## @param configsvr.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
##
topologySpreadConstraints: []
## @param configsvr.priorityClassName Pod priority class name
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
##
priorityClassName: ""
## @param configsvr.podAffinityPreset Config Server Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##
podAffinityPreset: ""
## @param configsvr.podAntiAffinityPreset Config Server Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##
podAntiAffinityPreset: soft
## Node affinity preset
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
##
nodeAffinityPreset:
## @param configsvr.nodeAffinityPreset.type Config Server Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
##
type: ""
## @param configsvr.nodeAffinityPreset.key Config Server Node label key to match Ignored if `affinity` is set.
## E.g.
## key: "kubernetes.io/e2e-az-name"
##
key: ""
## @param configsvr.nodeAffinityPreset.values Config Server Node label values to match. Ignored if `affinity` is set.
## E.g.
## values:
## - e2e-az1
## - e2e-az2
##
values: []
## @param configsvr.affinity Config Server Affinity for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
## Note: configsvr.podAffinityPreset, configsvr.podAntiAffinityPreset, and configsvr.nodeAffinityPreset will be ignored when it's set
##
affinity: {}
## @param configsvr.nodeSelector Config Server Node labels for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector:
test: mongodb
tolerations:
- key: "test"
operator: "Equal"
value: mongodb
effect: "NoSchedule"
## @param configsvr.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
##
podManagementPolicy: OrderedReady
## @param configsvr.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
##
updateStrategy:
type: RollingUpdate
## @param configsvr.config MongoDB® configuration file
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
##
config: ""
## @param configsvr.configCM ConfigMap name with Config Server configuration file (cannot be used with configsvr.config)
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
##
configCM: ""
## @param configsvr.extraEnvVars An array to add extra env vars
## For example:
## extraEnvVars:
## - name: KIBANA_ELASTICSEARCH_URL
## value: test
##
extraEnvVars: []
## @param configsvr.extraEnvVarsCM Name of a ConfigMap containing extra env vars
##
extraEnvVarsCM: ""
## @param configsvr.extraEnvVarsSecret Name of a Secret containing extra env vars
##
extraEnvVarsSecret: ""
## @param configsvr.sidecars Add sidecars to the pod
## For example:
## sidecars:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
## ports:
## - name: portname
## containerPort: 1234
##
sidecars: []
## @param configsvr.initContainers Add init containers to the pod
## For example:
## initcontainers:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
##
initContainers: []
## @param configsvr.podAnnotations Additional pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## @param configsvr.podLabels Additional pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##
podLabels: {}
## @param configsvr.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
##
extraVolumes: []
## @param configsvr.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes). Normally used with `extraVolumes`
##
extraVolumeMounts: []
## @param configsvr.schedulerName Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
schedulerName: ""
## Pod disruption budget
##
pdb:
## @param configsvr.pdb.create Enable pod disruption budget
##
create: false
## @param configsvr.pdb.minAvailable Minimum number of available config pods allowed (`0` to disable)
##
minAvailable: 0
## @param configsvr.pdb.maxUnavailable Maximum number of unavailable config pods allowed (`0` to disable)
##
maxUnavailable: 1
## Enable persistence using Persistent Volume Claims
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
##
persistence:
## @param configsvr.persistence.enabled Use a PVC to persist data
##
enabled: true
## @param configsvr.persistence.mountPath Path to mount the volume at
## MongoDB® images.
##
mountPath: /bitnami/mongodb
## @param configsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
## Useful in dev environments and one PV for multiple services.
##
subPath: ""
## @param configsvr.persistence.storageClass Storage class of backing PVC
## 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)
##
storageClass: ""
## @param configsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
##
accessModes:
- ReadWriteOnce
## @param configsvr.persistence.size PersistentVolumeClaim size
##
size: 20Gi
## @param configsvr.persistence.annotations Persistent Volume annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
annotations: {}
## @param configsvr.persistence.resourcePolicy Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted
resourcePolicy: ""
## K8s Service Account.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##
serviceAccount:
## @param configsvr.serviceAccount.create Specifies whether a ServiceAccount should be created for Config Server
##
create: false
## @param configsvr.serviceAccount.name Name of a Service Account to be used by Config Server
## If not set and create is true, a name is generated using the XXX.fullname template
##
name: ""
## @param configsvr.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
##
annotations: {}
## @param configsvr.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
##
automountServiceAccountToken: true
## Use a external config server instead of deploying one
##
external:
## @param configsvr.external.host Primary node of an external Config Server replicaset
##
host: ""
## @param configsvr.external.rootPassword Root password of the external Config Server replicaset
##
rootPassword: ""
## @param configsvr.external.replicasetName Replicaset name of an external Config Server
##
replicasetName: ""
## @param configsvr.external.replicasetKey Replicaset key of an external Config Server
##
replicasetKey: ""
## Configure Pods Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
## @param configsvr.podSecurityContext.enabled Enable security context
## @param configsvr.podSecurityContext.fsGroup Group ID for the container
##
podSecurityContext:
enabled: true
fsGroup: 1001
## Configure Container Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
## @param configsvr.containerSecurityContext.enabled Enabled containers' Security Context
## @param configsvr.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
## @param configsvr.containerSecurityContext.runAsNonRoot Set containers' Security Context runAsNonRoot
## @param configsvr.containerSecurityContext.readOnlyRootFilesystem Set containers' Security Context runAsNonRoot
##
containerSecurityContext:
enabled: true
runAsUser: 1001
runAsNonRoot: true
readOnlyRootFilesystem: false
## @param configsvr.command Override default container command (useful when using custom images)
##
command:
- /bin/bash
- /entrypoint/replicaset-entrypoint.sh
## @param configsvr.args Override default container args (useful when using custom images)
##
args: []
## @param configsvr.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
##
terminationGracePeriodSeconds: ""
## @param configsvr.lifecycleHooks for the Config Server container(s) to automate configuration before or after startup
##
lifecycleHooks: {}
## Configure extra options for liveness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
## @param configsvr.livenessProbe.enabled Enable livenessProbe
## @param configsvr.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param configsvr.livenessProbe.periodSeconds Period seconds for livenessProbe
## @param configsvr.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
## @param configsvr.livenessProbe.failureThreshold Failure threshold for livenessProbe
## @param configsvr.livenessProbe.successThreshold Success threshold for livenessProbe
##
livenessProbe:
enabled: true
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 20
failureThreshold: 2
successThreshold: 1
## Configure extra options for readiness probe
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
## @param configsvr.readinessProbe.enabled Enable readinessProbe
## @param configsvr.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## @param configsvr.readinessProbe.periodSeconds Period seconds for readinessProbe
## @param configsvr.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## @param configsvr.readinessProbe.failureThreshold Failure threshold for readinessProbe
## @param configsvr.readinessProbe.successThreshold Success threshold for readinessProbe
##
readinessProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 30
timeoutSeconds: 20
failureThreshold: 6
successThreshold: 1
## Configure extra options for startup probe
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
## @param configsvr.startupProbe.enabled Enable startupProbe
## @param configsvr.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
## @param configsvr.startupProbe.periodSeconds Period seconds for startupProbe
## @param configsvr.startupProbe.timeoutSeconds Timeout seconds for startupProbe
## @param configsvr.startupProbe.failureThreshold Failure threshold for startupProbe
## @param configsvr.startupProbe.successThreshold Success threshold for startupProbe
##
startupProbe:
enabled: true
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 30
successThreshold: 1
## @param configsvr.customLivenessProbe Custom livenessProbe that overrides the default one
##
customLivenessProbe: {}
## @param configsvr.customReadinessProbe Custom readinessProbe that overrides the default one
##
customReadinessProbe: {}
## @param configsvr.customStartupProbe Custom startupProbe that overrides the default one
##
customStartupProbe: {}
## @section Mongos parameters
##
## Mongos properties
## ref: https://docs.mongodb.com/manual/reference/program/mongos/#bin.mongos
##
mongos:
## @param mongos.replicaCount Number of replicas
##
replicaCount: 3
## @param mongos.resources Configure pod resources
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
limits:
cpu: "10"
memory: 6144Mi
requests:
cpu: '10'
memory: 6144Mi
## @param mongos.hostAliases Deployment pod host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##
hostAliases: []
## @param mongos.mongodbExtraFlags MongoDB® additional command line flags
## Can be used to specify command line flags, for example:
## mongodbExtraFlags:
## - "--wiredTigerCacheSizeGB=2"
##
mongodbExtraFlags: []
## @param mongos.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
##
topologySpreadConstraints: []
## @param mongos.priorityClassName Pod priority class name
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
##
priorityClassName: ""
## @param mongos.podAffinityPreset Mongos Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##
podAffinityPreset: ""
## @param mongos.podAntiAffinityPreset Mongos Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##
podAntiAffinityPreset: soft
## Node affinity preset
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
##
nodeAffinityPreset:
## @param mongos.nodeAffinityPreset.type Mongos Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
##
type: ""
## @param mongos.nodeAffinityPreset.key Mongos Node label key to match Ignored if `affinity` is set.
## E.g.
## key: "kubernetes.io/e2e-az-name"
##
key: ""
## @param mongos.nodeAffinityPreset.values Mongos Node label values to match. Ignored if `affinity` is set.
## E.g.
## values:
## - e2e-az1
## - e2e-az2
##
values: []
## @param mongos.affinity Mongos Affinity for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
## Note: mongos.podAffinityPreset, mongos.podAntiAffinityPreset, and mongos.nodeAffinityPreset will be ignored when it's set
##
affinity: {}
## @param mongos.nodeSelector Mongos Node labels for pod assignment
## ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector:
test: mongodb
## @param mongos.tolerations Mongos Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations:
- key: "test"
operator: "Equal"
value: mongodb
effect: "NoSchedule"
## @param mongos.podManagementPolicy Statefulsets pod management policy, allows parallel startup of pods
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
##
podManagementPolicy: OrderedReady
## @param mongos.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
##
updateStrategy:
type: RollingUpdate
## @param mongos.config MongoDB® configuration file
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
##
config: ""
## @param mongos.configCM ConfigMap name with MongoDB® configuration file (cannot be used with mongos.config)
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
##
configCM: ""
## @param mongos.extraEnvVars An array to add extra env vars
## For example:
## extraEnvVars:
## - name: KIBANA_ELASTICSEARCH_URL
## value: test
##
extraEnvVars: []
## @param mongos.extraEnvVarsCM Name of a ConfigMap containing extra env vars
##
extraEnvVarsCM: ""
## @param mongos.extraEnvVarsSecret Name of a Secret containing extra env vars
##
extraEnvVarsSecret: ""
## @param mongos.sidecars Add sidecars to the pod
## For example:
## sidecars:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
## ports:
## - name: portname
## containerPort: 1234
##
sidecars: []
## @param mongos.initContainers Add init containers to the pod
## For example:
## initcontainers:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
##
initContainers: []
## @param mongos.podAnnotations Additional pod annotations
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## @param mongos.podLabels Additional pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##
podLabels: {}
## @param mongos.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
##
extraVolumes: []
## @param mongos.extraVolumeMounts Array to add extra volume mounts. Normally used with `extraVolumes`.
##
extraVolumeMounts: []
## @param mongos.schedulerName Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
schedulerName: ""
## @param mongos.useStatefulSet Use StatefulSet instead of Deployment
##
useStatefulSet: true
## When using a statefulset, you can enable one service per replica
## This is useful when exposing the mongos through load balancers to make sure clients
## connect to the same mongos and therefore can follow their cursors
##
servicePerReplica:
## @param mongos.servicePerReplica.enabled Create one service per mongos replica (must be used with statefulset)
##
enabled: false
## @param mongos.servicePerReplica.annotations Additional service annotations (evaluate as a template)
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
annotations: {}
## @param mongos.servicePerReplica.type Service type
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
##
type: ClusterIP
## @param mongos.servicePerReplica.externalTrafficPolicy External traffic policy
## Enable client source IP preservation
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
##
externalTrafficPolicy: Cluster
## @param mongos.servicePerReplica.port MongoDB® service port
##
port: 27017
## @param mongos.servicePerReplica.clusterIPs Array of static clusterIPs for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
##
clusterIPs: []
## @param mongos.servicePerReplica.nodePorts Array of node ports used for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
nodePorts: []
## @param mongos.servicePerReplica.externalIPs External IP list to use with ClusterIP service type
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
##
externalIPs: []
## @param mongos.servicePerReplica.loadBalancerIPs Array of static IP Address to use for each replica LoadBalancer service type. Length must be the same as mongos.replicaCount
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
##
loadBalancerIPs: []
## @param mongos.servicePerReplica.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
##
loadBalancerSourceRanges: []
## @param mongos.servicePerReplica.extraPorts Extra ports to expose (normally used with the `sidecar` value)
##
extraPorts: []
## @param mongos.servicePerReplica.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
##
sessionAffinity: None
## @param mongos.servicePerReplica.sessionAffinityConfig Additional settings for the sessionAffinity
## sessionAffinityConfig:
## clientIP:
## timeoutSeconds: 300
##
sessionAffinityConfig: {}
## Pod disruption budget
##
pdb:
## @param mongos.pdb.create Enable pod disruption budget
##
create: false
## @param mongos.pdb.minAvailable Minimum number of available mongo pods allowed (`0` to disable)
##
minAvailable: 0
## @param mongos.pdb.maxUnavailable Maximum number of unavailable mongo pods allowed (`0` to disable)
##
maxUnavailable: 1
## K8s Service Account.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##
serviceAccount:
## @param mongos.serviceAccount.create Whether to create a Service Account for mongos automatically
##
create: false
## @param mongos.serviceAccount.name Name of a Service Account to be used by mongos
## If not set and create is true, a name is generated using the XXX.fullname template
##
name: ""
## @param mongos.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
##
annotations: {}
## @param mongos.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
##
automountServiceAccountToken: true
## Configure Pods Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
## @param mongos.podSecurityContext.enabled Enable security context
## @param mongos.podSecurityContext.fsGroup Group ID for the container
##
podSecurityContext:
enabled: true
fsGroup: 1001
## Configure Container Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
## @param mongos.containerSecurityContext.enabled Enabled containers' Security Context
## @param mongos.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
## @param mongos.containerSecurityContext.runAsNonRoot Set containers' Security Context runAsNonRoot
## @param mongos.containerSecurityContext.readOnlyRootFilesystem Set containers' Security Context runAsNonRoot
##
containerSecurityContext:
enabled: true
runAsUser: 1001
runAsNonRoot: true
readOnlyRootFilesystem: false
## @param mongos.command Override default container command (useful when using custom images)
##
command: []
## @param mongos.args Override default container args (useful when using custom images)
##
args: []
## @param mongos.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
##
terminationGracePeriodSeconds: ""
## @param mongos.lifecycleHooks for the Mongo container(s) to automate configuration before or after startup
##
lifecycleHooks: {}
## Configure extra options for liveness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
## @param mongos.livenessProbe.enabled Enable livenessProbe
## @param mongos.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param mongos.livenessProbe.periodSeconds Period seconds for livenessProbe
## @param mongos.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
## @param mongos.livenessProbe.failureThreshold Failure threshold for livenessProbe
## @param mongos.livenessProbe.successThreshold Success threshold for livenessProbe
##
livenessProbe:
enabled: true
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 20
failureThreshold: 2
successThreshold: 1
## Configure extra options for readiness probe
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
## @param mongos.readinessProbe.enabled Enable readinessProbe
## @param mongos.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
## @param mongos.readinessProbe.periodSeconds Period seconds for readinessProbe
## @param mongos.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
## @param mongos.readinessProbe.failureThreshold Failure threshold for readinessProbe
## @param mongos.readinessProbe.successThreshold Success threshold for readinessProbe
##
readinessProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 30
timeoutSeconds: 20
failureThreshold: 6
successThreshold: 1
## Configure extra options for startup probe
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
## @param mongos.startupProbe.enabled Enable startupProbe
## @param mongos.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
## @param mongos.startupProbe.periodSeconds Period seconds for startupProbe
## @param mongos.startupProbe.timeoutSeconds Timeout seconds for startupProbe
## @param mongos.startupProbe.failureThreshold Failure threshold for startupProbe
## @param mongos.startupProbe.successThreshold Success threshold for startupProbe
##
startupProbe:
enabled: false
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 30
successThreshold: 1
## @param mongos.customLivenessProbe Custom livenessProbe that overrides the default one
##
customLivenessProbe: {}
## @param mongos.customReadinessProbe Custom readinessProbe that overrides the default one
##
customReadinessProbe: {}
## @param mongos.customStartupProbe Custom startupProbe that overrides the default one
##
customStartupProbe: {}
## @section Shard configuration: Data node parameters
##
## Shard replica set properties
## ref: https://docs.mongodb.com/manual/replication/index.html
##
shardsvr:
## Properties for data nodes (primary and secondary)
##
dataNode:
## @param shardsvr.dataNode.replicaCount Number of nodes in each shard replica set (the first node will be primary)
##
replicaCount: 1
## @param shardsvr.dataNode.resources Configure pod resources
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
limits:
cpu: "10"
memory: 10240Mi
requests:
cpu: '10'
memory: 10240Mi