blob: 20534a21d16adcd7260e644b94e33420c049709c [file] [log] [blame]
Giorgi Lekveishvili50db8d52024-10-25 16:32:33 +04001# Copyright Broadcom, Inc. All Rights Reserved.
2# SPDX-License-Identifier: APACHE-2.0
3
4## @section Global parameters
5## Global Docker image parameters
6## Please, note that this will override the image parameters, including dependencies, configured to use the global value
7## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
8##
9
10## @param global.imageRegistry Global Docker image registry
11## @param global.imagePullSecrets Global Docker registry secret names as an array
12## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
13## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
14## @param global.namespaceOverride Override the namespace for resource deployed by the chart, but can itself be overridden by the local namespaceOverride
15##
16global:
17 imageRegistry: ""
18 ## E.g.
19 ## imagePullSecrets:
20 ## - myRegistryKeySecretName
21 ##
22 imagePullSecrets: []
23 defaultStorageClass: ""
24 storageClass: ""
25 namespaceOverride: ""
26 ## Compatibility adaptations for Kubernetes platforms
27 ##
28 compatibility:
29 ## Compatibility adaptations for Openshift
30 ##
31 openshift:
32 ## @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)
33 ##
34 adaptSecurityContext: auto
35## @section Common parameters
36##
37
38## @param nameOverride String to partially override mongodb.fullname template (will maintain the release name)
39##
40nameOverride: ""
41## @param fullnameOverride String to fully override mongodb.fullname template
42##
43fullnameOverride: ""
44## @param namespaceOverride String to fully override common.names.namespace
45##
46namespaceOverride: ""
47## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
48##
49kubeVersion: ""
50## @param clusterDomain Default Kubernetes cluster domain
51##
52clusterDomain: cluster.local
53## @param extraDeploy Array of extra objects to deploy with the release
54## extraDeploy:
55## This needs to be uncommented and added to 'extraDeploy' in order to use the replicaset 'mongo-labeler' sidecar
56## for dynamically discovering the mongodb primary pod
57## suggestion is to use a hard-coded and predictable TCP port for the primary mongodb pod (here is 30001, choose your own)
58## - apiVersion: v1
59## kind: Service
60## metadata:
61## name: mongodb-primary
62## namespace: the-mongodb-namespace
63## labels:
64## app.kubernetes.io/component: mongodb
65## app.kubernetes.io/instance: mongodb
66## app.kubernetes.io/managed-by: Helm
67## app.kubernetes.io/name: mongodb
68## spec:
69## type: NodePort
70## externalTrafficPolicy: Cluster
71## ports:
72## - name: mongodb
73## port: 30001
74## nodePort: 30001
75## protocol: TCP
76## targetPort: mongodb
77## selector:
78## app.kubernetes.io/component: mongodb
79## app.kubernetes.io/instance: mongodb
80## app.kubernetes.io/name: mongodb
81## primary: "true"
82##
83extraDeploy: []
84## @param commonLabels Add labels to all the deployed resources (sub-charts are not considered). Evaluated as a template
85##
86commonLabels: {}
87## @param commonAnnotations Common annotations to add to all Mongo resources (sub-charts are not considered). Evaluated as a template
88##
89commonAnnotations: {}
90## @param topologyKey Override common lib default topology key. If empty - "kubernetes.io/hostname" is used
91## i.e. topologyKey: topology.kubernetes.io/zone
92##
93topologyKey: ""
94## @param serviceBindings.enabled Create secret for service binding (Experimental)
95## Ref: https://servicebinding.io/service-provider/
96##
97serviceBindings:
98 enabled: false
99## @param enableServiceLinks Whether information about services should be injected into pod's environment variable
100## The environment variables injected by service links are not used, but can lead to slow boot times or slow running of the scripts when there are many services in the current namespace.
101## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
102##
103enableServiceLinks: true
104## Enable diagnostic mode in the deployment
105##
106diagnosticMode:
107 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
108 ##
109 enabled: false
110 ## @param diagnosticMode.command Command to override all containers in the deployment
111 ##
112 command:
113 - sleep
114 ## @param diagnosticMode.args Args to override all containers in the deployment
115 ##
116 args:
117 - infinity
118## @section MongoDB(®) parameters
119##
120
121## Bitnami MongoDB(®) image
122## ref: https://hub.docker.com/r/bitnami/mongodb/tags/
123## @param image.registry [default: REGISTRY_NAME] MongoDB(®) image registry
124## @param image.repository [default: REPOSITORY_NAME/mongodb] MongoDB(®) image registry
125## @skip image.tag MongoDB(®) image tag (immutable tags are recommended)
126## @param image.digest MongoDB(®) image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
127## @param image.pullPolicy MongoDB(®) image pull policy
128## @param image.pullSecrets Specify docker-registry secret names as an array
129## @param image.debug Set to true if you would like to see extra information on logs
130##
131image:
132 registry: docker.io
133 repository: bitnami/mongodb
134 tag: 8.0.1-debian-12-r0
135 digest: ""
136 ## Specify a imagePullPolicy
137 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
138 ##
139 pullPolicy: IfNotPresent
140 ## Optionally specify an array of imagePullSecrets.
141 ## Secrets must be manually created in the namespace.
142 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
143 ## e.g:
144 ## pullSecrets:
145 ## - myRegistryKeySecretName
146 ##
147 pullSecrets: []
148 ## Set to true if you would like to see extra information on logs
149 ##
150 debug: false
151## @param schedulerName Name of the scheduler (other than default) to dispatch pods
152## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
153##
154schedulerName: ""
155## @param architecture MongoDB(®) architecture (`standalone` or `replicaset`)
156##
157architecture: standalone
158## @param useStatefulSet Set to true to use a StatefulSet instead of a Deployment (only when `architecture=standalone`)
159##
160useStatefulSet: false
161## MongoDB(®) Authentication parameters
162##
163auth:
164 ## @param auth.enabled Enable authentication
165 ## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
166 ##
167 enabled: true
168 ## @param auth.rootUser MongoDB(®) root user
169 ##
170 rootUser: root
171 ## @param auth.rootPassword MongoDB(®) root password
172 ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#setting-the-root-user-and-password-on-first-run
173 ##
174 rootPassword: ""
175 ## MongoDB(®) custom users and databases
176 ## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#creating-a-user-and-database-on-first-run
177 ## @param auth.usernames List of custom users to be created during the initialization
178 ## @param auth.passwords List of passwords for the custom users set at `auth.usernames`
179 ## @param auth.databases List of custom databases to be created during the initialization
180 ##
181 usernames: []
182 passwords: []
183 databases: []
184 ## @param auth.username DEPRECATED: use `auth.usernames` instead
185 ## @param auth.password DEPRECATED: use `auth.passwords` instead
186 ## @param auth.database DEPRECATED: use `auth.databases` instead
187 ##
188 username: ""
189 password: ""
190 database: ""
191 ## @param auth.replicaSetKey Key used for authentication in the replicaset (only when `architecture=replicaset`)
192 ##
193 replicaSetKey: ""
194 ## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`)
195 ## NOTE: When it's set the previous parameters are ignored.
196 ##
197 existingSecret: ""
198tls:
199 ## @param tls.enabled Enable MongoDB(®) TLS support between nodes in the cluster as well as between mongo clients and nodes
200 ##
201 enabled: false
202 mTLS:
203 ## @param tls.mTLS.enabled IF TLS support is enabled, require clients to provide certificates
204 enabled: true
205 ## @param tls.autoGenerated Generate a custom CA and self-signed certificates
206 ##
207 autoGenerated: true
208 ## @param tls.existingSecret Existing secret with TLS certificates (keys: `mongodb-ca-cert`, `mongodb-ca-key`)
209 ## NOTE: When it's set it will disable secret creation.
210 ##
211 existingSecret: ""
212 ## Add Custom CA certificate
213 ## @param tls.caCert Custom CA certificated (base64 encoded)
214 ## @param tls.caKey CA certificate private key (base64 encoded)
215 ##
216 caCert: ""
217 caKey: ""
218 ## @param tls.pemChainIncluded Flag to denote that the Certificate Authority (CA) certificates are bundled with the endpoint cert.
219 ## Certificates must be in proper order, where the top certificate is the leaf and the bottom certificate is the top-most intermediate CA.
220 ##
221 pemChainIncluded: false
222 standalone:
223 ## @param tls.standalone.existingSecret Existing secret with TLS certificates (`tls.key`, `tls.crt`, `ca.crt`) or (`tls.key`, `tls.crt`) with tls.pemChainIncluded set as enabled.
224 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
225 ##
226 existingSecret: ""
227 replicaset:
228 ## @param tls.replicaset.existingSecrets Array of existing secrets with TLS certificates (`tls.key`, `tls.crt`, `ca.crt`) or (`tls.key`, `tls.crt`) with tls.pemChainIncluded set as enabled.
229 ## existingSecrets:
230 ## - "mySecret-0"
231 ## - "mySecret-1"
232 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
233 ##
234 existingSecrets: []
235 hidden:
236 ## @param tls.hidden.existingSecrets Array of existing secrets with TLS certificates (`tls.key`, `tls.crt`, `ca.crt`) or (`tls.key`, `tls.crt`) with tls.pemChainIncluded set as enabled.
237 ## existingSecrets:
238 ## - "mySecret-0"
239 ## - "mySecret-1"
240 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
241 ##
242 existingSecrets: []
243 arbiter:
244 ## @param tls.arbiter.existingSecret Existing secret with TLS certificates (`tls.key`, `tls.crt`, `ca.crt`) or (`tls.key`, `tls.crt`) with tls.pemChainIncluded set as enabled.
245 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
246 ##
247 existingSecret: ""
248 ## Bitnami Nginx image
249 ## @param tls.image.registry [default: REGISTRY_NAME] Init container TLS certs setup image registry
250 ## @param tls.image.repository [default: REPOSITORY_NAME/nginx] Init container TLS certs setup image repository
251 ## @skip tls.image.tag Init container TLS certs setup image tag (immutable tags are recommended)
252 ## @param tls.image.digest Init container TLS certs setup image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
253 ## @param tls.image.pullPolicy Init container TLS certs setup image pull policy
254 ## @param tls.image.pullSecrets Init container TLS certs specify docker-registry secret names as an array
255 ## @param tls.extraDnsNames Add extra dns names to the CA, can solve x509 auth issue for pod clients
256 ##
257 image:
258 registry: docker.io
259 repository: bitnami/nginx
260 tag: 1.27.2-debian-12-r0
261 digest: ""
262 pullPolicy: IfNotPresent
263 ## Optionally specify an array of imagePullSecrets.
264 ## Secrets must be manually created in the namespace.
265 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
266 ## e.g:
267 ## pullSecrets:
268 ## - myRegistryKeySecretName
269 ##
270 pullSecrets: []
271 ## e.g:
272 ## extraDnsNames
273 ## "DNS.6": "$my_host"
274 ## "DNS.7": "$test"
275 ##
276 extraDnsNames: []
277 ## @param tls.mode Allows to set the tls mode which should be used when tls is enabled (options: `allowTLS`, `preferTLS`, `requireTLS`)
278 ##
279 mode: requireTLS
280 ## Init Container resource requests and limits
281 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
282 ## We usually recommend not to specify default resources and to leave this as a conscious
283 ## choice for the user. This also increases chances charts run on environments with little
284 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
285 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
286 ## @param tls.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if tls.resources is set (tls.resources is recommended for production).
287 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
288 ##
289 resourcesPreset: "nano"
290 ## @param tls.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
291 ## Example:
292 ## resources:
293 ## requests:
294 ## cpu: 2
295 ## memory: 512Mi
296 ## limits:
297 ## cpu: 3
298 ## memory: 1024Mi
299 ##
300 resources: {}
301 ## Init Container securityContext
302 ## ref: https://kubernetes.io/docs/concepts/security/pod-security-policy/
303 ## @param tls.securityContext Init container generate-tls-cert Security context
304 ##
305 securityContext: {}
306 ## Example:
307 ## allowPrivilegeEscalation: false
308 ## capabilities:
309 ## drop: ["ALL"]
310 ##
311## @param automountServiceAccountToken Mount Service Account token in pod
312##
313automountServiceAccountToken: false
314## @param hostAliases Add deployment host aliases
315## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
316##
317hostAliases: []
318## @param replicaSetName Name of the replica set (only when `architecture=replicaset`)
319## Ignored when mongodb.architecture=standalone
320##
321replicaSetName: rs0
322## @param replicaSetHostnames Enable DNS hostnames in the replicaset config (only when `architecture=replicaset`)
323## Ignored when mongodb.architecture=standalone
324## Ignored when externalAccess.enabled=true
325##
326replicaSetHostnames: true
327## @param enableIPv6 Switch to enable/disable IPv6 on MongoDB(®)
328## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#enablingdisabling-ipv6
329##
330enableIPv6: false
331## @param directoryPerDB Switch to enable/disable DirectoryPerDB on MongoDB(®)
332## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#enablingdisabling-directoryperdb
333##
334directoryPerDB: false
335## MongoDB(®) System Log configuration
336## ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#configuring-system-log-verbosity-level
337## @param systemLogVerbosity MongoDB(®) system log verbosity level
338## @param disableSystemLog Switch to enable/disable MongoDB(®) system log
339##
340systemLogVerbosity: 0
341disableSystemLog: false
342## @param disableJavascript Switch to enable/disable MongoDB(®) server-side JavaScript execution
343## ref: https://docs.mongodb.com/manual/core/server-side-javascript/
344##
345disableJavascript: false
346## @param enableJournal Switch to enable/disable MongoDB(®) Journaling
347## ref: https://docs.mongodb.com/manual/reference/configuration-options/#mongodb-setting-storage.journal.enabled
348##
349enableJournal: true
350## @param configuration MongoDB(®) configuration file to be used for Primary and Secondary nodes
351## For documentation of all options, see: http://docs.mongodb.org/manual/reference/configuration-options/
352## Example:
353## configuration: |-
354## # where and how to store data.
355## storage:
356## dbPath: /bitnami/mongodb/data/db
357## journal:
358## enabled: true
359## directoryPerDB: false
360## # where to write logging data
361## systemLog:
362## destination: file
363## quiet: false
364## logAppend: true
365## logRotate: reopen
366## path: /opt/bitnami/mongodb/logs/mongodb.log
367## verbosity: 0
368## # network interfaces
369## net:
370## port: 27017
371## unixDomainSocket:
372## enabled: true
373## pathPrefix: /opt/bitnami/mongodb/tmp
374## ipv6: false
375## bindIpAll: true
376## # replica set options
377## #replication:
378## #replSetName: replicaset
379## #enableMajorityReadConcern: true
380## # process management options
381## processManagement:
382## fork: false
383## pidFilePath: /opt/bitnami/mongodb/tmp/mongodb.pid
384## # set parameter options
385## setParameter:
386## enableLocalhostAuthBypass: true
387## # security options
388## security:
389## authorization: disabled
390## #keyFile: /opt/bitnami/mongodb/conf/keyfile
391##
392configuration: ""
393## @section replicaSetConfigurationSettings settings applied during runtime (not via configuration file)
394## If enabled, these are applied by a script which is called within setup.sh
395## for documentation see https://docs.mongodb.com/manual/reference/replica-configuration/#replica-set-configuration-fields
396## @param replicaSetConfigurationSettings.enabled Enable MongoDB(®) Switch to enable/disable configuring MongoDB(®) run time rs.conf settings
397## @param replicaSetConfigurationSettings.configuration run-time rs.conf settings
398##
399replicaSetConfigurationSettings:
400 enabled: false
401 configuration: {}
402## Custom configurations for individual replica set members.
403## Use the prefix 'members[X].' to apply settings to the member X of the replica set.
404## Example: 'members[0].priority: 3' sets the priority of the first replica set member to 3.
405## The index X in 'members[X]' corresponds to the member's position in the replica set.
406## members[0].priority: 3
407## chainingAllowed : false
408## heartbeatTimeoutSecs : 10
409## heartbeatIntervalMillis : 2000
410## electionTimeoutMillis : 10000
411## catchUpTimeoutMillis : 30000
412## @param existingConfigmap Name of existing ConfigMap with MongoDB(®) configuration for Primary and Secondary nodes
413## NOTE: When it's set the arbiter.configuration parameter is ignored
414##
415existingConfigmap: ""
416## @param initdbScripts Dictionary of initdb scripts
417## Specify dictionary of scripts to be run at first boot
418## Example:
419## initdbScripts:
420## my_init_script.sh: |
421## #!/bin/bash
422## echo "Do something."
423##
424initdbScripts: {}
425## @param initdbScriptsConfigMap Existing ConfigMap with custom initdb scripts
426##
427initdbScriptsConfigMap: ""
428## Command and args for running the container (set to default if not set). Use array form
429## @param command Override default container command (useful when using custom images)
430## @param args Override default container args (useful when using custom images)
431##
432command: []
433args: []
434## @param extraFlags MongoDB(®) additional command line flags
435## Example:
436## extraFlags:
437## - "--wiredTigerCacheSizeGB=2"
438##
439extraFlags: []
440## @param extraEnvVars Extra environment variables to add to MongoDB(®) pods
441## E.g:
442## extraEnvVars:
443## - name: FOO
444## value: BAR
445##
446extraEnvVars: []
447## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
448##
449extraEnvVarsCM: ""
450## @param extraEnvVarsSecret Name of existing Secret containing extra env vars (in case of sensitive data)
451##
452extraEnvVarsSecret: ""
453## @section MongoDB(®) statefulset parameters
454##
455
456## @param annotations Additional labels to be added to the MongoDB(®) statefulset. Evaluated as a template
457##
458annotations: {}
459## @param labels Annotations to be added to the MongoDB(®) statefulset. Evaluated as a template
460##
461labels: {}
462## @param replicaCount Number of MongoDB(®) nodes
463## When `mongodb.architecture=replicaset`, the number of replicas is taken in account
464## When `mongodb.architecture=standalone`, the number of replicas can only be 0 or 1 (value higher then 1 will not be taken in account)
465##
466replicaCount: 2
467## @param updateStrategy.type Strategy to use to replace existing MongoDB(®) pods. When architecture=standalone and useStatefulSet=false,
468## this parameter will be applied on a deployment object. In other case it will be applied on a statefulset object
469## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
470## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
471## Example:
472## updateStrategy:
473## type: RollingUpdate
474## rollingUpdate:
475## maxSurge: 25%
476## maxUnavailable: 25%
477##
478updateStrategy:
479 type: RollingUpdate
480## @param podManagementPolicy Pod management policy for MongoDB(®)
481## Should be initialized one by one when building the replicaset for the first time
482##
483podManagementPolicy: OrderedReady
484## @param podAffinityPreset MongoDB(®) Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
485## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
486##
487podAffinityPreset: ""
488## @param podAntiAffinityPreset MongoDB(®) Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
489## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
490##
491podAntiAffinityPreset: soft
492## Node affinity preset
493## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
494##
495nodeAffinityPreset:
496 ## @param nodeAffinityPreset.type MongoDB(®) Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
497 ##
498 type: ""
499 ## @param nodeAffinityPreset.key MongoDB(®) Node label key to match Ignored if `affinity` is set.
500 ## E.g.
501 ## key: "kubernetes.io/e2e-az-name"
502 ##
503 key: ""
504 ## @param nodeAffinityPreset.values MongoDB(®) Node label values to match. Ignored if `affinity` is set.
505 ## E.g.
506 ## values:
507 ## - e2e-az1
508 ## - e2e-az2
509 ##
510 values: []
511## @param affinity MongoDB(®) Affinity for pod assignment
512## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
513## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
514##
515affinity: {}
516## @param nodeSelector MongoDB(®) Node labels for pod assignment
517## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
518##
519nodeSelector: {}
520## @param tolerations MongoDB(®) Tolerations for pod assignment
521## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
522##
523tolerations: []
524## @param topologySpreadConstraints MongoDB(®) Spread Constraints for Pods
525## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
526##
527topologySpreadConstraints: []
528## @param lifecycleHooks LifecycleHook for the MongoDB(®) container(s) to automate configuration before or after startup
529##
530lifecycleHooks: {}
531## @param terminationGracePeriodSeconds MongoDB(®) Termination Grace Period
532##
533terminationGracePeriodSeconds: ""
534## @param podLabels MongoDB(®) pod labels
535## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
536##
537podLabels: {}
538## @param podAnnotations MongoDB(®) Pod annotations
539## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
540##
541podAnnotations: {}
542## @param priorityClassName Name of the existing priority class to be used by MongoDB(®) pod(s)
543## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
544##
545priorityClassName: ""
546## @param runtimeClassName Name of the runtime class to be used by MongoDB(®) pod(s)
547## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
548##
549runtimeClassName: ""
550## MongoDB(®) pods' Security Context.
551## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
552## @param podSecurityContext.enabled Enable MongoDB(®) pod(s)' Security Context
553## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
554## @param podSecurityContext.supplementalGroups Set filesystem extra groups
555## @param podSecurityContext.fsGroup Group ID for the volumes of the MongoDB(®) pod(s)
556## @param podSecurityContext.sysctls sysctl settings of the MongoDB(®) pod(s)'
557##
558podSecurityContext:
559 enabled: true
560 fsGroupChangePolicy: Always
561 supplementalGroups: []
562 fsGroup: 1001
563 ## sysctl settings
564 ## Example:
565 ## sysctls:
566 ## - name: net.core.somaxconn
567 ## value: "10000"
568 ##
569 sysctls: []
570## MongoDB(®) containers' Security Context (main and metrics container).
571## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
572## @param containerSecurityContext.enabled Enabled containers' Security Context
573## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
574## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
575## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
576## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
577## @param containerSecurityContext.privileged Set container's Security Context privileged
578## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
579## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
580## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
581## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
582##
583containerSecurityContext:
584 enabled: true
585 seLinuxOptions: {}
586 runAsUser: 1001
587 runAsGroup: 1001
588 runAsNonRoot: true
589 privileged: false
590 readOnlyRootFilesystem: true
591 allowPrivilegeEscalation: false
592 capabilities:
593 drop: ["ALL"]
594 seccompProfile:
595 type: "RuntimeDefault"
596## MongoDB(®) containers' resource requests and limits.
597## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
598## We usually recommend not to specify default resources and to leave this as a conscious
599## choice for the user. This also increases chances charts run on environments with little
600## resources, such as Minikube. If you do want to specify resources, uncomment the following
601## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
602## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
603## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
604##
605resourcesPreset: "small"
606## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
607## Example:
608## resources:
609## requests:
610## cpu: 2
611## memory: 512Mi
612## limits:
613## cpu: 3
614## memory: 1024Mi
615##
616resources: {}
617## @param containerPorts.mongodb MongoDB(®) container port
618##
619containerPorts:
620 mongodb: 27017
621## MongoDB(®) pods' liveness probe. Evaluated as a template.
622## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
623## @param livenessProbe.enabled Enable livenessProbe
624## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
625## @param livenessProbe.periodSeconds Period seconds for livenessProbe
626## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
627## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
628## @param livenessProbe.successThreshold Success threshold for livenessProbe
629##
630livenessProbe:
631 enabled: true
632 initialDelaySeconds: 30
633 periodSeconds: 20
634 timeoutSeconds: 10
635 failureThreshold: 6
636 successThreshold: 1
637## MongoDB(®) pods' readiness probe. Evaluated as a template.
638## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
639## @param readinessProbe.enabled Enable readinessProbe
640## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
641## @param readinessProbe.periodSeconds Period seconds for readinessProbe
642## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
643## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
644## @param readinessProbe.successThreshold Success threshold for readinessProbe
645##
646readinessProbe:
647 enabled: true
648 initialDelaySeconds: 5
649 periodSeconds: 10
650 timeoutSeconds: 5
651 failureThreshold: 6
652 successThreshold: 1
653## Slow starting containers can be protected through startup probes
654## Startup probes are available in Kubernetes version 1.16 and above
655## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
656## @param startupProbe.enabled Enable startupProbe
657## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
658## @param startupProbe.periodSeconds Period seconds for startupProbe
659## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
660## @param startupProbe.failureThreshold Failure threshold for startupProbe
661## @param startupProbe.successThreshold Success threshold for startupProbe
662##
663startupProbe:
664 enabled: false
665 initialDelaySeconds: 5
666 periodSeconds: 20
667 timeoutSeconds: 10
668 successThreshold: 1
669 failureThreshold: 30
670## @param customLivenessProbe Override default liveness probe for MongoDB(®) containers
671## Ignored when livenessProbe.enabled=true
672##
673customLivenessProbe: {}
674## @param customReadinessProbe Override default readiness probe for MongoDB(®) containers
675## Ignored when readinessProbe.enabled=true
676##
677customReadinessProbe: {}
678## @param customStartupProbe Override default startup probe for MongoDB(®) containers
679## Ignored when startupProbe.enabled=true
680##
681customStartupProbe: {}
682## @param initContainers Add additional init containers for the hidden node pod(s)
683## Example:
684## initContainers:
685## - name: your-image-name
686## image: your-image
687## imagePullPolicy: Always
688## ports:
689## - name: portname
690## containerPort: 1234
691##
692initContainers: []
693## @param sidecars Add additional sidecar containers for the MongoDB(®) pod(s)
694## Example:
695## sidecars:
696## - name: your-image-name
697## image: your-image
698## imagePullPolicy: Always
699## ports:
700## - name: portname
701## containerPort: 1234
702## This is an optional 'mongo-labeler' sidecar container that tracks replica-set for the primary mongodb pod
703## and labels it dynamically with ' primary: "true" ' in order for an extra-deployed service to always expose
704## and attach to the primary pod, this needs to be uncommented along with the suggested 'extraDeploy' example
705## and the suggested rbac example for the pod to be allowed adding labels to mongo replica pods
706## search 'mongo-labeler' through this file to find the sections that needs to be uncommented to make it work
707##
708## - name: mongo-labeler
709## image: korenlev/k8s-mongo-labeler-sidecar
710## imagePullPolicy: Always
711## env:
712## - name: LABEL_SELECTOR
713## value: "app.kubernetes.io/component=mongodb,app.kubernetes.io/instance=mongodb,app.kubernetes.io/name=mongodb"
714## - name: NAMESPACE
715## value: "the-mongodb-namespace"
716## - name: DEBUG
717## value: "true"
718##
719sidecars: []
720## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MongoDB(®) container(s)
721## Examples:
722## extraVolumeMounts:
723## - name: extras
724## mountPath: /usr/share/extras
725## readOnly: true
726##
727extraVolumeMounts: []
728## @param extraVolumes Optionally specify extra list of additional volumes to the MongoDB(®) statefulset
729## extraVolumes:
730## - name: extras
731## emptyDir: {}
732##
733extraVolumes: []
734## MongoDB(®) Pod Disruption Budget configuration
735## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
736##
737pdb:
738 ## @param pdb.create Enable/disable a Pod Disruption Budget creation for MongoDB(®) pod(s)
739 ##
740 create: true
741 ## @param pdb.minAvailable Minimum number/percentage of MongoDB(®) pods that must still be available after the eviction
742 ##
743 minAvailable: ""
744 ## @param pdb.maxUnavailable Maximum number/percentage of MongoDB(®) pods that may be made unavailable after the eviction. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
745 ##
746 maxUnavailable: ""
747## @section Traffic exposure parameters
748##
749
750## Service parameters
751##
752service:
753 ## @param service.nameOverride MongoDB(®) service name
754 ##
755 nameOverride: ""
756 ## @param service.type Kubernetes Service type (only for standalone architecture)
757 ##
758 type: ClusterIP
759 ## @param service.portName MongoDB(®) service port name (only for standalone architecture)
760 ##
761 portName: mongodb
762 ## @param service.ports.mongodb MongoDB(®) service port.
763 ##
764 ports:
765 mongodb: 27017
766 ## @param service.nodePorts.mongodb Port to bind to for NodePort and LoadBalancer service types (only for standalone architecture)
767 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
768 ##
769 nodePorts:
770 mongodb: ""
771 ## @param service.clusterIP MongoDB(®) service cluster IP (only for standalone architecture)
772 ## e.g:
773 ## clusterIP: None
774 ##
775 clusterIP: ""
776 ## @param service.externalIPs Specify the externalIP value ClusterIP service type (only for standalone architecture)
777 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
778 ##
779 externalIPs: []
780 ## @param service.loadBalancerIP loadBalancerIP for MongoDB(®) Service (only for standalone architecture)
781 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
782 ##
783 loadBalancerIP: ""
784 ## @param service.loadBalancerClass loadBalancerClass for MongoDB(®) Service (only for standalone architecture)
785 # ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
786 loadBalancerClass: ""
787 ## @param service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer (only for standalone architecture)
788 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
789 ##
790 loadBalancerSourceRanges: []
791 ## @param service.allocateLoadBalancerNodePorts Wheter to allocate node ports when service type is LoadBalancer
792 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
793 ##
794 allocateLoadBalancerNodePorts: true
795 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
796 ##
797 extraPorts: []
798 ## @param service.annotations Provide any additional annotations that may be required
799 ##
800 annotations: {}
801 ## @param service.externalTrafficPolicy service external traffic policy (only for standalone architecture)
802 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
803 ##
804 externalTrafficPolicy: Local
805 ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
806 ## Values: ClientIP or None
807 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
808 ##
809 sessionAffinity: None
810 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
811 ## sessionAffinityConfig:
812 ## clientIP:
813 ## timeoutSeconds: 300
814 ##
815 sessionAffinityConfig: {}
816 ## Headless service properties
817 ##
818 headless:
819 ## @param service.headless.annotations Annotations for the headless service.
820 ##
821 annotations: {}
822## External Access to MongoDB(®) nodes configuration
823##
824externalAccess:
825 ## @param externalAccess.enabled Enable Kubernetes external cluster access to MongoDB(®) nodes (only for replicaset architecture)
826 ##
827 enabled: false
828 ## External IPs auto-discovery configuration
829 ## An init container is used to auto-detect LB IPs or node ports by querying the K8s API
830 ## Note: RBAC might be required
831 ##
832 autoDiscovery:
833 ## @param externalAccess.autoDiscovery.enabled Enable using an init container to auto-detect external IPs by querying the K8s API
834 ##
835 enabled: false
836 ## Bitnami Kubectl image
837 ## ref: https://hub.docker.com/r/bitnami/kubectl/tags/
838 ## @param externalAccess.autoDiscovery.image.registry [default: REGISTRY_NAME] Init container auto-discovery image registry
839 ## @param externalAccess.autoDiscovery.image.repository [default: REPOSITORY_NAME/kubectl] Init container auto-discovery image repository
840 ## @skip externalAccess.autoDiscovery.image.tag Init container auto-discovery image tag (immutable tags are recommended)
841 ## @param externalAccess.autoDiscovery.image.digest Init container auto-discovery image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
842 ## @param externalAccess.autoDiscovery.image.pullPolicy Init container auto-discovery image pull policy
843 ## @param externalAccess.autoDiscovery.image.pullSecrets Init container auto-discovery image pull secrets
844 ##
845 image:
846 registry: docker.io
847 repository: bitnami/kubectl
848 tag: 1.31.1-debian-12-r3
849 digest: ""
850 ## Specify a imagePullPolicy
851 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
852 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
853 ##
854 pullPolicy: IfNotPresent
855 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
856 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
857 ## Example:
858 ## pullSecrets:
859 ## - myRegistryKeySecretName
860 ##
861 pullSecrets: []
862 ## Init Container resource requests and limits
863 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
864 ## We usually recommend not to specify default resources and to leave this as a conscious
865 ## choice for the user. This also increases chances charts run on environments with little
866 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
867 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
868 ## @param externalAccess.autoDiscovery.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if externalAccess.autoDiscovery.resources is set (externalAccess.autoDiscovery.resources is recommended for production).
869 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
870 ##
871 resourcesPreset: "nano"
872 ## @param externalAccess.autoDiscovery.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
873 ## Example:
874 ## resources:
875 ## requests:
876 ## cpu: 2
877 ## memory: 512Mi
878 ## limits:
879 ## cpu: 3
880 ## memory: 1024Mi
881 ##
882 resources: {}
883 ## Init container what mission is ensure public names can be resolved.
884 ##
885 dnsCheck:
886 ## Bitnami os-shell image
887 ## ref: https://hub.docker.com/r/bitnami/os-shell/tags/
888 ## @param externalAccess.dnsCheck.image.registry [default: REGISTRY_NAME] Init container dns-check image registry
889 ## @param externalAccess.dnsCheck.image.repository [default: REPOSITORY_NAME/kubectl] Init container dns-check image repository
890 ## @skip externalAccess.dnsCheck.image.tag Init container dns-check image tag (immutable tags are recommended)
891 ## @param externalAccess.dnsCheck.image.digest Init container dns-check image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
892 ## @param externalAccess.dnsCheck.image.pullPolicy Init container dns-check image pull policy
893 ## @param externalAccess.dnsCheck.image.pullSecrets Init container dns-check image pull secrets
894 ##
895 image:
896 registry: docker.io
897 repository: bitnami/os-shell
898 tag: 12-debian-12-r31
899 digest: ""
900 ## Specify a imagePullPolicy
901 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
902 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
903 ##
904 pullPolicy: IfNotPresent
905 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
906 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
907 ## Example:
908 ## pullSecrets:
909 ## - myRegistryKeySecretName
910 ##
911 pullSecrets: []
912 ## Init Container resource requests and limits
913 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
914 ## We usually recommend not to specify default resources and to leave this as a conscious
915 ## choice for the user. This also increases chances charts run on environments with little
916 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
917 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
918 ## @param externalAccess.dnsCheck.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if externalAccess.autoDiscovery.resources is set (externalAccess.autoDiscovery.resources is recommended for production).
919 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
920 ##
921 resourcesPreset: "nano"
922 ## @param externalAccess.dnsCheck.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
923 ## Example:
924 ## resources:
925 ## requests:
926 ## cpu: 2
927 ## memory: 512Mi
928 ## limits:
929 ## cpu: 3
930 ## memory: 1024Mi
931 ##
932 resources: {}
933 ## Parameters to configure a set of Pods that connect to an existing MongoDB(®) deployment that lies outside of Kubernetes.
934 ## @param externalAccess.externalMaster.enabled Use external master for bootstrapping
935 ## @param externalAccess.externalMaster.host External master host to bootstrap from
936 ## @param externalAccess.externalMaster.port Port for MongoDB(®) service external master host
937 ##
938 externalMaster:
939 enabled: false
940 host: ""
941 port: 27017
942 ## Parameters to configure K8s service(s) used to externally access MongoDB(®)
943 ## A new service per broker will be created
944 ##
945 service:
946 ## @param externalAccess.service.type Kubernetes Service type for external access. Allowed values: NodePort, LoadBalancer or ClusterIP
947 ##
948 type: LoadBalancer
949 ## @param externalAccess.service.portName MongoDB(®) port name used for external access when service type is LoadBalancer
950 ##
951 portName: "mongodb"
952 ## @param externalAccess.service.ports.mongodb MongoDB(®) port used for external access when service type is LoadBalancer
953 ##
954 ports:
955 mongodb: 27017
956 ## @param externalAccess.service.loadBalancerIPs Array of load balancer IPs for MongoDB(®) nodes
957 ## Example:
958 ## loadBalancerIPs:
959 ## - X.X.X.X
960 ## - Y.Y.Y.Y
961 ##
962 loadBalancerIPs: []
963 ## @param externalAccess.service.publicNames Array of public names. The size should be equal to the number of replicas.
964 ##
965 publicNames: []
966 ## @param externalAccess.service.loadBalancerClass loadBalancerClass when service type is LoadBalancer
967 # ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
968 loadBalancerClass: ""
969 ## @param externalAccess.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
970 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
971 ## Example:
972 ## loadBalancerSourceRanges:
973 ## - 10.10.10.0/24
974 ##
975 loadBalancerSourceRanges: []
976 ## @param externalAccess.service.allocateLoadBalancerNodePorts Whether to allocate node ports when service type is LoadBalancer
977 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
978 ##
979 allocateLoadBalancerNodePorts: true
980 ## @param externalAccess.service.externalTrafficPolicy MongoDB(®) service external traffic policy
981 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
982 ##
983 externalTrafficPolicy: Local
984 ## @param externalAccess.service.nodePorts Array of node ports used to configure MongoDB(®) advertised hostname when service type is NodePort
985 ## Example:
986 ## nodePorts:
987 ## - 30001
988 ## - 30002
989 ##
990 nodePorts: []
991 ## @param externalAccess.service.domain Domain or external IP used to configure MongoDB(®) advertised hostname when service type is NodePort
992 ## If not specified, the container will try to get the kubernetes node external IP
993 ## e.g:
994 ## domain: mydomain.com
995 ##
996 domain: ""
997 ## @param externalAccess.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
998 ##
999 extraPorts: []
1000 ## @param externalAccess.service.annotations Service annotations for external access. These annotations are common for all services created.
1001 ##
1002 annotations: {}
1003 ## @param externalAccess.service.annotationsList Service annotations for eache external service. This value contains a list allowing different annotations per each external service.
1004 ## Eg:
1005 ## annotationsList:
1006 ## - external-dns.alpha.kubernetes.io/hostname: mongodb-0.example.com
1007 ## - external-dns.alpha.kubernetes.io/hostname: mongodb-1.example.com
1008 ##
1009 annotationsList: []
1010 ## @param externalAccess.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1011 ## Values: ClientIP or None
1012 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1013 ##
1014 sessionAffinity: None
1015 ## @param externalAccess.service.sessionAffinityConfig Additional settings for the sessionAffinity
1016 ## sessionAffinityConfig:
1017 ## clientIP:
1018 ## timeoutSeconds: 300
1019 ##
1020 sessionAffinityConfig: {}
1021 ## External Access to MongoDB(®) Hidden nodes configuration
1022 ##
1023 hidden:
1024 ## @param externalAccess.hidden.enabled Enable Kubernetes external cluster access to MongoDB(®) hidden nodes
1025 ##
1026 enabled: false
1027 ## Parameters to configure K8s service(s) used to externally access MongoDB(®)
1028 ## A new service per broker will be created
1029 ##
1030 service:
1031 ## @param externalAccess.hidden.service.type Kubernetes Service type for external access. Allowed values: NodePort or LoadBalancer
1032 ##
1033 type: LoadBalancer
1034 ## @param externalAccess.hidden.service.portName MongoDB(®) port name used for external access when service type is LoadBalancer
1035 ##
1036 portName: "mongodb"
1037 ## @param externalAccess.hidden.service.ports.mongodb MongoDB(®) port used for external access when service type is LoadBalancer
1038 ##
1039 ports:
1040 mongodb: 27017
1041 ## @param externalAccess.hidden.service.loadBalancerIPs Array of load balancer IPs for MongoDB(®) nodes
1042 ## Example:
1043 ## loadBalancerIPs:
1044 ## - X.X.X.X
1045 ## - Y.Y.Y.Y
1046 ##
1047 loadBalancerIPs: []
1048 ## @param externalAccess.hidden.service.loadBalancerClass loadBalancerClass when service type is LoadBalancer
1049 # ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1050 loadBalancerClass: ""
1051 ## @param externalAccess.hidden.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
1052 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1053 ## Example:
1054 ## loadBalancerSourceRanges:
1055 ## - 10.10.10.0/24
1056 ##
1057 loadBalancerSourceRanges: []
1058 ## @param externalAccess.hidden.service.allocateLoadBalancerNodePorts Wheter to allocate node ports when service type is LoadBalancer
1059 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
1060 ##
1061 allocateLoadBalancerNodePorts: true
1062 ## @param externalAccess.hidden.service.externalTrafficPolicy MongoDB(®) service external traffic policy
1063 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1064 ##
1065 externalTrafficPolicy: Local
1066 ## @param externalAccess.hidden.service.nodePorts Array of node ports used to configure MongoDB(®) advertised hostname when service type is NodePort. Length must be the same as replicaCount
1067 ## Example:
1068 ## nodePorts:
1069 ## - 30001
1070 ## - 30002
1071 ##
1072 nodePorts: []
1073 ## @param externalAccess.hidden.service.domain Domain or external IP used to configure MongoDB(®) advertised hostname when service type is NodePort
1074 ## If not specified, the container will try to get the kubernetes node external IP
1075 ## e.g:
1076 ## domain: mydomain.com
1077 ##
1078 domain: ""
1079 ## @param externalAccess.hidden.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1080 ##
1081 extraPorts: []
1082 ## @param externalAccess.hidden.service.annotations Service annotations for external access
1083 ##
1084 annotations: {}
1085 ## @param externalAccess.hidden.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1086 ## Values: ClientIP or None
1087 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1088 ##
1089 sessionAffinity: None
1090 ## @param externalAccess.hidden.service.sessionAffinityConfig Additional settings for the sessionAffinity
1091 ## sessionAffinityConfig:
1092 ## clientIP:
1093 ## timeoutSeconds: 300
1094 ##
1095 sessionAffinityConfig: {}
1096## @section Network policy parameters
1097##
1098
1099## Network Policies
1100## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1101##
1102networkPolicy:
1103 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1104 ##
1105 enabled: true
1106 ## @param networkPolicy.allowExternal Don't require server label for connections
1107 ## The Policy model to apply. When set to false, only pods with the correct
1108 ## server label will have network access to the ports server is listening
1109 ## on. When true, server will accept connections from any source
1110 ## (with the correct destination port).
1111 ##
1112 allowExternal: true
1113 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1114 ##
1115 allowExternalEgress: true
1116 ## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
1117 ##
1118 addExternalClientAccess: true
1119 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1120 ## e.g:
1121 ## extraIngress:
1122 ## - ports:
1123 ## - port: 1234
1124 ## from:
1125 ## - podSelector:
1126 ## - matchLabels:
1127 ## - role: frontend
1128 ## - podSelector:
1129 ## - matchExpressions:
1130 ## - key: role
1131 ## operator: In
1132 ## values:
1133 ## - frontend
1134 extraIngress: []
1135 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1136 ## e.g:
1137 ## extraEgress:
1138 ## - ports:
1139 ## - port: 1234
1140 ## to:
1141 ## - podSelector:
1142 ## - matchLabels:
1143 ## - role: frontend
1144 ## - podSelector:
1145 ## - matchExpressions:
1146 ## - key: role
1147 ## operator: In
1148 ## values:
1149 ## - frontend
1150 ##
1151 extraEgress: []
1152 ## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
1153 ## e.g:
1154 ## ingressPodMatchLabels:
1155 ## my-client: "true"
1156 #
1157 ingressPodMatchLabels: {}
1158 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1159 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1160 ##
1161 ingressNSMatchLabels: {}
1162 ingressNSPodMatchLabels: {}
1163persistence:
1164 ## @param persistence.enabled Enable MongoDB(®) data persistence using PVC
1165 ##
1166 enabled: true
1167 ## @param persistence.name Name of the PVC and mounted volume
1168 ##
1169 name: "datadir"
1170 ## @param persistence.medium Provide a medium for `emptyDir` volumes.
1171 ## Requires persistence.enabled: false
1172 ##
1173 medium: ""
1174 ## @param persistence.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
1175 ## Requires persistence.enabled: true
1176 ## If defined, PVC must be created manually before volume will be bound
1177 ## Ignored when mongodb.architecture=replicaset
1178 ##
1179 existingClaim: ""
1180 ## @param persistence.resourcePolicy Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted
1181 ##
1182 resourcePolicy: ""
1183 ## @param persistence.storageClass PVC Storage Class for MongoDB(®) data volume
1184 ## If defined, storageClassName: <storageClass>
1185 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1186 ## If undefined (the default) or set to null, no storageClassName spec is
1187 ## set, choosing the default provisioner.
1188 ##
1189 storageClass: ""
1190 ## @param persistence.accessModes PV Access Mode
1191 ##
1192 accessModes:
1193 - ReadWriteOnce
1194 ## @param persistence.size PVC Storage Request for MongoDB(&reg;) data volume
1195 ##
1196 size: 8Gi
1197 ## @param persistence.annotations PVC annotations
1198 ##
1199 annotations: {}
1200 ## @param persistence.labels PVC labels
1201 ##
1202 labels: {}
1203 ## @param persistence.mountPath Path to mount the volume at
1204 ## MongoDB(&reg;) images.
1205 ##
1206 mountPath: /bitnami/mongodb
1207 ## @param persistence.subPath Subdirectory of the volume to mount at
1208 ## and one PV for multiple services.
1209 ##
1210 subPath: ""
1211 ## Fine tuning for volumeClaimTemplates
1212 ##
1213 volumeClaimTemplates:
1214 ## @param persistence.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
1215 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1216 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
1217 ##
1218 selector: {}
1219 ## @param persistence.volumeClaimTemplates.requests Custom PVC requests attributes
1220 ## Sometime cloud providers use additional requests attributes to provision custom storage instance
1221 ## See https://cloud.ibm.com/docs/containers?topic=containers-file_storage#file_dynamic_statefulset
1222 ##
1223 requests: {}
1224 ## @param persistence.volumeClaimTemplates.dataSource Add dataSource to the VolumeClaimTemplate
1225 ##
1226 dataSource: {}
1227## Persistent Volume Claim Retention Policy
1228## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1229##
1230persistentVolumeClaimRetentionPolicy:
1231 ## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for MongoDB(&reg;) Statefulset
1232 ##
1233 enabled: false
1234 ## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1235 ##
1236 whenScaled: Retain
1237 ## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1238 ##
1239 whenDeleted: Retain
1240## @section Backup parameters
1241## This section implements a trivial logical dump cronjob of the database.
1242## This only comes with the consistency guarantees of the dump program.
1243## This is not a snapshot based roll forward/backward recovery backup.
1244## ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
1245##
1246backup:
1247 ## @param backup.enabled Enable the logical dump of the database "regularly"
1248 ##
1249 enabled: false
1250 ## Fine tuning cronjob's config
1251 ##
1252 cronjob:
1253 ## @param backup.cronjob.schedule Set the cronjob parameter schedule
1254 ##
1255 schedule: "@daily"
1256 ## @param backup.cronjob.concurrencyPolicy Set the cronjob parameter concurrencyPolicy
1257 ##
1258 concurrencyPolicy: Allow
1259 ## @param backup.cronjob.failedJobsHistoryLimit Set the cronjob parameter failedJobsHistoryLimit
1260 ##
1261 failedJobsHistoryLimit: 1
1262 ## @param backup.cronjob.successfulJobsHistoryLimit Set the cronjob parameter successfulJobsHistoryLimit
1263 ##
1264 successfulJobsHistoryLimit: 3
1265 ## @param backup.cronjob.startingDeadlineSeconds Set the cronjob parameter startingDeadlineSeconds
1266 ##
1267 startingDeadlineSeconds: ""
1268 ## @param backup.cronjob.ttlSecondsAfterFinished Set the cronjob parameter ttlSecondsAfterFinished
1269 ##
1270 ttlSecondsAfterFinished: ""
1271 ## @param backup.cronjob.restartPolicy Set the cronjob parameter restartPolicy
1272 ##
1273 restartPolicy: OnFailure
1274 ## @param backup.cronjob.backoffLimit Set the cronjob parameter backoffLimit
1275 backoffLimit: 6
1276 ## backup container's Security Context
1277 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1278 ## @param backup.cronjob.containerSecurityContext.enabled Enabled containers' Security Context
1279 ## @param backup.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1280 ## @param backup.cronjob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1281 ## @param backup.cronjob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1282 ## @param backup.cronjob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1283 ## @param backup.cronjob.containerSecurityContext.privileged Set container's Security Context privileged
1284 ## @param backup.cronjob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1285 ## @param backup.cronjob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1286 ## @param backup.cronjob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1287 ## @param backup.cronjob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1288 ##
1289 containerSecurityContext:
1290 enabled: true
1291 seLinuxOptions: {}
1292 runAsUser: 1001
1293 runAsGroup: 1001
1294 runAsNonRoot: true
1295 privileged: false
1296 readOnlyRootFilesystem: true
1297 allowPrivilegeEscalation: false
1298 capabilities:
1299 drop: ["ALL"]
1300 seccompProfile:
1301 type: "RuntimeDefault"
1302 ## backup container's resource requests and limits.
1303 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1304 ## We usually recommend not to specify default resources and to leave this as a conscious
1305 ## choice for the user. This also increases chances charts run on environments with little
1306 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1307 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1308 ## @param backup.cronjob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
1309 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
1310 ##
1311 resourcesPreset: "none"
1312 ## @param backup.cronjob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1313 ## Example:
1314 ## resources:
1315 ## requests:
1316 ## cpu: 2
1317 ## memory: 512Mi
1318 ## limits:
1319 ## cpu: 3
1320 ## memory: 1024Mi
1321 ##
1322 resources: {}
1323 ## @param backup.cronjob.command Set backup container's command to run
1324 ##
1325 command: []
1326 ## @param backup.cronjob.labels Set the cronjob labels
1327 ##
1328 labels: {}
1329 ## @param backup.cronjob.annotations Set the cronjob annotations
1330 ##
1331 annotations: {}
1332 ## Backup container's
1333 ##
1334 storage:
1335 ## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
1336 ## If defined, PVC must be created manually before volume will be bound
1337 ##
1338 existingClaim: ""
1339 ## @param backup.cronjob.storage.resourcePolicy Setting it to "keep" to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted
1340 ##
1341 resourcePolicy: ""
1342 ## @param backup.cronjob.storage.storageClass PVC Storage Class for the backup data volume
1343 ## If defined, storageClassName: <storageClass>
1344 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1345 ## If undefined (the default) or set to null, no storageClassName spec is
1346 ## set, choosing the default provisioner.
1347 ##
1348 storageClass: ""
1349 ## @param backup.cronjob.storage.accessModes PV Access Mode
1350 ##
1351 accessModes:
1352 - ReadWriteOnce
1353 ## @param backup.cronjob.storage.size PVC Storage Request for the backup data volume
1354 ##
1355 size: 8Gi
1356 ## @param backup.cronjob.storage.annotations PVC annotations
1357 ##
1358 annotations: {}
1359 ## @param backup.cronjob.storage.mountPath Path to mount the volume at
1360 ##
1361 mountPath: /backup/mongodb
1362 ## @param backup.cronjob.storage.subPath Subdirectory of the volume to mount at
1363 ## and one PV for multiple services.
1364 ##
1365 subPath: ""
1366 ## Fine tuning for volumeClaimTemplates
1367 ##
1368 volumeClaimTemplates:
1369 ## @param backup.cronjob.storage.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
1370 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1371 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
1372 ##
1373 selector: {}
1374## @section RBAC parameters
1375##
1376
1377## ServiceAccount
1378## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1379##
1380serviceAccount:
1381 ## @param serviceAccount.create Enable creation of ServiceAccount for MongoDB(&reg;) pods
1382 ##
1383 create: true
1384 ## @param serviceAccount.name Name of the created serviceAccount
1385 ## If not set and create is true, a name is generated using the mongodb.fullname template
1386 ##
1387 name: ""
1388 ## @param serviceAccount.annotations Additional Service Account annotations
1389 ##
1390 annotations: {}
1391 ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
1392 ## Can be set to false if pods using this serviceAccount do not need to use K8s API
1393 ##
1394 automountServiceAccountToken: false
1395## Role Based Access
1396## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1397##
1398rbac:
1399 ## @param rbac.create Whether to create & use RBAC resources or not
1400 ## binding MongoDB(&reg;) ServiceAccount to a role
1401 ## that allows MongoDB(&reg;) pods querying the K8s API
1402 ## this needs to be set to 'true' to enable the mongo-labeler sidecar primary mongodb discovery
1403 ##
1404 create: false
1405 ## @param rbac.rules Custom rules to create following the role specification
1406 ## The example below needs to be uncommented to use the 'mongo-labeler' sidecar for dynamic discovery of the primary mongodb pod:
1407 ## rules:
1408 ## - apiGroups:
1409 ## - ""
1410 ## resources:
1411 ## - pods
1412 ## verbs:
1413 ## - get
1414 ## - list
1415 ## - watch
1416 ## - update
1417 ##
1418 rules: []
1419## PodSecurityPolicy configuration
1420## Be sure to also set rbac.create to true, otherwise Role and RoleBinding won't be created.
1421## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1422##
1423podSecurityPolicy:
1424 ## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1425 ##
1426 create: false
1427 ## @param podSecurityPolicy.allowPrivilegeEscalation Enable privilege escalation
1428 ## Either use predefined policy with some adjustments or use `podSecurityPolicy.spec`
1429 ##
1430 allowPrivilegeEscalation: false
1431 ## @param podSecurityPolicy.privileged Allow privileged
1432 ##
1433 privileged: false
1434 ## @param podSecurityPolicy.spec Specify the full spec to use for Pod Security Policy
1435 ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1436 ## Defining a spec ignores the above values.
1437 ##
1438 spec: {}
1439 ## Example:
1440 ## allowPrivilegeEscalation: false
1441 ## fsGroup:
1442 ## rule: 'MustRunAs'
1443 ## ranges:
1444 ## - min: 1001
1445 ## max: 1001
1446 ## hostIPC: false
1447 ## hostNetwork: false
1448 ## hostPID: false
1449 ## privileged: false
1450 ## readOnlyRootFilesystem: true
1451 ## requiredDropCapabilities:
1452 ## - ALL
1453 ## runAsUser:
1454 ## rule: 'MustRunAs'
1455 ## ranges:
1456 ## - min: 1001
1457 ## max: 1001
1458 ## seLinux:
1459 ## rule: 'RunAsAny'
1460 ## supplementalGroups:
1461 ## rule: 'MustRunAs'
1462 ## ranges:
1463 ## - min: 1001
1464 ## max: 1001
1465 ## volumes:
1466 ## - 'configMap'
1467 ## - 'secret'
1468 ## - 'emptyDir'
1469 ## - 'persistentVolumeClaim'
1470 ##
1471## @section Volume Permissions parameters
1472##
1473## Init Container parameters
1474## Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each component
1475## values from the securityContext section of the component
1476##
1477volumePermissions:
1478 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
1479 ##
1480 enabled: false
1481 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1482 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1483 ## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1484 ## @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
1485 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1486 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1487 ##
1488 image:
1489 registry: docker.io
1490 repository: bitnami/os-shell
1491 tag: 12-debian-12-r31
1492 digest: ""
1493 ## Specify a imagePullPolicy
1494 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
1495 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1496 ##
1497 pullPolicy: IfNotPresent
1498 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1499 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1500 ## Example:
1501 ## pullSecrets:
1502 ## - myRegistryKeySecretName
1503 ##
1504 pullSecrets: []
1505 ## Init Container resource requests and limits
1506 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1507 ## We usually recommend not to specify default resources and to leave this as a conscious
1508 ## choice for the user. This also increases chances charts run on environments with little
1509 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1510 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1511 ## @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).
1512 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
1513 ##
1514 resourcesPreset: "nano"
1515 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1516 ## Example:
1517 ## resources:
1518 ## requests:
1519 ## cpu: 2
1520 ## memory: 512Mi
1521 ## limits:
1522 ## cpu: 3
1523 ## memory: 1024Mi
1524 ##
1525 resources: {}
1526 ## Init container Security Context
1527 ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
1528 ## and not the below volumePermissions.securityContext.runAsUser
1529 ## When runAsUser is set to special value "auto", init container will try to chwon the
1530 ## data folder to autodetermined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
1531 ## "auto" is especially useful for OpenShift which has scc with dynamic userids (and 0 is not allowed).
1532 ## You may want to use this volumePermissions.securityContext.runAsUser="auto" in combination with
1533 ## podSecurityContext.enabled=false,containerSecurityContext.enabled=false and shmVolume.chmod.enabled=false
1534 ## @param volumePermissions.securityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1535 ## @param volumePermissions.securityContext.runAsUser User ID for the volumePermissions container
1536 ##
1537 securityContext:
1538 seLinuxOptions: {}
1539 runAsUser: 0
1540## @section Arbiter parameters
1541##
1542arbiter:
1543 ## @param arbiter.enabled Enable deploying the arbiter
1544 ## https://docs.mongodb.com/manual/tutorial/add-replica-set-arbiter/
1545 ##
1546 enabled: true
1547 ## @param arbiter.automountServiceAccountToken Mount Service Account token in pod
1548 ##
1549 automountServiceAccountToken: false
1550 ## @param arbiter.hostAliases Add deployment host aliases
1551 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1552 ##
1553 hostAliases: []
1554 ## @param arbiter.configuration Arbiter configuration file to be used
1555 ## http://docs.mongodb.org/manual/reference/configuration-options/
1556 ##
1557 configuration: ""
1558 ## @param arbiter.existingConfigmap Name of existing ConfigMap with Arbiter configuration
1559 ## NOTE: When it's set the arbiter.configuration parameter is ignored
1560 ##
1561 existingConfigmap: ""
1562 ## Command and args for running the container (set to default if not set). Use array form
1563 ## @param arbiter.command Override default container command (useful when using custom images)
1564 ## @param arbiter.args Override default container args (useful when using custom images)
1565 ##
1566 command: []
1567 args: []
1568 ## @param arbiter.extraFlags Arbiter additional command line flags
1569 ## Example:
1570 ## extraFlags:
1571 ## - "--wiredTigerCacheSizeGB=2"
1572 ##
1573 extraFlags: []
1574 ## @param arbiter.extraEnvVars Extra environment variables to add to Arbiter pods
1575 ## E.g:
1576 ## extraEnvVars:
1577 ## - name: FOO
1578 ## value: BAR
1579 ##
1580 extraEnvVars: []
1581 ## @param arbiter.extraEnvVarsCM Name of existing ConfigMap containing extra env vars
1582 ##
1583 extraEnvVarsCM: ""
1584 ## @param arbiter.extraEnvVarsSecret Name of existing Secret containing extra env vars (in case of sensitive data)
1585 ##
1586 extraEnvVarsSecret: ""
1587 ## @param arbiter.annotations Additional labels to be added to the Arbiter statefulset
1588 ##
1589 annotations: {}
1590 ## @param arbiter.labels Annotations to be added to the Arbiter statefulset
1591 ##
1592 labels: {}
1593 ## @param arbiter.topologySpreadConstraints MongoDB(&reg;) Spread Constraints for arbiter Pods
1594 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
1595 ##
1596 topologySpreadConstraints: []
1597 ## @param arbiter.lifecycleHooks LifecycleHook for the Arbiter container to automate configuration before or after startup
1598 ##
1599 lifecycleHooks: {}
1600 ## @param arbiter.terminationGracePeriodSeconds Arbiter Termination Grace Period
1601 ##
1602 terminationGracePeriodSeconds: ""
1603 ## @param arbiter.updateStrategy.type Strategy that will be employed to update Pods in the StatefulSet
1604 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1605 ## updateStrategy:
1606 ## type: RollingUpdate
1607 ## rollingUpdate:
1608 ## maxSurge: 25%
1609 ## maxUnavailable: 25%
1610 ##
1611 updateStrategy:
1612 type: RollingUpdate
1613 ## @param arbiter.podManagementPolicy Pod management policy for MongoDB(&reg;)
1614 ## Should be initialized one by one when building the replicaset for the first time
1615 ##
1616 podManagementPolicy: OrderedReady
1617 ## @param arbiter.schedulerName Name of the scheduler (other than default) to dispatch pods
1618 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1619 ##
1620 schedulerName: ""
1621 ## @param arbiter.podAffinityPreset Arbiter Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1622 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1623 ##
1624 podAffinityPreset: ""
1625 ## @param arbiter.podAntiAffinityPreset Arbiter Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1626 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1627 ##
1628 podAntiAffinityPreset: soft
1629 ## Node affinity preset
1630 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1631 ##
1632 nodeAffinityPreset:
1633 ## @param arbiter.nodeAffinityPreset.type Arbiter Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1634 ##
1635 type: ""
1636 ## @param arbiter.nodeAffinityPreset.key Arbiter Node label key to match Ignored if `affinity` is set.
1637 ## E.g.
1638 ## key: "kubernetes.io/e2e-az-name"
1639 ##
1640 key: ""
1641 ## @param arbiter.nodeAffinityPreset.values Arbiter Node label values to match. Ignored if `affinity` is set.
1642 ## E.g.
1643 ## values:
1644 ## - e2e-az1
1645 ## - e2e-az2
1646 ##
1647 values: []
1648 ## @param arbiter.affinity Arbiter Affinity for pod assignment
1649 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1650 ## Note: arbiter.podAffinityPreset, arbiter.podAntiAffinityPreset, and arbiter.nodeAffinityPreset will be ignored when it's set
1651 ##
1652 affinity: {}
1653 ## @param arbiter.nodeSelector Arbiter Node labels for pod assignment
1654 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1655 ##
1656 nodeSelector: {}
1657 ## @param arbiter.tolerations Arbiter Tolerations for pod assignment
1658 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1659 ##
1660 tolerations: []
1661 ## @param arbiter.podLabels Arbiter pod labels
1662 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1663 ##
1664 podLabels: {}
1665 ## @param arbiter.podAnnotations Arbiter Pod annotations
1666 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1667 ##
1668 podAnnotations: {}
1669 ## @param arbiter.priorityClassName Name of the existing priority class to be used by Arbiter pod(s)
1670 ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1671 ##
1672 priorityClassName: ""
1673 ## @param arbiter.runtimeClassName Name of the runtime class to be used by Arbiter pod(s)
1674 ## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
1675 ##
1676 runtimeClassName: ""
1677 ## MongoDB(&reg;) Arbiter pods' Security Context.
1678 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1679 ## @param arbiter.podSecurityContext.enabled Enable Arbiter pod(s)' Security Context
1680 ## @param arbiter.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1681 ## @param arbiter.podSecurityContext.supplementalGroups Set filesystem extra groups
1682 ## @param arbiter.podSecurityContext.fsGroup Group ID for the volumes of the Arbiter pod(s)
1683 ## @param arbiter.podSecurityContext.sysctls sysctl settings of the Arbiter pod(s)'
1684 ##
1685 podSecurityContext:
1686 enabled: true
1687 fsGroupChangePolicy: Always
1688 supplementalGroups: []
1689 fsGroup: 1001
1690 ## sysctl settings
1691 ## Example:
1692 ## sysctls:
1693 ## - name: net.core.somaxconn
1694 ## value: "10000"
1695 ##
1696 sysctls: []
1697 ## MongoDB(&reg;) Arbiter containers' Security Context (only main container).
1698 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1699 ## @param arbiter.containerSecurityContext.enabled Enabled containers' Security Context
1700 ## @param arbiter.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1701 ## @param arbiter.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1702 ## @param arbiter.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1703 ## @param arbiter.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1704 ## @param arbiter.containerSecurityContext.privileged Set container's Security Context privileged
1705 ## @param arbiter.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1706 ## @param arbiter.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1707 ## @param arbiter.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1708 ## @param arbiter.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1709 ##
1710 containerSecurityContext:
1711 enabled: true
1712 seLinuxOptions: {}
1713 runAsUser: 1001
1714 runAsGroup: 1001
1715 runAsNonRoot: true
1716 privileged: false
1717 readOnlyRootFilesystem: true
1718 allowPrivilegeEscalation: false
1719 capabilities:
1720 drop: ["ALL"]
1721 seccompProfile:
1722 type: "RuntimeDefault"
1723 ## MongoDB(&reg;) Arbiter containers' resource requests and limits.
1724 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1725 ## We usually recommend not to specify default resources and to leave this as a conscious
1726 ## choice for the user. This also increases chances charts run on environments with little
1727 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1728 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1729 ## @param arbiter.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if arbiter.resources is set (arbiter.resources is recommended for production).
1730 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
1731 ##
1732 resourcesPreset: "small"
1733 ## @param arbiter.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1734 ## Example:
1735 ## resources:
1736 ## requests:
1737 ## cpu: 2
1738 ## memory: 512Mi
1739 ## limits:
1740 ## cpu: 3
1741 ## memory: 1024Mi
1742 ##
1743 resources: {}
1744 ## @param arbiter.containerPorts.mongodb MongoDB(&reg;) arbiter container port
1745 ##
1746 containerPorts:
1747 mongodb: 27017
1748 ## MongoDB(&reg;) Arbiter pods' liveness probe. Evaluated as a template.
1749 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1750 ## @param arbiter.livenessProbe.enabled Enable livenessProbe
1751 ## @param arbiter.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1752 ## @param arbiter.livenessProbe.periodSeconds Period seconds for livenessProbe
1753 ## @param arbiter.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1754 ## @param arbiter.livenessProbe.failureThreshold Failure threshold for livenessProbe
1755 ## @param arbiter.livenessProbe.successThreshold Success threshold for livenessProbe
1756 ##
1757 livenessProbe:
1758 enabled: true
1759 initialDelaySeconds: 30
1760 periodSeconds: 20
1761 timeoutSeconds: 10
1762 failureThreshold: 6
1763 successThreshold: 1
1764 ## MongoDB(&reg;) Arbiter pods' readiness probe. Evaluated as a template.
1765 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1766 ## @param arbiter.readinessProbe.enabled Enable readinessProbe
1767 ## @param arbiter.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1768 ## @param arbiter.readinessProbe.periodSeconds Period seconds for readinessProbe
1769 ## @param arbiter.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1770 ## @param arbiter.readinessProbe.failureThreshold Failure threshold for readinessProbe
1771 ## @param arbiter.readinessProbe.successThreshold Success threshold for readinessProbe
1772 ##
1773 readinessProbe:
1774 enabled: true
1775 initialDelaySeconds: 5
1776 periodSeconds: 20
1777 timeoutSeconds: 10
1778 failureThreshold: 6
1779 successThreshold: 1
1780 ## MongoDB(&reg;) Arbiter pods' startup probe. Evaluated as a template.
1781 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1782 ## @param arbiter.startupProbe.enabled Enable startupProbe
1783 ## @param arbiter.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1784 ## @param arbiter.startupProbe.periodSeconds Period seconds for startupProbe
1785 ## @param arbiter.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1786 ## @param arbiter.startupProbe.failureThreshold Failure threshold for startupProbe
1787 ## @param arbiter.startupProbe.successThreshold Success threshold for startupProbe
1788 ##
1789 startupProbe:
1790 enabled: false
1791 initialDelaySeconds: 5
1792 periodSeconds: 10
1793 timeoutSeconds: 5
1794 successThreshold: 1
1795 failureThreshold: 30
1796 ## @param arbiter.customLivenessProbe Override default liveness probe for Arbiter containers
1797 ## Ignored when arbiter.livenessProbe.enabled=true
1798 ##
1799 customLivenessProbe: {}
1800 ## @param arbiter.customReadinessProbe Override default readiness probe for Arbiter containers
1801 ## Ignored when arbiter.readinessProbe.enabled=true
1802 ##
1803 customReadinessProbe: {}
1804 ## @param arbiter.customStartupProbe Override default startup probe for Arbiter containers
1805 ## Ignored when arbiter.startupProbe.enabled=true
1806 ##
1807 customStartupProbe: {}
1808 ## @param arbiter.initContainers Add additional init containers for the Arbiter pod(s)
1809 ## Example:
1810 ## initContainers:
1811 ## - name: your-image-name
1812 ## image: your-image
1813 ## imagePullPolicy: Always
1814 ## ports:
1815 ## - name: portname
1816 ## containerPort: 1234
1817 ##
1818 initContainers: []
1819 ## @param arbiter.sidecars Add additional sidecar containers for the Arbiter pod(s)
1820 ## Example:
1821 ## sidecars:
1822 ## - name: your-image-name
1823 ## image: your-image
1824 ## imagePullPolicy: Always
1825 ## ports:
1826 ## - name: portname
1827 ## containerPort: 1234
1828 ##
1829 sidecars: []
1830 ## @param arbiter.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Arbiter container(s)
1831 ## Examples:
1832 ## extraVolumeMounts:
1833 ## - name: extras
1834 ## mountPath: /usr/share/extras
1835 ## readOnly: true
1836 ##
1837 extraVolumeMounts: []
1838 ## @param arbiter.extraVolumes Optionally specify extra list of additional volumes to the Arbiter statefulset
1839 ## extraVolumes:
1840 ## - name: extras
1841 ## emptyDir: {}
1842 ##
1843 extraVolumes: []
1844 ## MongoDB(&reg;) Arbiter Pod Disruption Budget configuration
1845 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1846 ##
1847 pdb:
1848 ## @param arbiter.pdb.create Enable/disable a Pod Disruption Budget creation for Arbiter pod(s)
1849 ##
1850 create: true
1851 ## @param arbiter.pdb.minAvailable Minimum number/percentage of Arbiter pods that should remain scheduled
1852 ##
1853 minAvailable: ""
1854 ## @param arbiter.pdb.maxUnavailable Maximum number/percentage of Arbiter pods that may be made unavailable. Defaults to `1` if both `arbiter.pdb.minAvailable` and `arbiter.pdb.maxUnavailable` are empty.
1855 ##
1856 maxUnavailable: ""
1857 ## MongoDB(&reg;) Arbiter service parameters
1858 ##
1859 service:
1860 ## @param arbiter.service.nameOverride The arbiter service name
1861 ##
1862 nameOverride: ""
1863 ## @param arbiter.service.ports.mongodb MongoDB(&reg;) service port
1864 ##
1865 ports:
1866 mongodb: 27017
1867 ## @param arbiter.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1868 ##
1869 extraPorts: []
1870 ## @param arbiter.service.annotations Provide any additional annotations that may be required
1871 ##
1872 annotations: {}
1873 ## Headless service properties
1874 ##
1875 headless:
1876 ## @param arbiter.service.headless.annotations Annotations for the headless service.
1877 ##
1878 annotations: {}
1879## @section Hidden Node parameters
1880##
1881hidden:
1882 ## @param hidden.enabled Enable deploying the hidden nodes
1883 ## https://docs.mongodb.com/manual/tutorial/configure-a-hidden-replica-set-member/
1884 ##
1885 enabled: false
1886 ## @param hidden.automountServiceAccountToken Mount Service Account token in pod
1887 ##
1888 automountServiceAccountToken: false
1889 ## @param hidden.hostAliases Add deployment host aliases
1890 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1891 ##
1892 hostAliases: []
1893 ## @param hidden.configuration Hidden node configuration file to be used
1894 ## http://docs.mongodb.org/manual/reference/configuration-options/
1895 ##
1896 configuration: ""
1897 ## @param hidden.existingConfigmap Name of existing ConfigMap with Hidden node configuration
1898 ## NOTE: When it's set the hidden.configuration parameter is ignored
1899 ##
1900 existingConfigmap: ""
1901 ## Command and args for running the container (set to default if not set). Use array form
1902 ## @param hidden.command Override default container command (useful when using custom images)
1903 ## @param hidden.args Override default container args (useful when using custom images)
1904 ##
1905 command: []
1906 args: []
1907 ## @param hidden.extraFlags Hidden node additional command line flags
1908 ## Example:
1909 ## extraFlags:
1910 ## - "--wiredTigerCacheSizeGB=2"
1911 ##
1912 extraFlags: []
1913 ## @param hidden.extraEnvVars Extra environment variables to add to Hidden node pods
1914 ## E.g:
1915 ## extraEnvVars:
1916 ## - name: FOO
1917 ## value: BAR
1918 ##
1919 extraEnvVars: []
1920 ## @param hidden.extraEnvVarsCM Name of existing ConfigMap containing extra env vars
1921 ##
1922 extraEnvVarsCM: ""
1923 ## @param hidden.extraEnvVarsSecret Name of existing Secret containing extra env vars (in case of sensitive data)
1924 ##
1925 extraEnvVarsSecret: ""
1926 ## @param hidden.annotations Additional labels to be added to thehidden node statefulset
1927 ##
1928 annotations: {}
1929 ## @param hidden.labels Annotations to be added to the hidden node statefulset
1930 ##
1931 labels: {}
1932 ## @param hidden.topologySpreadConstraints MongoDB(&reg;) Spread Constraints for hidden Pods
1933 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
1934 ##
1935 topologySpreadConstraints: []
1936 ## @param hidden.lifecycleHooks LifecycleHook for the Hidden container to automate configuration before or after startup
1937 ##
1938 lifecycleHooks: {}
1939 ## @param hidden.replicaCount Number of hidden nodes (only when `architecture=replicaset`)
1940 ## Ignored when mongodb.architecture=standalone
1941 ##
1942 replicaCount: 1
1943 ## @param hidden.terminationGracePeriodSeconds Hidden Termination Grace Period
1944 ##
1945 terminationGracePeriodSeconds: ""
1946 ## @param hidden.updateStrategy.type Strategy that will be employed to update Pods in the StatefulSet
1947 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1948 ## updateStrategy:
1949 ## type: RollingUpdate
1950 ## rollingUpdate:
1951 ## maxSurge: 25%
1952 ## maxUnavailable: 25%
1953 ##
1954 updateStrategy:
1955 type: RollingUpdate
1956 ## @param hidden.podManagementPolicy Pod management policy for hidden node
1957 ##
1958 podManagementPolicy: OrderedReady
1959 ## @param hidden.schedulerName Name of the scheduler (other than default) to dispatch pods
1960 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1961 ##
1962 schedulerName: ""
1963 ## @param hidden.podAffinityPreset Hidden node Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1964 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1965 ##
1966 podAffinityPreset: ""
1967 ## @param hidden.podAntiAffinityPreset Hidden node Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1968 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1969 ##
1970 podAntiAffinityPreset: soft
1971 ## Node affinity preset
1972 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1973 ## Allowed values: soft, hard
1974 ##
1975 nodeAffinityPreset:
1976 ## @param hidden.nodeAffinityPreset.type Hidden Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1977 ##
1978 type: ""
1979 ## @param hidden.nodeAffinityPreset.key Hidden Node label key to match Ignored if `affinity` is set.
1980 ## E.g.
1981 ## key: "kubernetes.io/e2e-az-name"
1982 ##
1983 key: ""
1984 ## @param hidden.nodeAffinityPreset.values Hidden Node label values to match. Ignored if `affinity` is set.
1985 ## E.g.
1986 ## values:
1987 ## - e2e-az1
1988 ## - e2e-az2
1989 ##
1990 values: []
1991 ## @param hidden.affinity Hidden node Affinity for pod assignment
1992 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1993 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
1994 ##
1995 affinity: {}
1996 ## @param hidden.nodeSelector Hidden node Node labels for pod assignment
1997 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1998 ##
1999 nodeSelector: {}
2000 ## @param hidden.tolerations Hidden node Tolerations for pod assignment
2001 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2002 ##
2003 tolerations: []
2004 ## @param hidden.podLabels Hidden node pod labels
2005 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2006 ##
2007 podLabels: {}
2008 ## @param hidden.podAnnotations Hidden node Pod annotations
2009 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
2010 ##
2011 podAnnotations: {}
2012 ## @param hidden.priorityClassName Name of the existing priority class to be used by hidden node pod(s)
2013 ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
2014 ##
2015 priorityClassName: ""
2016 ## @param hidden.runtimeClassName Name of the runtime class to be used by hidden node pod(s)
2017 ## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
2018 ##
2019 runtimeClassName: ""
2020 ## MongoDB(&reg;) Hidden pods' Security Context.
2021 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
2022 ## @param hidden.podSecurityContext.enabled Enable Hidden pod(s)' Security Context
2023 ## @param hidden.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
2024 ## @param hidden.podSecurityContext.supplementalGroups Set filesystem extra groups
2025 ## @param hidden.podSecurityContext.fsGroup Group ID for the volumes of the Hidden pod(s)
2026 ## @param hidden.podSecurityContext.sysctls sysctl settings of the Hidden pod(s)'
2027 ##
2028 podSecurityContext:
2029 enabled: true
2030 fsGroupChangePolicy: Always
2031 supplementalGroups: []
2032 fsGroup: 1001
2033 ## sysctl settings
2034 ## Example:
2035 ## sysctls:
2036 ## - name: net.core.somaxconn
2037 ## value: "10000"
2038 ##
2039 sysctls: []
2040 ## MongoDB(&reg;) Hidden containers' Security Context (only main container).
2041 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2042 ## @param hidden.containerSecurityContext.enabled Enabled containers' Security Context
2043 ## @param hidden.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2044 ## @param hidden.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
2045 ## @param hidden.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
2046 ## @param hidden.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
2047 ## @param hidden.containerSecurityContext.privileged Set container's Security Context privileged
2048 ## @param hidden.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
2049 ## @param hidden.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
2050 ## @param hidden.containerSecurityContext.capabilities.drop List of capabilities to be dropped
2051 ## @param hidden.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
2052 ##
2053 containerSecurityContext:
2054 enabled: true
2055 seLinuxOptions: {}
2056 runAsUser: 1001
2057 runAsGroup: 1001
2058 runAsNonRoot: true
2059 privileged: false
2060 readOnlyRootFilesystem: true
2061 allowPrivilegeEscalation: false
2062 capabilities:
2063 drop: ["ALL"]
2064 seccompProfile:
2065 type: "RuntimeDefault"
2066 ## MongoDB(&reg;) Hidden containers' resource requests and limits.
2067 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2068 ## We usually recommend not to specify default resources and to leave this as a conscious
2069 ## choice for the user. This also increases chances charts run on environments with little
2070 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
2071 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
2072 ## @param hidden.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if hidden.resources is set (hidden.resources is recommended for production).
2073 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
2074 ##
2075 resourcesPreset: "micro"
2076 ## @param hidden.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2077 ## Example:
2078 ## resources:
2079 ## requests:
2080 ## cpu: 2
2081 ## memory: 512Mi
2082 ## limits:
2083 ## cpu: 3
2084 ## memory: 1024Mi
2085 ##
2086 resources: {}
2087 ## @param hidden.containerPorts.mongodb MongoDB(&reg;) hidden container port
2088 ##
2089 containerPorts:
2090 mongodb: 27017
2091 ## MongoDB(&reg;) Hidden pods' liveness probe. Evaluated as a template.
2092 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
2093 ## @param hidden.livenessProbe.enabled Enable livenessProbe
2094 ## @param hidden.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
2095 ## @param hidden.livenessProbe.periodSeconds Period seconds for livenessProbe
2096 ## @param hidden.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
2097 ## @param hidden.livenessProbe.failureThreshold Failure threshold for livenessProbe
2098 ## @param hidden.livenessProbe.successThreshold Success threshold for livenessProbe
2099 ##
2100 livenessProbe:
2101 enabled: true
2102 initialDelaySeconds: 30
2103 periodSeconds: 20
2104 timeoutSeconds: 10
2105 failureThreshold: 6
2106 successThreshold: 1
2107 ## MongoDB(&reg;) Hidden pods' readiness probe. Evaluated as a template.
2108 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
2109 ## @param hidden.readinessProbe.enabled Enable readinessProbe
2110 ## @param hidden.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
2111 ## @param hidden.readinessProbe.periodSeconds Period seconds for readinessProbe
2112 ## @param hidden.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
2113 ## @param hidden.readinessProbe.failureThreshold Failure threshold for readinessProbe
2114 ## @param hidden.readinessProbe.successThreshold Success threshold for readinessProbe
2115 ##
2116 readinessProbe:
2117 enabled: true
2118 initialDelaySeconds: 5
2119 periodSeconds: 20
2120 timeoutSeconds: 10
2121 failureThreshold: 6
2122 successThreshold: 1
2123 ## Slow starting containers can be protected through startup probes
2124 ## Startup probes are available in Kubernetes version 1.16 and above
2125 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
2126 ## @param hidden.startupProbe.enabled Enable startupProbe
2127 ## @param hidden.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
2128 ## @param hidden.startupProbe.periodSeconds Period seconds for startupProbe
2129 ## @param hidden.startupProbe.timeoutSeconds Timeout seconds for startupProbe
2130 ## @param hidden.startupProbe.failureThreshold Failure threshold for startupProbe
2131 ## @param hidden.startupProbe.successThreshold Success threshold for startupProbe
2132 ##
2133 startupProbe:
2134 enabled: false
2135 initialDelaySeconds: 5
2136 periodSeconds: 10
2137 timeoutSeconds: 5
2138 successThreshold: 1
2139 failureThreshold: 30
2140 ## @param hidden.customLivenessProbe Override default liveness probe for hidden node containers
2141 ## Ignored when hidden.livenessProbe.enabled=true
2142 ##
2143 customLivenessProbe: {}
2144 ## @param hidden.customReadinessProbe Override default readiness probe for hidden node containers
2145 ## Ignored when hidden.readinessProbe.enabled=true
2146 ##
2147 customReadinessProbe: {}
2148 ## @param hidden.customStartupProbe Override default startup probe for MongoDB(&reg;) containers
2149 ## Ignored when hidden.startupProbe.enabled=true
2150 ##
2151 customStartupProbe: {}
2152 ## @param hidden.initContainers Add init containers to the MongoDB(&reg;) Hidden pods.
2153 ## Example:
2154 ## initContainers:
2155 ## - name: your-image-name
2156 ## image: your-image
2157 ## imagePullPolicy: Always
2158 ## ports:
2159 ## - name: portname
2160 ## containerPort: 1234
2161 ##
2162 initContainers: []
2163 ## @param hidden.sidecars Add additional sidecar containers for the hidden node pod(s)
2164 ## Example:
2165 ## sidecars:
2166 ## - name: your-image-name
2167 ## image: your-image
2168 ## imagePullPolicy: Always
2169 ## ports:
2170 ## - name: portname
2171 ## containerPort: 1234
2172 ##
2173 sidecars: []
2174 ## @param hidden.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the hidden node container(s)
2175 ## Examples:
2176 ## extraVolumeMounts:
2177 ## - name: extras
2178 ## mountPath: /usr/share/extras
2179 ## readOnly: true
2180 ##
2181 extraVolumeMounts: []
2182 ## @param hidden.extraVolumes Optionally specify extra list of additional volumes to the hidden node statefulset
2183 ## extraVolumes:
2184 ## - name: extras
2185 ## emptyDir: {}
2186 ##
2187 extraVolumes: []
2188 ## MongoDB(&reg;) Hidden Pod Disruption Budget configuration
2189 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
2190 ##
2191 pdb:
2192 ## @param hidden.pdb.create Enable/disable a Pod Disruption Budget creation for hidden node pod(s)
2193 ##
2194 create: true
2195 ## @param hidden.pdb.minAvailable Minimum number/percentage of hidden node pods that should remain scheduled
2196 ##
2197 minAvailable: ""
2198 ## @param hidden.pdb.maxUnavailable Maximum number/percentage of hidden node pods that may be made unavailable. Defaults to `1` if both `hidden.pdb.minAvailable` and `hidden.pdb.maxUnavailable` are empty.
2199 ##
2200 maxUnavailable: ""
2201 ## Enable persistence using Persistent Volume Claims
2202 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
2203 ##
2204 persistence:
2205 ## @param hidden.persistence.enabled Enable hidden node data persistence using PVC
2206 ##
2207 enabled: true
2208 ## @param hidden.persistence.medium Provide a medium for `emptyDir` volumes.
2209 ## Requires hidden.persistence.enabled: false
2210 ##
2211 medium: ""
2212 ## @param hidden.persistence.storageClass PVC Storage Class for hidden node data volume
2213 ## If defined, storageClassName: <storageClass>
2214 ## If set to "-", storageClassName: "", which disables dynamic provisioning
2215 ## If undefined (the default) or set to null, no storageClassName spec is
2216 ## set, choosing the default provisioner.
2217 ##
2218 storageClass: ""
2219 ## @param hidden.persistence.accessModes PV Access Mode
2220 ##
2221 accessModes:
2222 - ReadWriteOnce
2223 ## @param hidden.persistence.size PVC Storage Request for hidden node data volume
2224 ##
2225 size: 8Gi
2226 ## @param hidden.persistence.annotations PVC annotations
2227 ##
2228 annotations: {}
2229 ## @param hidden.persistence.mountPath The path the volume will be mounted at, useful when using different MongoDB(&reg;) images.
2230 ##
2231 mountPath: /bitnami/mongodb
2232 ## @param hidden.persistence.subPath The subdirectory of the volume to mount to, useful in dev environments
2233 ## and one PV for multiple services.
2234 ##
2235 subPath: ""
2236 ## Fine tuning for volumeClaimTemplates
2237 ##
2238 volumeClaimTemplates:
2239 ## @param hidden.persistence.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
2240 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
2241 ##
2242 selector: {}
2243 ## @param hidden.persistence.volumeClaimTemplates.requests Custom PVC requests attributes
2244 ## Sometime cloud providers use additional requests attributes to provision custom storage instance
2245 ## See https://cloud.ibm.com/docs/containers?topic=containers-file_storage#file_dynamic_statefulset
2246 ##
2247 requests: {}
2248 ## @param hidden.persistence.volumeClaimTemplates.dataSource Set volumeClaimTemplate dataSource
2249 ##
2250 dataSource: {}
2251 service:
2252 ## @param hidden.service.portName MongoDB(&reg;) service port name
2253 ##
2254 portName: "mongodb"
2255 ## @param hidden.service.ports.mongodb MongoDB(&reg;) service port
2256 ##
2257 ports:
2258 mongodb: 27017
2259 ## @param hidden.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2260 ##
2261 extraPorts: []
2262 ## @param hidden.service.annotations Provide any additional annotations that may be required
2263 ##
2264 annotations: {}
2265 ## Headless service properties
2266 ##
2267 headless:
2268 ## @param hidden.service.headless.annotations Annotations for the headless service.
2269 ##
2270 annotations: {}
2271## @section Metrics parameters
2272##
2273metrics:
2274 ## @param metrics.enabled Enable using a sidecar Prometheus exporter
2275 ##
2276 enabled: false
2277 ## Bitnami MongoDB(&reg;) Promtheus Exporter image
2278 ## ref: https://hub.docker.com/r/bitnami/mongodb-exporter/tags/
2279 ## @param metrics.image.registry [default: REGISTRY_NAME] MongoDB(&reg;) Prometheus exporter image registry
2280 ## @param metrics.image.repository [default: REPOSITORY_NAME/mongodb-exporter] MongoDB(&reg;) Prometheus exporter image repository
2281 ## @skip metrics.image.tag MongoDB(&reg;) Prometheus exporter image tag (immutable tags are recommended)
2282 ## @param metrics.image.digest MongoDB(&reg;) image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2283 ## @param metrics.image.pullPolicy MongoDB(&reg;) Prometheus exporter image pull policy
2284 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
2285 ##
2286 image:
2287 registry: docker.io
2288 repository: bitnami/mongodb-exporter
2289 tag: 0.41.1-debian-12-r1
2290 digest: ""
2291 pullPolicy: IfNotPresent
2292 ## Optionally specify an array of imagePullSecrets.
2293 ## Secrets must be manually created in the namespace.
2294 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2295 ## e.g:
2296 ## pullSecrets:
2297 ## - myRegistryKeySecretName
2298 ##
2299 pullSecrets: []
2300 ## @param metrics.username String with username for the metrics exporter
2301 ## If undefined the root user will be used for the metrics exporter
2302 ##
2303 username: ""
2304 ## @param metrics.password String with password for the metrics exporter
2305 ## If undefined but metrics.username is defined, a random password will be generated
2306 ##
2307 password: ""
2308 ## @param metrics.compatibleMode Enables old style mongodb-exporter metrics
2309 compatibleMode: true
2310 collector:
2311 ## @param metrics.collector.all Enable all collectors. Same as enabling all individual metrics
2312 ## Enabling all metrics will cause significant CPU load on mongod
2313 all: false
2314 ## @param metrics.collector.diagnosticdata Boolean Enable collecting metrics from getDiagnosticData
2315 diagnosticdata: true
2316 ## @param metrics.collector.replicasetstatus Boolean Enable collecting metrics from replSetGetStatus
2317 replicasetstatus: true
2318 ## @param metrics.collector.dbstats Boolean Enable collecting metrics from dbStats
2319 dbstats: false
2320 ## @param metrics.collector.topmetrics Boolean Enable collecting metrics from top admin command
2321 topmetrics: false
2322 ## @param metrics.collector.indexstats Boolean Enable collecting metrics from $indexStats
2323 indexstats: false
2324 ## @param metrics.collector.collstats Boolean Enable collecting metrics from $collStats
2325 collstats: false
2326 ## @param metrics.collector.collstatsColls List of \<databases\>.\<collections\> to get $collStats
2327 collstatsColls: []
2328 ## @param metrics.collector.indexstatsColls List - List of \<databases\>.\<collections\> to get $indexStats
2329 indexstatsColls: []
2330 ## @param metrics.collector.collstatsLimit Number - Disable collstats, dbstats, topmetrics and indexstats collector if there are more than \<n\> collections. 0=No limit
2331 collstatsLimit: 0
2332 ## @param metrics.extraFlags String with extra flags to the metrics exporter
2333 ## ref: https://github.com/percona/mongodb_exporter/blob/main/main.go
2334 ##
2335 extraFlags: ""
2336 ## Command and args for running the container (set to default if not set). Use array form
2337 ## @param metrics.command Override default container command (useful when using custom images)
2338 ## @param metrics.args Override default container args (useful when using custom images)
2339 ##
2340 command: []
2341 args: []
2342 ## Metrics exporter container resource requests and limits
2343 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2344 ## We usually recommend not to specify default resources and to leave this as a conscious
2345 ## choice for the user. This also increases chances charts run on environments with little
2346 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
2347 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
2348 ## @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).
2349 ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
2350 ##
2351 resourcesPreset: "nano"
2352 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2353 ## Example:
2354 ## resources:
2355 ## requests:
2356 ## cpu: 2
2357 ## memory: 512Mi
2358 ## limits:
2359 ## cpu: 3
2360 ## memory: 1024Mi
2361 ##
2362 resources: {}
2363 ## @param metrics.containerPort Port of the Prometheus metrics container
2364 ##
2365 containerPort: 9216
2366 ## Prometheus Exporter service configuration
2367 ##
2368 service:
2369 ## @param metrics.service.annotations [object] Annotations for Prometheus Exporter pods. Evaluated as a template.
2370 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
2371 ##
2372 annotations:
2373 prometheus.io/scrape: "true"
2374 prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
2375 prometheus.io/path: "/metrics"
2376 ## @param metrics.service.type Type of the Prometheus metrics service
2377 ##
2378 type: ClusterIP
2379 ## @param metrics.service.ports.metrics Port of the Prometheus metrics service
2380 ##
2381 ports:
2382 metrics: 9216
2383 ## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2384 ##
2385 extraPorts: []
2386 ## Metrics exporter liveness probe
2387 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
2388 ## @param metrics.livenessProbe.enabled Enable livenessProbe
2389 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
2390 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
2391 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
2392 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
2393 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
2394 ##
2395 livenessProbe:
2396 enabled: true
2397 initialDelaySeconds: 15
2398 periodSeconds: 5
2399 timeoutSeconds: 10
2400 failureThreshold: 3
2401 successThreshold: 1
2402 ## Metrics exporter readiness probe
2403 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
2404 ## @param metrics.readinessProbe.enabled Enable readinessProbe
2405 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
2406 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
2407 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
2408 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
2409 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
2410 ##
2411 readinessProbe:
2412 enabled: true
2413 initialDelaySeconds: 5
2414 periodSeconds: 5
2415 timeoutSeconds: 10
2416 failureThreshold: 3
2417 successThreshold: 1
2418 ## Slow starting containers can be protected through startup probes
2419 ## Startup probes are available in Kubernetes version 1.16 and above
2420 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
2421 ## @param metrics.startupProbe.enabled Enable startupProbe
2422 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
2423 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
2424 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
2425 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
2426 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
2427 ##
2428 startupProbe:
2429 enabled: false
2430 initialDelaySeconds: 5
2431 periodSeconds: 10
2432 timeoutSeconds: 5
2433 successThreshold: 1
2434 failureThreshold: 30
2435 ## @param metrics.customLivenessProbe Override default liveness probe for MongoDB(&reg;) containers
2436 ## Ignored when livenessProbe.enabled=true
2437 ##
2438 customLivenessProbe: {}
2439 ## @param metrics.customReadinessProbe Override default readiness probe for MongoDB(&reg;) containers
2440 ## Ignored when readinessProbe.enabled=true
2441 ##
2442 customReadinessProbe: {}
2443 ## @param metrics.customStartupProbe Override default startup probe for MongoDB(&reg;) containers
2444 ## Ignored when startupProbe.enabled=true
2445 ##
2446 customStartupProbe: {}
2447 ## @param metrics.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the metrics container(s)
2448 ## Examples:
2449 ## extraVolumeMounts:
2450 ## - name: extras
2451 ## mountPath: /usr/share/extras
2452 ## readOnly: true
2453 ##
2454 extraVolumeMounts: []
2455 ## Prometheus Service Monitor
2456 ## ref: https://github.com/coreos/prometheus-operator
2457 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md
2458 ##
2459 serviceMonitor:
2460 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using Prometheus Operator
2461 ##
2462 enabled: false
2463 ## @param metrics.serviceMonitor.namespace Namespace which Prometheus is running in
2464 ##
2465 namespace: ""
2466 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped
2467 ##
2468 interval: 30s
2469 ## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
2470 ## e.g:
2471 ## scrapeTimeout: 30s
2472 ##
2473 scrapeTimeout: ""
2474 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping.
2475 ##
2476 relabelings: []
2477 ## @param metrics.serviceMonitor.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
2478 ##
2479 metricRelabelings: []
2480 ## @param metrics.serviceMonitor.labels Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with
2481 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
2482 ##
2483 labels: {}
2484 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
2485 ## ref: https://github.com/bitnami/charts/tree/main/bitnami/prometheus-operator#prometheus-configuration
2486 ##
2487 selector: {}
2488 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
2489 ##
2490 honorLabels: false
2491 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
2492 ##
2493 jobLabel: ""
2494 ## Custom PrometheusRule to be defined
2495 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
2496 ##
2497 prometheusRule:
2498 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
2499 ##
2500 enabled: false
2501 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
2502 ##
2503 additionalLabels: {}
2504 ## @param metrics.prometheusRule.namespace Namespace where prometheusRules resource should be created
2505 ##
2506 namespace: ""
2507 ## @param metrics.prometheusRule.rules Rules to be created, check values for an example
2508 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#rulegroup
2509 ## https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
2510 ##
2511 ## This is an example of a rule, you should add the below code block under the "rules" param, removing the brackets
2512 ## rules:
2513 ## - alert: HighRequestLatency
2514 ## expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5
2515 ## for: 10m
2516 ## labels:
2517 ## severity: page
2518 ## annotations:
2519 ## summary: High request latency
2520 ##
2521 rules: []