DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
mongodb-sharded logoHELM

mongodb-sharded

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
3
# Copyright Chainguard, Inc. All Rights Reserved.
4
# Chainguard, Inc. modifications are subject to the license
5
# available at: https://www.chainguard.dev/legal/software-license-agreement
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
10
## @section Global parameters
11
## Global Docker image parameters
12
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
14
##
15
16
## @param global.imageRegistry Global Docker image registry
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
## @param global.imagePullSecrets Global Docker registry secret names as an array
19
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20
## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
21
##
22
global:
23
imageRegistry: ""
24
useImageTags: false
25
## E.g.
26
## imagePullSecrets:
27
## - myRegistryKeySecretName
28
##
29
imagePullSecrets: []
30
defaultStorageClass: ""
31
storageClass: ""
32
## Security parameters
33
##
34
security:
35
## @param global.security.allowInsecureImages Allows skipping image verification
36
allowInsecureImages: false
37
## Compatibility adaptations for Kubernetes platforms
38
##
39
compatibility:
40
## Compatibility adaptations for Openshift
41
##
42
openshift:
43
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
44
##
45
adaptSecurityContext: auto
46
org: ""
47
## @section Common parameters
48
##
49
50
## @param kubeVersion Override Kubernetes version
51
##
52
kubeVersion: ""
53
## @param nameOverride String to partially override common.names.name
54
##
55
nameOverride: ""
56
## @param fullnameOverride String to fully override common.names.fullname
57
##
58
fullnameOverride: ""
59
## @param namespaceOverride String to fully override common.names.namespace
60
##
61
namespaceOverride: ""
62
## @param commonLabels Labels to add to all deployed objects
63
##
64
commonLabels: {}
65
## @param commonAnnotations Annotations to add to all deployed objects
66
##
67
commonAnnotations: {}
68
## @param clusterDomain Kubernetes cluster domain name
69
##
70
clusterDomain: cluster.local
71
## @param extraDeploy Array of extra objects to deploy with the release
72
##
73
extraDeploy: []
74
## Enable diagnostic mode in the deployment
75
##
76
diagnosticMode:
77
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
78
##
79
enabled: false
80
## @param diagnosticMode.command Command to override all containers in the deployment
81
##
82
command:
83
- sleep
84
## @param diagnosticMode.args Args to override all containers in the deployment
85
##
86
args:
87
- infinity
88
## @section MongoDB(®) Sharded parameters
89
##
90
91
## Iamguarded MongoDB(®) Sharded image version
92
## @param image.registry [default: REGISTRY_NAME] MongoDB(®) Sharded image registry
93
## @param image.repository [default: REPOSITORY_NAME/mongodb-sharded] MongoDB(®) Sharded Image name
94
## @skip image.tag MongoDB(®) Sharded image tag (immutable tags are recommended)
95
## @param image.digest MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
96
## @param image.pullPolicy MongoDB(®) Sharded image pull policy
97
## @param image.pullSecrets Specify docker-registry secret names as an array
98
## @param image.debug Specify if debug logs should be enabled
99
##
100
image:
101
registry: cgr.dev
102
repository: chainguard-private/mongodb-sharded-iamguarded
103
tag: 9.0.8
104
digest: ""
105
## Specify a imagePullPolicy
106
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
107
##
108
pullPolicy: IfNotPresent
109
## Optionally specify an array of imagePullSecrets.
110
## Secrets must be manually created in the namespace.
111
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
112
## e.g:
113
## pullSecrets:
114
## - myRegistryKeySecretName
115
##
116
pullSecrets: []
117
## Set to true if you would like to see extra information on logs
118
##
119
debug: false
120
## MongoDB(®) Authentication parameters
121
##
122
auth:
123
## @param auth.enabled Enable authentication
124
## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
125
##
126
enabled: true
127
## @param auth.rootUser MongoDB(®) root user
128
##
129
rootUser: root
130
## @param auth.rootPassword MongoDB(®) root password
131
##
132
rootPassword: ""
133
## @param auth.replicaSetKey Key used for authentication in the replicaset
134
##
135
replicaSetKey: ""
136
## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-password`, `mongodb-root-password`, `mongodb-replica-set-key`)
137
## NOTE: When it's set the previous parameters are ignored.
138
##
139
existingSecret: ""
140
## @param auth.usePasswordFiles Mount credentials as files instead of using environment variables
141
##
142
usePasswordFiles: true
143
## @param shards Number of shards to be created
144
## ref: https://docs.mongodb.com/manual/core/sharded-cluster-shards/
145
##
146
shards: 2
147
## Properties for all of the pods in the cluster (shards, config servers and mongos)
148
##
149
common:
150
## @param common.mongodbEnableNumactl Enable launch MongoDB instance prefixed with "numactl --interleave=all"
151
## ref: https://docs.mongodb.com/manual/administration/production-notes/#mongodb-and-numa-hardware
152
##
153
mongodbEnableNumactl: false
154
## @param common.useHostnames Enable DNS hostnames in the replica set config
155
##
156
useHostnames: true
157
## @param common.mongodbEnableIPv6 Switch to enable/disable IPv6 on MongoDB®
158
##
159
mongodbEnableIPv6: false
160
## @param common.mongodbDirectoryPerDB Switch to enable/disable DirectoryPerDB on MongoDB®
161
##
162
mongodbDirectoryPerDB: false
163
## @param common.mongodbSystemLogVerbosity MongoDB® system log verbosity level
164
## ref: https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption-mongo-ipv6
165
##
166
mongodbSystemLogVerbosity: 0
167
## @param common.mongodbDisableSystemLog Whether to disable MongoDB® system log or not
168
##
169
mongodbDisableSystemLog: false
170
## @param common.mongodbInitRetryAttempts Maximum retries for checking the MongoDB® initialization status
171
##
172
mongodbInitRetryAttempts: 24
173
## @param common.mongodbInitRetryDelay Time (in seconds) to wait between retries for checking the MongoDB® initialization status
174
##
175
mongodbInitRetryDelay: 5
176
## @param common.initScriptsCM Configmap with init scripts to execute
177
##
178
initScriptsCM: ""
179
## @param common.initScriptsSecret Secret with init scripts to execute (for sensitive data)
180
##
181
initScriptsSecret: ""
182
## @param common.extraEnvVars An array to add extra env vars
183
## For example:
184
## extraEnvVars:
185
## - name: KIBANA_ELASTICSEARCH_URL
186
## value: test
187
##
188
extraEnvVars: []
189
## @param common.extraEnvVarsCM Name of a ConfigMap containing extra env vars
190
##
191
extraEnvVarsCM: ""
192
## @param common.extraEnvVarsSecret Name of a Secret containing extra env vars
193
##
194
extraEnvVarsSecret: ""
195
## @param common.sidecars Add sidecars to the pod
196
## For example:
197
## sidecars:
198
## - name: your-image-name
199
## image: your-image
200
## imagePullPolicy: Always
201
## ports:
202
## - name: portname
203
## containerPort: 1234
204
##
205
sidecars: []
206
## @param common.initContainers Add init containers to the pod
207
## For example:
208
## initcontainers:
209
## - name: your-image-name
210
## image: your-image
211
## imagePullPolicy: Always
212
##
213
initContainers: []
214
## @param common.podAnnotations Additional pod annotations
215
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
216
##
217
podAnnotations: {}
218
## @param common.podLabels Additional pod labels
219
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
220
##
221
podLabels: {}
222
## @param common.extraVolumes Array to add extra volumes
223
##
224
extraVolumes: []
225
## @param common.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
226
##
227
extraVolumeMounts: []
228
## @param common.containerPorts.mongodb MongoDB container port
229
##
230
containerPorts:
231
mongodb: 27017
232
## K8s Service Account.
233
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
234
##
235
serviceAccount:
236
## @param common.serviceAccount.create Whether to create a Service Account for all pods automatically
237
##
238
create: true
239
## @param common.serviceAccount.name Name of a Service Account to be used by all Pods
240
## If not set and create is true, a name is generated using the XXX.fullname template
241
##
242
name: ""
243
## @param common.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
244
##
245
annotations: {}
246
## @param common.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
247
##
248
automountServiceAccountToken: false
249
## Init containers parameters:
250
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
251
##
252
volumePermissions:
253
## @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)
254
##
255
enabled: false
256
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
257
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
258
## @skip volumePermissions.image.tag Init container volume-permissions image tag
259
## @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
260
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
261
## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
262
##
263
image:
264
registry: cgr.dev
265
repository: chainguard-private/os-shell-iamguarded
266
tag: 1.0.0
267
digest: ""
268
pullPolicy: IfNotPresent
269
## Optionally specify an array of imagePullSecrets.
270
## Secrets must be manually created in the namespace.
271
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
272
## e.g:
273
## pullSecrets:
274
## - myRegistryKeySecretName
275
##
276
pullSecrets: []
277
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
278
##
279
resourcesPreset: "nano"
280
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
281
## Example:
282
## resources:
283
## requests:
284
## cpu: 2
285
## memory: 512Mi
286
## limits:
287
## cpu: 3
288
## memory: 1024Mi
289
##
290
resources: {}
291
## Kubernetes service type
292
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
293
##
294
service:
295
## @param service.name Specify an explicit service name
296
##
297
name: ""
298
## @param service.annotations Additional service annotations (evaluate as a template)
299
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
300
##
301
annotations: {}
302
## @param service.type Service type
303
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
304
##
305
type: ClusterIP
306
## @param service.externalTrafficPolicy External traffic policy
307
## Enable client source IP preservation
308
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
309
##
310
externalTrafficPolicy: Cluster
311
## @param service.ports.mongodb MongoDB® service port
312
##
313
ports:
314
mongodb: 27017
315
## @param service.clusterIP Static clusterIP or None for headless services
316
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
317
##
318
clusterIP: ""
319
## @param service.nodePorts.mongodb Specify the nodePort value for the LoadBalancer and NodePort service types.
320
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
321
##
322
nodePorts:
323
mongodb: ""
324
## @param service.nodePorts.metrics Specify the metrics nodePort value for the LoadBalancer and NodePort service types.
325
##
326
metrics: ""
327
## @param service.externalIPs External IP list to use with ClusterIP service type
328
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
329
##
330
externalIPs: []
331
## @param service.loadBalancerIP Static IP Address to use for LoadBalancer service type
332
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
333
##
334
loadBalancerIP: ""
335
## @param service.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
336
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
337
##
338
loadBalancerSourceRanges: []
339
## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
340
##
341
extraPorts: []
342
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
343
## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
344
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
345
##
346
sessionAffinity: None
347
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
348
## sessionAffinityConfig:
349
## clientIP:
350
## timeoutSeconds: 300
351
##
352
sessionAffinityConfig: {}
353
## Headless service properties
354
##
355
headless:
356
## @param service.headless.annotations Annotations for the headless service.
357
##
358
annotations: {}
359
## Network Policies
360
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
361
##
362
networkPolicy:
363
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
364
##
365
enabled: true
366
## @param networkPolicy.allowExternal Don't require server label for connections
367
## The Policy model to apply. When set to false, only pods with the correct
368
## server label will have network access to the ports server is listening
369
## on. When true, server will accept connections from any source
370
## (with the correct destination port).
371
##
372
allowExternal: true
373
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
374
##
375
allowExternalEgress: true
376
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
377
## e.g:
378
## extraIngress:
379
## - ports:
380
## - port: 1234
381
## from:
382
## - podSelector:
383
## - matchLabels:
384
## - role: frontend
385
## - podSelector:
386
## - matchExpressions:
387
## - key: role
388
## operator: In
389
## values:
390
## - frontend
391
extraIngress: []
392
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
393
## e.g:
394
## extraEgress:
395
## - ports:
396
## - port: 1234
397
## to:
398
## - podSelector:
399
## - matchLabels:
400
## - role: frontend
401
## - podSelector:
402
## - matchExpressions:
403
## - key: role
404
## operator: In
405
## values:
406
## - frontend
407
##
408
extraEgress: []
409
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
410
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
411
##
412
ingressNSMatchLabels: {}
413
ingressNSPodMatchLabels: {}
414
## @section Config Server parameters
415
##
416
417
## Config Server replica set properties
418
## ref: https://docs.mongodb.com/manual/core/sharded-cluster-config-servers/
419
##
420
configsvr:
421
## @param configsvr.replicaCount Number of nodes in the replica set (the first node will be primary)
422
##
423
replicaCount: 1
424
## @param configsvr.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if configsvr.resources is set (configsvr.resources is recommended for production).
425
##
426
resourcesPreset: "small"
427
## @param configsvr.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
428
## Example:
429
## resources:
430
## requests:
431
## cpu: 2
432
## memory: 512Mi
433
## limits:
434
## cpu: 3
435
## memory: 1024Mi
436
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
437
##
438
resources: {}
439
## @param configsvr.automountServiceAccountToken Mount Service Account token in pod
440
##
441
automountServiceAccountToken: false
442
## @param configsvr.hostAliases Deployment pod host aliases
443
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
444
##
445
hostAliases: []
446
## @param configsvr.mongodbExtraFlags MongoDB® additional command line flags
447
## Can be used to specify command line flags, for example:
448
## mongodbExtraFlags:
449
## - "--wiredTigerCacheSizeGB=2"
450
##
451
mongodbExtraFlags: []
452
## @param configsvr.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
453
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
454
##
455
topologySpreadConstraints: []
456
## @param configsvr.priorityClassName Pod priority class name
457
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
458
##
459
priorityClassName: ""
460
## @param configsvr.podAffinityPreset Config Server Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
461
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
462
##
463
podAffinityPreset: ""
464
## @param configsvr.podAntiAffinityPreset Config Server Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
465
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
466
##
467
podAntiAffinityPreset: soft
468
## Node affinity preset
469
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
470
##
471
nodeAffinityPreset:
472
## @param configsvr.nodeAffinityPreset.type Config Server Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
473
##
474
type: ""
475
## @param configsvr.nodeAffinityPreset.key Config Server Node label key to match Ignored if `affinity` is set.
476
## E.g.
477
## key: "kubernetes.io/e2e-az-name"
478
##
479
key: ""
480
## @param configsvr.nodeAffinityPreset.values Config Server Node label values to match. Ignored if `affinity` is set.
481
## E.g.
482
## values:
483
## - e2e-az1
484
## - e2e-az2
485
##
486
values: []
487
## @param configsvr.affinity Config Server Affinity for pod assignment
488
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
489
## Note: configsvr.podAffinityPreset, configsvr.podAntiAffinityPreset, and configsvr.nodeAffinityPreset will be ignored when it's set
490
##
491
affinity: {}
492
## @param configsvr.nodeSelector Config Server Node labels for pod assignment
493
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
494
##
495
nodeSelector: {}
496
## @param configsvr.tolerations Config Server Tolerations for pod assignment
497
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
498
##
499
tolerations: []
500
## @param configsvr.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
501
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
502
##
503
podManagementPolicy: OrderedReady
504
## @param configsvr.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
505
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
506
##
507
updateStrategy:
508
type: RollingUpdate
509
## @param configsvr.config MongoDB® configuration file
510
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
511
##
512
config: ""
513
## @param configsvr.configCM ConfigMap name with Config Server configuration file (cannot be used with configsvr.config)
514
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
515
##
516
configCM: ""
517
## @param configsvr.extraEnvVars An array to add extra env vars
518
## For example:
519
## extraEnvVars:
520
## - name: KIBANA_ELASTICSEARCH_URL
521
## value: test
522
##
523
extraEnvVars: []
524
## @param configsvr.extraEnvVarsCM Name of a ConfigMap containing extra env vars
525
##
526
extraEnvVarsCM: ""
527
## @param configsvr.extraEnvVarsSecret Name of a Secret containing extra env vars
528
##
529
extraEnvVarsSecret: ""
530
## @param configsvr.sidecars Add sidecars to the pod
531
## For example:
532
## sidecars:
533
## - name: your-image-name
534
## image: your-image
535
## imagePullPolicy: Always
536
## ports:
537
## - name: portname
538
## containerPort: 1234
539
##
540
sidecars: []
541
## @param configsvr.initContainers Add init containers to the pod
542
## For example:
543
## initcontainers:
544
## - name: your-image-name
545
## image: your-image
546
## imagePullPolicy: Always
547
##
548
initContainers: []
549
## @param configsvr.podAnnotations Additional pod annotations
550
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
551
##
552
podAnnotations: {}
553
## @param configsvr.podLabels Additional pod labels
554
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
555
##
556
podLabels: {}
557
## @param configsvr.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
558
##
559
extraVolumes: []
560
## @param configsvr.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes). Normally used with `extraVolumes`
561
##
562
extraVolumeMounts: []
563
## @param configsvr.schedulerName Use an alternate scheduler, e.g. "stork".
564
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
565
##
566
schedulerName: ""
567
## Pod disruption budget
568
##
569
pdb:
570
## @param configsvr.pdb.create Enable pod disruption budget
571
##
572
create: true
573
## @param configsvr.pdb.minAvailable Minimum number of available config pods allowed (`0` to disable)
574
##
575
minAvailable: 0
576
## @param configsvr.pdb.maxUnavailable Maximum number of unavailable config pods allowed (`0` to disable)
577
##
578
maxUnavailable: 1
579
## Enable persistence using Persistent Volume Claims
580
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
581
##
582
persistence:
583
## @param configsvr.persistence.enabled Use a PVC to persist data
584
##
585
enabled: true
586
## @param configsvr.persistence.mountPath Path to mount the volume at
587
## MongoDB® images.
588
##
589
mountPath: /iamguarded/mongodb
590
## @param configsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
591
## Useful in dev environments and one PV for multiple services.
592
##
593
subPath: ""
594
## @param configsvr.persistence.storageClass Storage class of backing PVC
595
## If defined, storageClassName: <storageClass>
596
## If set to "-", storageClassName: "", which disables dynamic provisioning
597
## If undefined (the default) or set to null, no storageClassName spec is
598
## set, choosing the default provisioner. (gp2 on AWS, standard on
599
## GKE, AWS & OpenStack)
600
##
601
storageClass: ""
602
## @param configsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
603
##
604
accessModes:
605
- ReadWriteOnce
606
## @param configsvr.persistence.size PersistentVolumeClaim size
607
##
608
size: 8Gi
609
## @param configsvr.persistence.annotations Persistent Volume annotations
610
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
611
##
612
annotations: {}
613
## @param configsvr.persistence.selector Selector to match an existing Persistent Volume for Config Server data PVC
614
## A label query over volumes to consider for binding (e.g. when using local volumes)
615
##
616
selector: {}
617
## Persistent Volume Claim Retention Policy
618
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
619
##
620
persistentVolumeClaimRetentionPolicy:
621
## @param configsvr.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Config Server StatefulSet
622
##
623
enabled: false
624
## @param configsvr.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
625
##
626
whenScaled: Retain
627
## @param configsvr.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
628
##
629
whenDeleted: Retain
630
## K8s Service Account.
631
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
632
##
633
serviceAccount:
634
## @param configsvr.serviceAccount.create Specifies whether a ServiceAccount should be created for Config Server
635
##
636
create: true
637
## @param configsvr.serviceAccount.name Name of a Service Account to be used by Config Server
638
## If not set and create is true, a name is generated using the XXX.fullname template
639
##
640
name: ""
641
## @param configsvr.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
642
##
643
annotations: {}
644
## @param configsvr.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
645
##
646
automountServiceAccountToken: false
647
## Use a external config server instead of deploying one
648
##
649
external:
650
## @param configsvr.external.host Primary node of an external Config Server replicaset
651
##
652
host: ""
653
## @param configsvr.external.rootPassword Root password of the external Config Server replicaset
654
##
655
rootPassword: ""
656
## @param configsvr.external.replicasetName Replicaset name of an external Config Server
657
##
658
replicasetName: ""
659
## @param configsvr.external.replicasetKey Replicaset key of an external Config Server
660
##
661
replicasetKey: ""
662
## Configure Pods Security Context
663
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
664
## @param configsvr.podSecurityContext.enabled Enable security context
665
## @param configsvr.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
666
## @param configsvr.podSecurityContext.sysctls Set kernel settings using the sysctl interface
667
## @param configsvr.podSecurityContext.supplementalGroups Set filesystem extra groups
668
## @param configsvr.podSecurityContext.fsGroup Group ID for the container
669
##
670
podSecurityContext:
671
enabled: true
672
fsGroupChangePolicy: Always
673
sysctls: []
674
supplementalGroups: []
675
fsGroup: 1001
676
## Configure Container Security Context
677
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
678
## @param configsvr.containerSecurityContext.enabled Enabled containers' Security Context
679
## @param configsvr.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
680
## @param configsvr.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
681
## @param configsvr.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
682
## @param configsvr.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
683
## @param configsvr.containerSecurityContext.privileged Set container's Security Context privileged
684
## @param configsvr.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
685
## @param configsvr.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
686
## @param configsvr.containerSecurityContext.capabilities.drop List of capabilities to be dropped
687
## @param configsvr.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
688
##
689
containerSecurityContext:
690
enabled: true
691
seLinuxOptions: {}
692
runAsUser: 1001
693
runAsGroup: 1001
694
runAsNonRoot: true
695
privileged: false
696
readOnlyRootFilesystem: true
697
allowPrivilegeEscalation: false
698
capabilities:
699
drop: ["ALL"]
700
seccompProfile:
701
type: "RuntimeDefault"
702
## @param configsvr.command Override default container command (useful when using custom images)
703
##
704
command:
705
- /bin/bash
706
- /entrypoint/replicaset-entrypoint.sh
707
## @param configsvr.args Override default container args (useful when using custom images)
708
##
709
args: []
710
## @param configsvr.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
711
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
712
##
713
terminationGracePeriodSeconds: ""
714
## @param configsvr.lifecycleHooks for the Config Server container(s) to automate configuration before or after startup
715
##
716
lifecycleHooks: {}
717
## Configure extra options for liveness probes
718
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
719
## @param configsvr.livenessProbe.enabled Enable livenessProbe
720
## @param configsvr.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
721
## @param configsvr.livenessProbe.periodSeconds Period seconds for livenessProbe
722
## @param configsvr.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
723
## @param configsvr.livenessProbe.failureThreshold Failure threshold for livenessProbe
724
## @param configsvr.livenessProbe.successThreshold Success threshold for livenessProbe
725
##
726
livenessProbe:
727
enabled: true
728
initialDelaySeconds: 60
729
periodSeconds: 30
730
timeoutSeconds: 20
731
failureThreshold: 2
732
successThreshold: 1
733
## Configure extra options for readiness probe
734
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
735
## @param configsvr.readinessProbe.enabled Enable readinessProbe
736
## @param configsvr.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
737
## @param configsvr.readinessProbe.periodSeconds Period seconds for readinessProbe
738
## @param configsvr.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
739
## @param configsvr.readinessProbe.failureThreshold Failure threshold for readinessProbe
740
## @param configsvr.readinessProbe.successThreshold Success threshold for readinessProbe
741
##
742
readinessProbe:
743
enabled: true
744
initialDelaySeconds: 10
745
periodSeconds: 30
746
timeoutSeconds: 20
747
failureThreshold: 6
748
successThreshold: 1
749
## Configure extra options for startup probe
750
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
751
## @param configsvr.startupProbe.enabled Enable startupProbe
752
## @param configsvr.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
753
## @param configsvr.startupProbe.periodSeconds Period seconds for startupProbe
754
## @param configsvr.startupProbe.timeoutSeconds Timeout seconds for startupProbe
755
## @param configsvr.startupProbe.failureThreshold Failure threshold for startupProbe
756
## @param configsvr.startupProbe.successThreshold Success threshold for startupProbe
757
##
758
startupProbe:
759
enabled: true
760
initialDelaySeconds: 0
761
periodSeconds: 10
762
timeoutSeconds: 5
763
failureThreshold: 30
764
successThreshold: 1
765
## @param configsvr.customLivenessProbe Custom livenessProbe that overrides the default one
766
##
767
customLivenessProbe: {}
768
## @param configsvr.customReadinessProbe Custom readinessProbe that overrides the default one
769
##
770
customReadinessProbe: {}
771
## @param configsvr.customStartupProbe Custom startupProbe that overrides the default one
772
##
773
customStartupProbe: {}
774
## @section Mongos parameters
775
##
776
777
## Mongos properties
778
## ref: https://docs.mongodb.com/manual/reference/program/mongos/#bin.mongos
779
##
780
mongos:
781
## @param mongos.replicaCount Number of replicas
782
##
783
replicaCount: 1
784
## @param mongos.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if mongos.resources is set (mongos.resources is recommended for production).
785
##
786
resourcesPreset: "small"
787
## @param mongos.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
788
## Example:
789
## resources:
790
## requests:
791
## cpu: 2
792
## memory: 512Mi
793
## limits:
794
## cpu: 3
795
## memory: 1024Mi
796
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
797
##
798
resources: {}
799
## @param mongos.automountServiceAccountToken Mount Service Account token in pod
800
##
801
automountServiceAccountToken: false
802
## @param mongos.hostAliases Deployment pod host aliases
803
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
804
##
805
hostAliases: []
806
## @param mongos.mongodbExtraFlags MongoDB&reg; additional command line flags
807
## Can be used to specify command line flags, for example:
808
## mongodbExtraFlags:
809
## - "--wiredTigerCacheSizeGB=2"
810
##
811
mongodbExtraFlags: []
812
## @param mongos.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
813
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
814
##
815
topologySpreadConstraints: []
816
## @param mongos.priorityClassName Pod priority class name
817
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
818
##
819
priorityClassName: ""
820
## @param mongos.podAffinityPreset Mongos Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
821
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
822
##
823
podAffinityPreset: ""
824
## @param mongos.podAntiAffinityPreset Mongos Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
825
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
826
##
827
podAntiAffinityPreset: soft
828
## Node affinity preset
829
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
830
##
831
nodeAffinityPreset:
832
## @param mongos.nodeAffinityPreset.type Mongos Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
833
##
834
type: ""
835
## @param mongos.nodeAffinityPreset.key Mongos Node label key to match Ignored if `affinity` is set.
836
## E.g.
837
## key: "kubernetes.io/e2e-az-name"
838
##
839
key: ""
840
## @param mongos.nodeAffinityPreset.values Mongos Node label values to match. Ignored if `affinity` is set.
841
## E.g.
842
## values:
843
## - e2e-az1
844
## - e2e-az2
845
##
846
values: []
847
## @param mongos.affinity Mongos Affinity for pod assignment
848
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
849
## Note: mongos.podAffinityPreset, mongos.podAntiAffinityPreset, and mongos.nodeAffinityPreset will be ignored when it's set
850
##
851
affinity: {}
852
## @param mongos.nodeSelector Mongos Node labels for pod assignment
853
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
854
##
855
nodeSelector: {}
856
## @param mongos.tolerations Mongos Tolerations for pod assignment
857
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
858
##
859
tolerations: []
860
## @param mongos.podManagementPolicy Statefulsets pod management policy, allows parallel startup of pods
861
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
862
##
863
podManagementPolicy: OrderedReady
864
## @param mongos.updateStrategy.type updateStrategy for MongoDB&reg; Primary, Secondary and Arbiter statefulsets
865
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
866
##
867
updateStrategy:
868
type: RollingUpdate
869
## @param mongos.config MongoDB&reg; configuration file
870
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
871
##
872
config: ""
873
## @param mongos.configCM ConfigMap name with MongoDB&reg; configuration file (cannot be used with mongos.config)
874
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
875
##
876
configCM: ""
877
## @param mongos.extraEnvVars An array to add extra env vars
878
## For example:
879
## extraEnvVars:
880
## - name: KIBANA_ELASTICSEARCH_URL
881
## value: test
882
##
883
extraEnvVars: []
884
## @param mongos.extraEnvVarsCM Name of a ConfigMap containing extra env vars
885
##
886
extraEnvVarsCM: ""
887
## @param mongos.extraEnvVarsSecret Name of a Secret containing extra env vars
888
##
889
extraEnvVarsSecret: ""
890
## @param mongos.sidecars Add sidecars to the pod
891
## For example:
892
## sidecars:
893
## - name: your-image-name
894
## image: your-image
895
## imagePullPolicy: Always
896
## ports:
897
## - name: portname
898
## containerPort: 1234
899
##
900
sidecars: []
901
## @param mongos.initContainers Add init containers to the pod
902
## For example:
903
## initcontainers:
904
## - name: your-image-name
905
## image: your-image
906
## imagePullPolicy: Always
907
##
908
initContainers: []
909
## @param mongos.podAnnotations Additional pod annotations
910
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
911
##
912
podAnnotations: {}
913
## @param mongos.podLabels Additional pod labels
914
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
915
##
916
podLabels: {}
917
## @param mongos.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
918
##
919
extraVolumes: []
920
## @param mongos.extraVolumeMounts Array to add extra volume mounts. Normally used with `extraVolumes`.
921
##
922
extraVolumeMounts: []
923
## @param mongos.schedulerName Use an alternate scheduler, e.g. "stork".
924
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
925
##
926
schedulerName: ""
927
## @param mongos.useStatefulSet Use StatefulSet instead of Deployment
928
##
929
useStatefulSet: false
930
## When using a statefulset, you can enable one service per replica
931
## This is useful when exposing the mongos through load balancers to make sure clients
932
## connect to the same mongos and therefore can follow their cursors
933
##
934
servicePerReplica:
935
## @param mongos.servicePerReplica.enabled Create one service per mongos replica (must be used with statefulset)
936
##
937
enabled: false
938
## @param mongos.servicePerReplica.annotations Additional service annotations (evaluate as a template)
939
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
940
##
941
annotations: {}
942
## @param mongos.servicePerReplica.type Service type
943
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
944
##
945
type: ClusterIP
946
## @param mongos.servicePerReplica.externalTrafficPolicy External traffic policy
947
## Enable client source IP preservation
948
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
949
##
950
externalTrafficPolicy: Cluster
951
## @param mongos.servicePerReplica.port MongoDB&reg; service port
952
##
953
port: 27017
954
## @param mongos.servicePerReplica.clusterIPs Array of static clusterIPs for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
955
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
956
##
957
clusterIPs: []
958
## @param mongos.servicePerReplica.nodePorts Array of node ports used for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
959
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
960
##
961
nodePorts: []
962
## @param mongos.servicePerReplica.externalIPs External IP list to use with ClusterIP service type
963
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
964
##
965
externalIPs: []
966
## @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
967
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
968
##
969
loadBalancerIPs: []
970
## @param mongos.servicePerReplica.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
971
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
972
##
973
loadBalancerSourceRanges: []
974
## @param mongos.servicePerReplica.extraPorts Extra ports to expose (normally used with the `sidecar` value)
975
##
976
extraPorts: []
977
## @param mongos.servicePerReplica.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
978
## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
979
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
980
##
981
sessionAffinity: None
982
## @param mongos.servicePerReplica.sessionAffinityConfig Additional settings for the sessionAffinity
983
## sessionAffinityConfig:
984
## clientIP:
985
## timeoutSeconds: 300
986
##
987
sessionAffinityConfig: {}
988
## Pod disruption budget
989
##
990
pdb:
991
## @param mongos.pdb.create Enable pod disruption budget
992
##
993
create: true
994
## @param mongos.pdb.minAvailable Minimum number of available mongo pods allowed (`0` to disable)
995
##
996
minAvailable: 0
997
## @param mongos.pdb.maxUnavailable Maximum number of unavailable mongo pods allowed (`0` to disable)
998
##
999
maxUnavailable: 1
1000
## K8s Service Account.
1001
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1002
##
1003
serviceAccount:
1004
## @param mongos.serviceAccount.create Whether to create a Service Account for mongos automatically
1005
##
1006
create: true
1007
## @param mongos.serviceAccount.name Name of a Service Account to be used by mongos
1008
## If not set and create is true, a name is generated using the XXX.fullname template
1009
##
1010
name: ""
1011
## @param mongos.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1012
##
1013
annotations: {}
1014
## @param mongos.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1015
##
1016
automountServiceAccountToken: false
1017
## Configure Pods Security Context
1018
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1019
## @param mongos.podSecurityContext.enabled Enable security context
1020
## @param mongos.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1021
## @param mongos.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1022
## @param mongos.podSecurityContext.supplementalGroups Set filesystem extra groups
1023
## @param mongos.podSecurityContext.fsGroup Group ID for the container
1024
##
1025
podSecurityContext:
1026
enabled: true
1027
fsGroupChangePolicy: Always
1028
sysctls: []
1029
supplementalGroups: []
1030
fsGroup: 1001
1031
## Configure Container Security Context
1032
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1033
## @param mongos.containerSecurityContext.enabled Enabled containers' Security Context
1034
## @param mongos.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1035
## @param mongos.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1036
## @param mongos.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1037
## @param mongos.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1038
## @param mongos.containerSecurityContext.privileged Set container's Security Context privileged
1039
## @param mongos.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1040
## @param mongos.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1041
## @param mongos.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1042
## @param mongos.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1043
##
1044
containerSecurityContext:
1045
enabled: true
1046
seLinuxOptions: {}
1047
runAsUser: 1001
1048
runAsGroup: 1001
1049
runAsNonRoot: true
1050
privileged: false
1051
readOnlyRootFilesystem: true
1052
allowPrivilegeEscalation: false
1053
capabilities:
1054
drop: ["ALL"]
1055
seccompProfile:
1056
type: "RuntimeDefault"
1057
## @param mongos.command Override default container command (useful when using custom images)
1058
##
1059
command: []
1060
## @param mongos.args Override default container args (useful when using custom images)
1061
##
1062
args: []
1063
## @param mongos.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1064
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1065
##
1066
terminationGracePeriodSeconds: ""
1067
## @param mongos.lifecycleHooks for the Mongo container(s) to automate configuration before or after startup
1068
##
1069
lifecycleHooks: {}
1070
## Configure extra options for liveness probes
1071
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1072
## @param mongos.livenessProbe.enabled Enable livenessProbe
1073
## @param mongos.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1074
## @param mongos.livenessProbe.periodSeconds Period seconds for livenessProbe
1075
## @param mongos.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1076
## @param mongos.livenessProbe.failureThreshold Failure threshold for livenessProbe
1077
## @param mongos.livenessProbe.successThreshold Success threshold for livenessProbe
1078
##
1079
livenessProbe:
1080
enabled: true
1081
initialDelaySeconds: 60
1082
periodSeconds: 30
1083
timeoutSeconds: 20
1084
failureThreshold: 2
1085
successThreshold: 1
1086
## Configure extra options for readiness probe
1087
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1088
## @param mongos.readinessProbe.enabled Enable readinessProbe
1089
## @param mongos.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1090
## @param mongos.readinessProbe.periodSeconds Period seconds for readinessProbe
1091
## @param mongos.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1092
## @param mongos.readinessProbe.failureThreshold Failure threshold for readinessProbe
1093
## @param mongos.readinessProbe.successThreshold Success threshold for readinessProbe
1094
##
1095
readinessProbe:
1096
enabled: true
1097
initialDelaySeconds: 10
1098
periodSeconds: 30
1099
timeoutSeconds: 20
1100
failureThreshold: 6
1101
successThreshold: 1
1102
## Configure extra options for startup probe
1103
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1104
## @param mongos.startupProbe.enabled Enable startupProbe
1105
## @param mongos.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1106
## @param mongos.startupProbe.periodSeconds Period seconds for startupProbe
1107
## @param mongos.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1108
## @param mongos.startupProbe.failureThreshold Failure threshold for startupProbe
1109
## @param mongos.startupProbe.successThreshold Success threshold for startupProbe
1110
##
1111
startupProbe:
1112
enabled: false
1113
initialDelaySeconds: 0
1114
periodSeconds: 10
1115
timeoutSeconds: 5
1116
failureThreshold: 30
1117
successThreshold: 1
1118
## @param mongos.customLivenessProbe Custom livenessProbe that overrides the default one
1119
##
1120
customLivenessProbe: {}
1121
## @param mongos.customReadinessProbe Custom readinessProbe that overrides the default one
1122
##
1123
customReadinessProbe: {}
1124
## @param mongos.customStartupProbe Custom startupProbe that overrides the default one
1125
##
1126
customStartupProbe: {}
1127
## @section Shard configuration: Data node parameters
1128
##
1129
1130
## Shard replica set properties
1131
## ref: https://docs.mongodb.com/manual/replication/index.html
1132
##
1133
shardsvr:
1134
## Properties for data nodes (primary and secondary)
1135
##
1136
dataNode:
1137
## @param shardsvr.dataNode.replicaCount Number of nodes in each shard replica set (the first node will be primary)
1138
##
1139
replicaCount: 1
1140
## @param shardsvr.dataNode.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if shardsvr.dataNode.resources is set (shardsvr.dataNode.resources is recommended for production).
1141
##
1142
resourcesPreset: "medium"
1143
## @param shardsvr.dataNode.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1144
## Example:
1145
## resources:
1146
## requests:
1147
## cpu: 2
1148
## memory: 512Mi
1149
## limits:
1150
## cpu: 3
1151
## memory: 1024Mi
1152
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1153
##
1154
resources: {}
1155
## @param shardsvr.dataNode.mongodbExtraFlags MongoDB&reg; additional command line flags
1156
## Can be used to specify command line flags, for example:
1157
## mongodbExtraFlags:
1158
## - "--wiredTigerCacheSizeGB=2"
1159
##
1160
mongodbExtraFlags: []
1161
## @param shardsvr.dataNode.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1162
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1163
##
1164
topologySpreadConstraints: []
1165
## @param shardsvr.dataNode.priorityClassName Pod priority class name
1166
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1167
##
1168
priorityClassName: ""
1169
## @param shardsvr.dataNode.podAffinityPreset Data nodes Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1170
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1171
##
1172
podAffinityPreset: ""
1173
## @param shardsvr.dataNode.podAntiAffinityPreset Data nodes Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1174
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1175
##
1176
podAntiAffinityPreset: soft
1177
## Node affinity preset
1178
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1179
##
1180
nodeAffinityPreset:
1181
## @param shardsvr.dataNode.nodeAffinityPreset.type Data nodes Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1182
##
1183
type: ""
1184
## @param shardsvr.dataNode.nodeAffinityPreset.key Data nodes Node label key to match Ignored if `affinity` is set.
1185
## E.g.
1186
## key: "kubernetes.io/e2e-az-name"
1187
##
1188
key: ""
1189
## @param shardsvr.dataNode.nodeAffinityPreset.values Data nodes Node label values to match. Ignored if `affinity` is set.
1190
## E.g.
1191
## values:
1192
## - e2e-az1
1193
## - e2e-az2
1194
##
1195
values: []
1196
## @param shardsvr.dataNode.affinity Data nodes Affinity for pod assignment
1197
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1198
## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'affinity' section:
1199
## affinity:
1200
## matchLabels:
1201
## shard: "{{ .dataNodeLoopId }}"
1202
##
1203
## Note: shardsvr.dataNode.podAffinityPreset, shardsvr.dataNode.podAntiAffinityPreset, and shardsvr.dataNode.nodeAffinityPreset will be ignored when it's set
1204
##
1205
affinity: {}
1206
## @param shardsvr.dataNode.nodeSelector Data nodes Node labels for pod assignment
1207
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1208
## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'nodeSelector' section:
1209
## nodeSelector: { shardId: "{{ .dataNodeLoopId }}" }
1210
##
1211
nodeSelector: {}
1212
## @param shardsvr.dataNode.tolerations Data nodes Tolerations for pod assignment
1213
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1214
## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'nodeSelector' section:
1215
## tolerations:
1216
## - key: "shardId"
1217
## operator: "Equal"
1218
## value: "{{ .dataNodeLoopId }}"
1219
## effect: "NoSchedule"
1220
##
1221
tolerations: []
1222
## @param shardsvr.dataNode.podManagementPolicy podManagementPolicy for the statefulset, allows parallel startup of pods
1223
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1224
##
1225
podManagementPolicy: OrderedReady
1226
## @param shardsvr.dataNode.updateStrategy.type updateStrategy for MongoDB&reg; Primary, Secondary and Arbiter statefulsets
1227
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1228
##
1229
updateStrategy:
1230
type: RollingUpdate
1231
## @param shardsvr.dataNode.automountServiceAccountToken Mount Service Account token in pod
1232
##
1233
automountServiceAccountToken: false
1234
## @param shardsvr.dataNode.hostAliases Deployment pod host aliases
1235
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1236
##
1237
hostAliases: []
1238
## @param shardsvr.dataNode.config Entries for the MongoDB&reg; config file
1239
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1240
##
1241
config: ""
1242
## @param shardsvr.dataNode.configCM ConfigMap name with MongoDB&reg; configuration (cannot be used with shardsvr.dataNode.config)
1243
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1244
##
1245
configCM: ""
1246
## @param shardsvr.dataNode.extraEnvVars An array to add extra env vars
1247
## For example:
1248
## extraEnvVars:
1249
## - name: KIBANA_ELASTICSEARCH_URL
1250
## value: test
1251
##
1252
extraEnvVars: []
1253
## @param shardsvr.dataNode.extraEnvVarsCM Name of a ConfigMap containing extra env vars
1254
##
1255
extraEnvVarsCM: ""
1256
## @param shardsvr.dataNode.extraEnvVarsSecret Name of a Secret containing extra env vars
1257
##
1258
extraEnvVarsSecret: ""
1259
## @param shardsvr.dataNode.sidecars Attach additional containers (evaluated as a template)
1260
## For example:
1261
## sidecars:
1262
## - name: your-image-name
1263
## image: your-image
1264
## imagePullPolicy: Always
1265
## ports:
1266
## - name: portname
1267
## containerPort: 1234
1268
##
1269
sidecars: []
1270
## @param shardsvr.dataNode.initContainers Add init containers to the pod
1271
## For example:
1272
## initcontainers:
1273
## - name: your-image-name
1274
## image: your-image
1275
## imagePullPolicy: Always
1276
##
1277
initContainers: []
1278
## @param shardsvr.dataNode.podAnnotations Additional pod annotations
1279
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1280
##
1281
podAnnotations: {}
1282
## @param shardsvr.dataNode.podLabels Additional pod labels
1283
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1284
##
1285
podLabels: {}
1286
## @param shardsvr.dataNode.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
1287
##
1288
extraVolumes: []
1289
## @param shardsvr.dataNode.extraVolumeMounts Array to add extra mounts. Normally used with `extraVolumes`
1290
##
1291
extraVolumeMounts: []
1292
## @param shardsvr.dataNode.schedulerName Use an alternate scheduler, e.g. "stork".
1293
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1294
##
1295
schedulerName: ""
1296
## Pod disruption budget
1297
##
1298
pdb:
1299
## @param shardsvr.dataNode.pdb.create Enable pod disruption budget
1300
##
1301
create: true
1302
## @param shardsvr.dataNode.pdb.minAvailable Minimum number of available data pods allowed (`0` to disable)
1303
##
1304
minAvailable: 0
1305
## @param shardsvr.dataNode.pdb.maxUnavailable Maximum number of unavailable data pods allowed (`0` to disable)
1306
##
1307
maxUnavailable: 1
1308
## K8s Service Account.
1309
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1310
##
1311
serviceAccount:
1312
## @param shardsvr.dataNode.serviceAccount.create Specifies whether a ServiceAccount should be created for shardsvr
1313
##
1314
create: true
1315
## @param shardsvr.dataNode.serviceAccount.name Name of a Service Account to be used by shardsvr data pods
1316
## If not set and create is true, a name is generated using the XXX.fullname template
1317
##
1318
name: ""
1319
## @param shardsvr.dataNode.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1320
##
1321
annotations: {}
1322
## @param shardsvr.dataNode.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1323
##
1324
automountServiceAccountToken: false
1325
## Configure Pods Security Context
1326
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1327
## @param shardsvr.dataNode.podSecurityContext.enabled Enable security context
1328
## @param shardsvr.dataNode.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1329
## @param shardsvr.dataNode.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1330
## @param shardsvr.dataNode.podSecurityContext.supplementalGroups Set filesystem extra groups
1331
## @param shardsvr.dataNode.podSecurityContext.fsGroup Group ID for the container
1332
##
1333
podSecurityContext:
1334
enabled: true
1335
fsGroupChangePolicy: Always
1336
sysctls: []
1337
supplementalGroups: []
1338
fsGroup: 1001
1339
## Configure Container Security Context
1340
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1341
## @param shardsvr.dataNode.containerSecurityContext.enabled Enabled containers' Security Context
1342
## @param shardsvr.dataNode.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1343
## @param shardsvr.dataNode.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1344
## @param shardsvr.dataNode.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1345
## @param shardsvr.dataNode.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1346
## @param shardsvr.dataNode.containerSecurityContext.privileged Set container's Security Context privileged
1347
## @param shardsvr.dataNode.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1348
## @param shardsvr.dataNode.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1349
## @param shardsvr.dataNode.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1350
## @param shardsvr.dataNode.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1351
##
1352
containerSecurityContext:
1353
enabled: true
1354
seLinuxOptions: {}
1355
runAsUser: 1001
1356
runAsGroup: 1001
1357
runAsNonRoot: true
1358
privileged: false
1359
readOnlyRootFilesystem: true
1360
allowPrivilegeEscalation: false
1361
capabilities:
1362
drop: ["ALL"]
1363
seccompProfile:
1364
type: "RuntimeDefault"
1365
## @param shardsvr.dataNode.command Override default container command (useful when using custom images)
1366
##
1367
command:
1368
- /bin/bash
1369
- /entrypoint/replicaset-entrypoint.sh
1370
## @param shardsvr.dataNode.args Override default container args (useful when using custom images)
1371
##
1372
args: []
1373
## @param shardsvr.dataNode.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1374
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1375
##
1376
terminationGracePeriodSeconds: ""
1377
## @param shardsvr.dataNode.lifecycleHooks for the Data container(s) to automate configuration before or after startup
1378
##
1379
lifecycleHooks: {}
1380
## Configure extra options for liveness probes
1381
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1382
## @param shardsvr.dataNode.livenessProbe.enabled Enable livenessProbe
1383
## @param shardsvr.dataNode.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1384
## @param shardsvr.dataNode.livenessProbe.periodSeconds Period seconds for livenessProbe
1385
## @param shardsvr.dataNode.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1386
## @param shardsvr.dataNode.livenessProbe.failureThreshold Failure threshold for livenessProbe
1387
## @param shardsvr.dataNode.livenessProbe.successThreshold Success threshold for livenessProbe
1388
##
1389
livenessProbe:
1390
enabled: true
1391
initialDelaySeconds: 60
1392
periodSeconds: 30
1393
timeoutSeconds: 20
1394
failureThreshold: 2
1395
successThreshold: 1
1396
## Configure extra options for readiness probe
1397
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1398
## @param shardsvr.dataNode.readinessProbe.enabled Enable readinessProbe
1399
## @param shardsvr.dataNode.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1400
## @param shardsvr.dataNode.readinessProbe.periodSeconds Period seconds for readinessProbe
1401
## @param shardsvr.dataNode.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1402
## @param shardsvr.dataNode.readinessProbe.failureThreshold Failure threshold for readinessProbe
1403
## @param shardsvr.dataNode.readinessProbe.successThreshold Success threshold for readinessProbe
1404
##
1405
readinessProbe:
1406
enabled: true
1407
initialDelaySeconds: 10
1408
periodSeconds: 30
1409
timeoutSeconds: 20
1410
failureThreshold: 6
1411
successThreshold: 1
1412
## Configure extra options for startup probe
1413
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1414
## @param shardsvr.dataNode.startupProbe.enabled Enable startupProbe
1415
## @param shardsvr.dataNode.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1416
## @param shardsvr.dataNode.startupProbe.periodSeconds Period seconds for startupProbe
1417
## @param shardsvr.dataNode.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1418
## @param shardsvr.dataNode.startupProbe.failureThreshold Failure threshold for startupProbe
1419
## @param shardsvr.dataNode.startupProbe.successThreshold Success threshold for startupProbe
1420
##
1421
startupProbe:
1422
enabled: false
1423
initialDelaySeconds: 0
1424
periodSeconds: 10
1425
timeoutSeconds: 5
1426
failureThreshold: 30
1427
successThreshold: 1
1428
## @param shardsvr.dataNode.customLivenessProbe Custom livenessProbe that overrides the default one
1429
##
1430
customLivenessProbe: {}
1431
## @param shardsvr.dataNode.customReadinessProbe Custom readinessProbe that overrides the default one
1432
##
1433
customReadinessProbe: {}
1434
## @param shardsvr.dataNode.customStartupProbe Custom startupProbe that overrides the default one
1435
##
1436
customStartupProbe: {}
1437
## @section Shard configuration: Persistence parameters
1438
##
1439
1440
## Enable persistence using Persistent Volume Claims
1441
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1442
##
1443
persistence:
1444
## @param shardsvr.persistence.enabled Use a PVC to persist data
1445
##
1446
enabled: true
1447
## @param shardsvr.persistence.mountPath The path the volume will be mounted at, useful when using different MongoDB&reg; images.
1448
##
1449
mountPath: /iamguarded/mongodb
1450
## @param shardsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
1451
## Useful in development environments and one PV for multiple services.
1452
##
1453
subPath: ""
1454
## @param shardsvr.persistence.storageClass Storage class of backing PVC
1455
## If defined, storageClassName: <storageClass>
1456
## If set to "-", storageClassName: "", which disables dynamic provisioning
1457
## If undefined (the default) or set to null, no storageClassName spec is
1458
## set, choosing the default provisioner. (gp2 on AWS, standard on
1459
## GKE, AWS & OpenStack)
1460
##
1461
storageClass: ""
1462
## @param shardsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
1463
##
1464
accessModes:
1465
- ReadWriteOnce
1466
## @param shardsvr.persistence.size PersistentVolumeClaim size
1467
##
1468
size: 8Gi
1469
## @param shardsvr.persistence.annotations Additional volume annotations
1470
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1471
##
1472
annotations: {}
1473
## @param shardsvr.persistence.selector Selector to match an existing Persistent Volume for Shard data PVC
1474
## A label query over volumes to consider for binding (e.g. when using local volumes)
1475
## Selector can be defined with static and dynamic options:
1476
## selector:
1477
## matchLabels:
1478
## app: web
1479
## shard: shard{{ .Index }}
1480
##
1481
## shard{{ .Index }} will be substituted to shard0, shard1 accordingly
1482
##
1483
selector: {}
1484
## Persistent Volume Claim Retention Policy
1485
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1486
##
1487
persistentVolumeClaimRetentionPolicy:
1488
## @param shardsvr.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Shard replicas StatefulSet
1489
##
1490
enabled: false
1491
## @param shardsvr.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1492
##
1493
whenScaled: Retain
1494
## @param shardsvr.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1495
##
1496
whenDeleted: Retain
1497
## @section Shard configuration: Arbiter parameters
1498
##
1499
1500
## Properties for arbiter nodes
1501
## ref: https://docs.mongodb.com/manual/tutorial/add-replica-set-arbiter/
1502
##
1503
arbiter:
1504
## @param shardsvr.arbiter.replicaCount Number of arbiters in each shard replica set (the first node will be primary)
1505
##
1506
replicaCount: 0
1507
## @param shardsvr.arbiter.automountServiceAccountToken Mount Service Account token in pod
1508
##
1509
automountServiceAccountToken: false
1510
## @param shardsvr.arbiter.hostAliases Deployment pod host aliases
1511
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1512
##
1513
hostAliases: []
1514
## @param shardsvr.arbiter.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if shardsvr.arbiter.resources is set (shardsvr.arbiter.resources is recommended for production).
1515
##
1516
resourcesPreset: "small"
1517
## @param shardsvr.arbiter.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1518
## Example:
1519
## resources:
1520
## requests:
1521
## cpu: 2
1522
## memory: 512Mi
1523
## limits:
1524
## cpu: 3
1525
## memory: 1024Mi
1526
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1527
##
1528
resources: {}
1529
## @param shardsvr.arbiter.mongodbExtraFlags MongoDB&reg; additional command line flags
1530
## Can be used to specify command line flags, for example:
1531
## mongodbExtraFlags:
1532
## - "--wiredTigerCacheSizeGB=2"
1533
##
1534
mongodbExtraFlags: []
1535
## @param shardsvr.arbiter.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1536
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1537
##
1538
topologySpreadConstraints: []
1539
## @param shardsvr.arbiter.priorityClassName Pod priority class name
1540
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1541
##
1542
priorityClassName: ""
1543
## @param shardsvr.arbiter.podAffinityPreset Arbiter's Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1544
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1545
##
1546
podAffinityPreset: ""
1547
## @param shardsvr.arbiter.podAntiAffinityPreset Arbiter's Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1548
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1549
##
1550
podAntiAffinityPreset: soft
1551
## Node affinity preset
1552
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1553
##
1554
nodeAffinityPreset:
1555
## @param shardsvr.arbiter.nodeAffinityPreset.type Arbiter's Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1556
##
1557
type: ""
1558
## @param shardsvr.arbiter.nodeAffinityPreset.key Arbiter's Node label key to match Ignored if `affinity` is set.
1559
## E.g.
1560
## key: "kubernetes.io/e2e-az-name"
1561
##
1562
key: ""
1563
## @param shardsvr.arbiter.nodeAffinityPreset.values Arbiter's Node label values to match. Ignored if `affinity` is set.
1564
## E.g.
1565
## values:
1566
## - e2e-az1
1567
## - e2e-az2
1568
##
1569
values: []
1570
## @param shardsvr.arbiter.affinity Arbiter's Affinity for pod assignment
1571
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1572
## You can set arbiterLoopId (or any other parameter) by setting the below code block under this 'affinity' section:
1573
## affinity:
1574
## matchLabels:
1575
## shard: "{{ .arbiterLoopId }}"
1576
##
1577
## Note: shardsvr.arbiter.podAffinityPreset, shardsvr.arbiter.podAntiAffinityPreset, and shardsvr.arbiter.nodeAffinityPreset will be ignored when it's set
1578
##
1579
affinity: {}
1580
## @param shardsvr.arbiter.nodeSelector Arbiter's Node labels for pod assignment
1581
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1582
##
1583
nodeSelector: {}
1584
## @param shardsvr.arbiter.tolerations Arbiter's Tolerations for pod assignment
1585
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1586
##
1587
tolerations: []
1588
## @param shardsvr.arbiter.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
1589
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1590
##
1591
podManagementPolicy: OrderedReady
1592
## @param shardsvr.arbiter.updateStrategy.type updateStrategy for MongoDB&reg; Primary, Secondary and Arbiter statefulsets
1593
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1594
##
1595
updateStrategy:
1596
type: RollingUpdate
1597
## @param shardsvr.arbiter.config MongoDB&reg; configuration file
1598
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1599
##
1600
config: ""
1601
## @param shardsvr.arbiter.configCM ConfigMap name with MongoDB&reg; configuration file (cannot be used with shardsvr.arbiter.config)
1602
## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1603
##
1604
configCM: ""
1605
## @param shardsvr.arbiter.extraEnvVars An array to add extra env vars
1606
## For example:
1607
## extraEnvVars:
1608
## - name: KIBANA_ELASTICSEARCH_URL
1609
## value: test
1610
##
1611
extraEnvVars: []
1612
## @param shardsvr.arbiter.extraEnvVarsCM Name of a ConfigMap containing extra env vars
1613
##
1614
extraEnvVarsCM: ""
1615
## @param shardsvr.arbiter.extraEnvVarsSecret Name of a Secret containing extra env vars
1616
##
1617
extraEnvVarsSecret: ""
1618
## @param shardsvr.arbiter.sidecars Add sidecars to the pod
1619
## For example:
1620
## sidecars:
1621
## - name: your-image-name
1622
## image: your-image
1623
## imagePullPolicy: Always
1624
## ports:
1625
## - name: portname
1626
## containerPort: 1234
1627
##
1628
sidecars: []
1629
## @param shardsvr.arbiter.initContainers Add init containers to the pod
1630
## For example:
1631
## initcontainers:
1632
## - name: your-image-name
1633
## image: your-image
1634
## imagePullPolicy: Always
1635
##
1636
initContainers: []
1637
## @param shardsvr.arbiter.podAnnotations Additional pod annotations
1638
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1639
##
1640
podAnnotations: {}
1641
## @param shardsvr.arbiter.podLabels Additional pod labels
1642
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1643
##
1644
podLabels: {}
1645
## @param shardsvr.arbiter.extraVolumes Array to add extra volumes
1646
##
1647
extraVolumes: []
1648
## @param shardsvr.arbiter.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
1649
##
1650
extraVolumeMounts: []
1651
## @param shardsvr.arbiter.schedulerName Use an alternate scheduler, e.g. "stork".
1652
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1653
##
1654
schedulerName: ""
1655
## K8s Service Account.
1656
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1657
##
1658
serviceAccount:
1659
## @param shardsvr.arbiter.serviceAccount.create Specifies whether a ServiceAccount should be created for shardsvr arbiter nodes
1660
##
1661
create: true
1662
## @param shardsvr.arbiter.serviceAccount.name Name of a Service Account to be used by shardsvr arbiter pods
1663
## If not set and create is true, a name is generated using the XXX.fullname template
1664
##
1665
name: ""
1666
## @param shardsvr.arbiter.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1667
##
1668
annotations: {}
1669
## @param shardsvr.arbiter.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1670
##
1671
automountServiceAccountToken: false
1672
## Configure Pods Security Context
1673
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1674
## @param shardsvr.arbiter.podSecurityContext.enabled Enable security context
1675
## @param shardsvr.arbiter.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1676
## @param shardsvr.arbiter.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1677
## @param shardsvr.arbiter.podSecurityContext.supplementalGroups Set filesystem extra groups
1678
## @param shardsvr.arbiter.podSecurityContext.fsGroup Group ID for the container
1679
##
1680
podSecurityContext:
1681
enabled: true
1682
fsGroupChangePolicy: Always
1683
sysctls: []
1684
supplementalGroups: []
1685
fsGroup: 1001
1686
## Configure Container Security Context
1687
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1688
## @param shardsvr.arbiter.containerSecurityContext.enabled Enabled containers' Security Context
1689
## @param shardsvr.arbiter.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1690
## @param shardsvr.arbiter.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1691
## @param shardsvr.arbiter.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1692
## @param shardsvr.arbiter.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1693
## @param shardsvr.arbiter.containerSecurityContext.privileged Set container's Security Context privileged
1694
## @param shardsvr.arbiter.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1695
## @param shardsvr.arbiter.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1696
## @param shardsvr.arbiter.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1697
## @param shardsvr.arbiter.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1698
##
1699
containerSecurityContext:
1700
enabled: true
1701
seLinuxOptions: {}
1702
runAsUser: 1001
1703
runAsGroup: 1001
1704
runAsNonRoot: true
1705
privileged: false
1706
readOnlyRootFilesystem: true
1707
allowPrivilegeEscalation: false
1708
capabilities:
1709
drop: ["ALL"]
1710
seccompProfile:
1711
type: "RuntimeDefault"
1712
## @param shardsvr.arbiter.command Override default container command (useful when using custom images)
1713
##
1714
command: []
1715
## @param shardsvr.arbiter.args Override default container args (useful when using custom images)
1716
##
1717
args: []
1718
## @param shardsvr.arbiter.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1719
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1720
##
1721
terminationGracePeriodSeconds: ""
1722
## @param shardsvr.arbiter.lifecycleHooks for the arbiter container(s) to automate configuration before or after startup
1723
##
1724
lifecycleHooks: {}
1725
## Configure extra options for liveness probes
1726
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1727
## @param shardsvr.arbiter.livenessProbe.enabled Enable livenessProbe
1728
## @param shardsvr.arbiter.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1729
## @param shardsvr.arbiter.livenessProbe.periodSeconds Period seconds for livenessProbe
1730
## @param shardsvr.arbiter.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1731
## @param shardsvr.arbiter.livenessProbe.failureThreshold Failure threshold for livenessProbe
1732
## @param shardsvr.arbiter.livenessProbe.successThreshold Success threshold for livenessProbe
1733
##
1734
livenessProbe:
1735
enabled: true
1736
initialDelaySeconds: 60
1737
periodSeconds: 30
1738
timeoutSeconds: 20
1739
failureThreshold: 2
1740
successThreshold: 1
1741
## Configure extra options for readiness probe
1742
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1743
## @param shardsvr.arbiter.readinessProbe.enabled Enable readinessProbe
1744
## @param shardsvr.arbiter.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1745
## @param shardsvr.arbiter.readinessProbe.periodSeconds Period seconds for readinessProbe
1746
## @param shardsvr.arbiter.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1747
## @param shardsvr.arbiter.readinessProbe.failureThreshold Failure threshold for readinessProbe
1748
## @param shardsvr.arbiter.readinessProbe.successThreshold Success threshold for readinessProbe
1749
##
1750
readinessProbe:
1751
enabled: true
1752
initialDelaySeconds: 10
1753
periodSeconds: 30
1754
timeoutSeconds: 20
1755
failureThreshold: 6
1756
successThreshold: 1
1757
## Configure extra options for startup probe
1758
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1759
## @param shardsvr.arbiter.startupProbe.enabled Enable startupProbe
1760
## @param shardsvr.arbiter.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1761
## @param shardsvr.arbiter.startupProbe.periodSeconds Period seconds for startupProbe
1762
## @param shardsvr.arbiter.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1763
## @param shardsvr.arbiter.startupProbe.failureThreshold Failure threshold for startupProbe
1764
## @param shardsvr.arbiter.startupProbe.successThreshold Success threshold for startupProbe
1765
##
1766
startupProbe:
1767
enabled: false
1768
initialDelaySeconds: 0
1769
periodSeconds: 10
1770
timeoutSeconds: 5
1771
failureThreshold: 30
1772
successThreshold: 1
1773
## @param shardsvr.arbiter.customLivenessProbe Custom livenessProbe that overrides the default one
1774
##
1775
customLivenessProbe: {}
1776
## @param shardsvr.arbiter.customReadinessProbe Custom readinessProbe that overrides the default one
1777
##
1778
customReadinessProbe: {}
1779
## @param shardsvr.arbiter.customStartupProbe Custom startupProbe that overrides the default one
1780
##
1781
customStartupProbe: {}
1782
## @section Metrics parameters
1783
##
1784
1785
metrics:
1786
## @param metrics.enabled Start a side-car prometheus exporter
1787
##
1788
enabled: false
1789
## @param metrics.image.registry [default: REGISTRY_NAME] MongoDB&reg; exporter image registry
1790
## @param metrics.image.repository [default: REPOSITORY_NAME/mongodb-exporter] MongoDB&reg; exporter image name
1791
## @skip metrics.image.tag MongoDB&reg; exporter image tag
1792
## @param metrics.image.digest MongoDB&reg; exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1793
## @param metrics.image.pullPolicy MongoDB&reg; exporter image pull policy
1794
## @param metrics.image.pullSecrets MongoDB&reg; exporter image pull secrets
1795
##
1796
image:
1797
registry: cgr.dev
1798
repository: chainguard-private/prometheus-mongodb-exporter-iamguarded
1799
tag: 0.54.0
1800
digest: ""
1801
pullPolicy: Always
1802
## Optionally specify an array of imagePullSecrets.
1803
## Secrets must be manually created in the namespace.
1804
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1805
## e.g:
1806
## pullSecrets:
1807
## - myRegistryKeySecretName
1808
##
1809
pullSecrets: []
1810
## @param metrics.useTLS Whether to connect to MongoDB&reg; with TLS
1811
##
1812
useTLS: false
1813
## @param metrics.extraArgs String with extra arguments to the metrics exporter
1814
## ref: https://github.com/percona/mongodb_exporter/blob/main/main.go
1815
##
1816
extraArgs: ""
1817
## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1818
##
1819
resourcesPreset: "nano"
1820
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1821
## Example:
1822
## resources:
1823
## requests:
1824
## cpu: 2
1825
## memory: 512Mi
1826
## limits:
1827
## cpu: 3
1828
## memory: 1024Mi
1829
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1830
##
1831
resources: {}
1832
## Configure Container Security Context
1833
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1834
## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1835
## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1836
## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1837
## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1838
## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1839
## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1840
## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1841
## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1842
## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1843
## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1844
##
1845
containerSecurityContext:
1846
enabled: true
1847
seLinuxOptions: {}
1848
runAsUser: 1001
1849
runAsGroup: 1001
1850
runAsNonRoot: true
1851
privileged: false
1852
readOnlyRootFilesystem: true
1853
allowPrivilegeEscalation: false
1854
capabilities:
1855
drop: ["ALL"]
1856
seccompProfile:
1857
type: "RuntimeDefault"
1858
## Metrics exporter liveness probe
1859
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
1860
## @param metrics.livenessProbe.enabled Enable livenessProbe
1861
## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1862
## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1863
## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1864
## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1865
## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1866
##
1867
livenessProbe:
1868
enabled: false
1869
initialDelaySeconds: 15
1870
periodSeconds: 5
1871
timeoutSeconds: 5
1872
failureThreshold: 3
1873
successThreshold: 1
1874
## Metrics exporter liveness and readiness probes
1875
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
1876
## @param metrics.readinessProbe.enabled Enable readinessProbe
1877
## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1878
## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1879
## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1880
## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1881
## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1882
##
1883
readinessProbe:
1884
enabled: false
1885
initialDelaySeconds: 5
1886
periodSeconds: 5
1887
timeoutSeconds: 1
1888
failureThreshold: 3
1889
successThreshold: 1
1890
## Configure extra options for startup probe
1891
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1892
## @param metrics.startupProbe.enabled Enable startupProbe
1893
## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1894
## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1895
## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1896
## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1897
## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1898
##
1899
startupProbe:
1900
enabled: false
1901
initialDelaySeconds: 0
1902
periodSeconds: 5
1903
timeoutSeconds: 2
1904
failureThreshold: 15
1905
successThreshold: 1
1906
## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1907
##
1908
customLivenessProbe: {}
1909
## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1910
##
1911
customReadinessProbe: {}
1912
## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1913
##
1914
customStartupProbe: {}
1915
## @param metrics.containerPorts.metrics Port of the Prometheus metrics container
1916
##
1917
containerPorts:
1918
metrics: 9216
1919
## @param metrics.podAnnotations [object] Metrics exporter pod Annotation
1920
##
1921
podAnnotations:
1922
prometheus.io/scrape: "true"
1923
prometheus.io/port: "{{ .Values.metrics.containerPort }}"
1924
## Prometheus Service Monitor
1925
## ref: https://github.com/coreos/prometheus-operator
1926
## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1927
##
1928
podMonitor:
1929
## @param metrics.podMonitor.enabled Create PodMonitor Resource for scraping metrics using PrometheusOperator
1930
##
1931
enabled: false
1932
## @param metrics.podMonitor.namespace Namespace where podmonitor resource should be created
1933
##
1934
namespace: monitoring
1935
## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
1936
##
1937
interval: 30s
1938
## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1939
## e.g:
1940
## scrapeTimeout: 30s
1941
##
1942
scrapeTimeout: ""
1943
## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitors will be discovered by Prometheus
1944
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
1945
##
1946
additionalLabels: {}
1947

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.