1# This file has been modified by Chainguard, Inc.
3# Copyright Chainguard, Inc. All Rights Reserved.
4# Chainguard, Inc. modifications are subject to the license
5# available at: https://www.chainguard.dev/legal/software-license-agreement
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
11## Global Docker image parameters
12## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
16## @param global.imageRegistry Global Docker image registry
17## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18## @param global.imagePullSecrets Global Docker registry secret names as an array
19## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
21## @param global.namespaceOverride Override the namespace for resource deployed by the chart, but can itself be overridden by the local namespaceOverride
28 ## - myRegistryKeySecretName
31 defaultStorageClass: ""
33 ## Security parameters
36 ## @param global.security.allowInsecureImages Allows skipping image verification
37 allowInsecureImages: false
39 ## Compatibility adaptations for Kubernetes platforms
42 ## Compatibility adaptations for Openshift
45 ## @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)
47 adaptSecurityContext: auto
49## @section Common parameters
52## @param nameOverride String to partially override mongodb.fullname template (will maintain the release name)
55## @param fullnameOverride String to fully override mongodb.fullname template
58## @param namespaceOverride String to fully override common.names.namespace
61## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
64## @param clusterDomain Default Kubernetes cluster domain
66clusterDomain: cluster.local
67## @param extraDeploy Array of extra objects to deploy with the release
69## This needs to be uncommented and added to 'extraDeploy' in order to use the replicaset 'mongo-labeler' sidecar
70## for dynamically discovering the mongodb primary pod
71## suggestion is to use a hard-coded and predictable TCP port for the primary mongodb pod (here is 30001, choose your own)
75## name: mongodb-primary
76## namespace: the-mongodb-namespace
78## app.kubernetes.io/component: mongodb
79## app.kubernetes.io/instance: mongodb
80## app.kubernetes.io/managed-by: Helm
81## app.kubernetes.io/name: mongodb
84## externalTrafficPolicy: Cluster
92## app.kubernetes.io/component: mongodb
93## app.kubernetes.io/instance: mongodb
94## app.kubernetes.io/name: mongodb
98## @param commonLabels Add labels to all the deployed resources (sub-charts are not considered). Evaluated as a template
101## @param commonAnnotations Common annotations to add to all Mongo resources (sub-charts are not considered). Evaluated as a template
104## @param topologyKey Override common lib default topology key. If empty - "kubernetes.io/hostname" is used
105## i.e. topologyKey: topology.kubernetes.io/zone
108## @param serviceBindings.enabled Create secret for service binding (Experimental)
109## Ref: https://servicebinding.io/service-provider/
113## @param enableServiceLinks Whether information about services should be injected into pod's environment variable
114## 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.
115## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
117enableServiceLinks: true
118## @param usePasswordFiles Mount credentials as files instead of using environment variables
120usePasswordFiles: true
121## Enable diagnostic mode in the deployment
124 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
127 ## @param diagnosticMode.command Command to override all containers in the deployment
131 ## @param diagnosticMode.args Args to override all containers in the deployment
135## @section MongoDB(®) parameters
138## Iamguarded MongoDB(®) image
139## @param image.registry [default: REGISTRY_NAME] MongoDB(®) image registry
140## @param image.repository [default: REPOSITORY_NAME/mongodb] MongoDB(®) image registry
141## @skip image.tag MongoDB(®) image tag (immutable tags are recommended)
142## @param image.digest MongoDB(®) image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
143## @param image.pullPolicy MongoDB(®) image pull policy
144## @param image.pullSecrets Specify docker-registry secret names as an array
145## @param image.debug Set to true if you would like to see extra information on logs
149 repository: chainguard-private/mongodb-iamguarded
152 ## Specify a imagePullPolicy
153 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
155 pullPolicy: IfNotPresent
156 ## Optionally specify an array of imagePullSecrets.
157 ## Secrets must be manually created in the namespace.
158 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
161 ## - myRegistryKeySecretName
164 ## Set to true if you would like to see extra information on logs
167## @param schedulerName Name of the scheduler (other than default) to dispatch pods
168## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
171## @param architecture MongoDB(®) architecture (`standalone` or `replicaset`)
173architecture: standalone
174## @param useStatefulSet Set to true to use a StatefulSet instead of a Deployment (only when `architecture=standalone`)
177## MongoDB(®) Authentication parameters
180 ## @param auth.enabled Enable authentication
181 ## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
184 ## @param auth.rootUser MongoDB(®) root user
187 ## @param auth.rootPassword MongoDB(®) root password
190 ## MongoDB(®) custom users and databases
191 ## @param auth.usernames List of custom users to be created during the initialization
192 ## @param auth.passwords List of passwords for the custom users set at `auth.usernames`
193 ## @param auth.databases List of custom databases to be created during the initialization
198 ## @param auth.username DEPRECATED: use `auth.usernames` instead
199 ## @param auth.password DEPRECATED: use `auth.passwords` instead
200 ## @param auth.database DEPRECATED: use `auth.databases` instead
205 ## @param auth.replicaSetKey Key used for authentication in the replicaset (only when `architecture=replicaset`)
208 ## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`)
209 ## NOTE: When it's set the previous parameters are ignored.
213 ## @param tls.enabled Enable MongoDB(®) TLS support between nodes in the cluster as well as between mongo clients and nodes
217 ## @param tls.mTLS.enabled IF TLS support is enabled, require clients to provide certificates
219 ## @param tls.autoGenerated Generate a custom CA and self-signed certificates
222 ## @param tls.existingSecret Existing secret with TLS certificates (keys: `mongodb-ca-cert`, `mongodb-ca-key`)
223 ## NOTE: When it's set it will disable secret creation.
226 ## Add Custom CA certificate
227 ## @param tls.caCert Custom CA certificated (base64 encoded)
228 ## @param tls.caKey CA certificate private key (base64 encoded)
232 ## @param tls.pemChainIncluded Flag to denote that the Certificate Authority (CA) certificates are bundled with the endpoint cert.
233 ## Certificates must be in proper order, where the top certificate is the leaf and the bottom certificate is the top-most intermediate CA.
235 pemChainIncluded: false
237 ## @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.
238 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
242 ## @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.
246 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
250 ## @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.
254 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
258 ## @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.
259 ## NOTE: When it's set it will disable certificate self-generation from existing CA.
262 ## Iamguarded Nginx image
263 ## @param tls.image.registry [default: REGISTRY_NAME] Init container TLS certs setup image registry
264 ## @param tls.image.repository [default: REPOSITORY_NAME/nginx] Init container TLS certs setup image repository
265 ## @skip tls.image.tag Init container TLS certs setup image tag (immutable tags are recommended)
266 ## @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
267 ## @param tls.image.pullPolicy Init container TLS certs setup image pull policy
268 ## @param tls.image.pullSecrets Init container TLS certs specify docker-registry secret names as an array
269 ## @param tls.extraDnsNames Add extra dns names to the CA, can solve x509 auth issue for pod clients
273 repository: chainguard-private/nginx-iamguarded
276 pullPolicy: IfNotPresent
277 ## Optionally specify an array of imagePullSecrets.
278 ## Secrets must be manually created in the namespace.
279 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
282 ## - myRegistryKeySecretName
287 ## "DNS.6": "$my_host"
291 ## @param tls.mode Allows to set the tls mode which should be used when tls is enabled (options: `allowTLS`, `preferTLS`, `requireTLS`)
294 ## Init Container resource requests and limits
295 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
296 ## We usually recommend not to specify default resources and to leave this as a conscious
297 ## choice for the user. This also increases chances charts run on environments with little
298 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
299 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
300 ## @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).
302 resourcesPreset: "nano"
303 ## @param tls.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
314 ## Init Container securityContext
315 ## ref: https://kubernetes.io/docs/concepts/security/pod-security-policy/
316 ## @param tls.securityContext Init container generate-tls-cert Security context
320 ## allowPrivilegeEscalation: false
324## @param automountServiceAccountToken Mount Service Account token in pod
326automountServiceAccountToken: false
327## @param hostAliases Add deployment host aliases
328## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
331## @param replicaSetName Name of the replica set (only when `architecture=replicaset`)
332## Ignored when mongodb.architecture=standalone
335## @param replicaSetHostnames Enable DNS hostnames in the replicaset config (only when `architecture=replicaset`)
336## Ignored when mongodb.architecture=standalone
337## Ignored when externalAccess.enabled=true
339replicaSetHostnames: true
340## @param enableIPv6 Switch to enable/disable IPv6 on MongoDB(®)
343## @param directoryPerDB Switch to enable/disable DirectoryPerDB on MongoDB(®)
346## MongoDB(®) System Log configuration
347## @param systemLogVerbosity MongoDB(®) system log verbosity level
348## @param disableSystemLog Switch to enable/disable MongoDB(®) system log
351disableSystemLog: false
352## @param disableJavascript Switch to enable/disable MongoDB(®) server-side JavaScript execution
353## ref: https://docs.mongodb.com/manual/core/server-side-javascript/
355disableJavascript: false
356## @param enableJournal Switch to enable/disable MongoDB(®) Journaling
357## ref: https://docs.mongodb.com/manual/reference/configuration-options/#mongodb-setting-storage.journal.enabled
360## @param configuration MongoDB(®) configuration file to be used for Primary and Secondary nodes
361## For documentation of all options, see: http://docs.mongodb.org/manual/reference/configuration-options/
364## # where and how to store data.
366## dbPath: /iamguarded/mongodb/data/db
369## directoryPerDB: false
370## # where to write logging data
376## path: /opt/iamguarded/mongodb/logs/mongodb.log
378## # network interfaces
383## pathPrefix: /opt/iamguarded/mongodb/tmp
386## # replica set options
388## #replSetName: replicaset
389## #enableMajorityReadConcern: true
390## # process management options
393## pidFilePath: /opt/iamguarded/mongodb/tmp/mongodb.pid
394## # set parameter options
396## enableLocalhostAuthBypass: true
399## authorization: disabled
400## #keyFile: /opt/iamguarded/mongodb/conf/keyfile
403## @section replicaSetConfigurationSettings settings applied during runtime (not via configuration file)
404## If enabled, these are applied by a script which is called within setup.sh
405## for documentation see https://docs.mongodb.com/manual/reference/replica-configuration/#replica-set-configuration-fields
406## @param replicaSetConfigurationSettings.enabled Enable MongoDB(®) Switch to enable/disable configuring MongoDB(®) run time rs.conf settings
407## @param replicaSetConfigurationSettings.configuration run-time rs.conf settings
409replicaSetConfigurationSettings:
412## Custom configurations for individual replica set members.
413## Use the prefix 'members[X].' to apply settings to the member X of the replica set.
414## Example: 'members[0].priority: 3' sets the priority of the first replica set member to 3.
415## The index X in 'members[X]' corresponds to the member's position in the replica set.
416## members[0].priority: 3
417## chainingAllowed : false
418## heartbeatTimeoutSecs : 10
419## heartbeatIntervalMillis : 2000
420## electionTimeoutMillis : 10000
421## catchUpTimeoutMillis : 30000
422## @param existingConfigmap Name of existing ConfigMap with MongoDB(®) configuration for Primary and Secondary nodes
423## NOTE: When it's set the arbiter.configuration parameter is ignored
426## @param initdbScripts Dictionary of initdb scripts
427## Specify dictionary of scripts to be run at first boot
430## my_init_script.sh: |
432## echo "Do something."
435## @param initdbScriptsConfigMap Existing ConfigMap with custom initdb scripts
437initdbScriptsConfigMap: ""
438## Command and args for running the container (set to default if not set). Use array form
439## @param command Override default container command (useful when using custom images)
440## @param args Override default container args (useful when using custom images)
444## @param extraFlags MongoDB(®) additional command line flags
447## - "--wiredTigerCacheSizeGB=2"
450## @param extraEnvVars Extra environment variables to add to MongoDB(®) pods
457## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
460## @param extraEnvVarsSecret Name of existing Secret containing extra env vars (in case of sensitive data)
462extraEnvVarsSecret: ""
463## @section MongoDB(®) statefulset parameters
466## @param annotations Additional labels to be added to the MongoDB(®) statefulset. Evaluated as a template
469## @param labels Annotations to be added to the MongoDB(®) statefulset. Evaluated as a template
472## @param replicaCount Number of MongoDB(®) nodes
473## When `mongodb.architecture=replicaset`, the number of replicas is taken in account
474## When `mongodb.architecture=standalone`, the number of replicas can only be 0 or 1 (value higher then 1 will not be taken in account)
477## @param updateStrategy.type Strategy to use to replace existing MongoDB(®) pods. When architecture=standalone and useStatefulSet=false,
478## this parameter will be applied on a deployment object. In other case it will be applied on a statefulset object
479## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
480## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
483## type: RollingUpdate
486## maxUnavailable: 25%
490## @param podManagementPolicy Pod management policy for MongoDB(®)
491## Should be initialized one by one when building the replicaset for the first time
493podManagementPolicy: OrderedReady
494## @param podAffinityPreset MongoDB(®) Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
495## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
498## @param podAntiAffinityPreset MongoDB(®) Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
499## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
501podAntiAffinityPreset: soft
502## Node affinity preset
503## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
506 ## @param nodeAffinityPreset.type MongoDB(®) Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
509 ## @param nodeAffinityPreset.key MongoDB(®) Node label key to match Ignored if `affinity` is set.
511 ## key: "kubernetes.io/e2e-az-name"
514 ## @param nodeAffinityPreset.values MongoDB(®) Node label values to match. Ignored if `affinity` is set.
521## @param affinity MongoDB(®) Affinity for pod assignment
522## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
523## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
526## @param nodeSelector MongoDB(®) Node labels for pod assignment
527## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
530## @param tolerations MongoDB(®) Tolerations for pod assignment
531## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
534## @param topologySpreadConstraints MongoDB(®) Spread Constraints for Pods
535## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
537topologySpreadConstraints: []
538## @param lifecycleHooks LifecycleHook for the MongoDB(®) container(s) to automate configuration before or after startup
541## @param terminationGracePeriodSeconds MongoDB(®) Termination Grace Period
543terminationGracePeriodSeconds: ""
544## @param podLabels MongoDB(®) pod labels
545## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
548## @param podAnnotations MongoDB(®) Pod annotations
549## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
552## @param priorityClassName Name of the existing priority class to be used by MongoDB(®) pod(s)
553## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
556## @param runtimeClassName Name of the runtime class to be used by MongoDB(®) pod(s)
557## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
560## MongoDB(®) pods' Security Context.
561## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
562## @param podSecurityContext.enabled Enable MongoDB(®) pod(s)' Security Context
563## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
564## @param podSecurityContext.supplementalGroups Set filesystem extra groups
565## @param podSecurityContext.fsGroup Group ID for the volumes of the MongoDB(®) pod(s)
566## @param podSecurityContext.sysctls sysctl settings of the MongoDB(®) pod(s)'
570 fsGroupChangePolicy: Always
571 supplementalGroups: []
576 ## - name: net.core.somaxconn
580## MongoDB(®) containers' Security Context (main and metrics container).
581## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
582## @param containerSecurityContext.enabled Enabled containers' Security Context
583## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
584## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
585## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
586## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
587## @param containerSecurityContext.privileged Set container's Security Context privileged
588## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
589## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
590## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
591## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
593containerSecurityContext:
600 readOnlyRootFilesystem: true
601 allowPrivilegeEscalation: false
605 type: "RuntimeDefault"
606## MongoDB(®) containers' resource requests and limits.
607## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
608## We usually recommend not to specify default resources and to leave this as a conscious
609## choice for the user. This also increases chances charts run on environments with little
610## resources, such as Minikube. If you do want to specify resources, uncomment the following
611## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
612## @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).
614resourcesPreset: "small"
615## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
626## @param containerPorts.mongodb MongoDB(®) container port
630## MongoDB(®) pods' liveness probe. Evaluated as a template.
631## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
632## @param livenessProbe.enabled Enable livenessProbe
633## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
634## @param livenessProbe.periodSeconds Period seconds for livenessProbe
635## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
636## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
637## @param livenessProbe.successThreshold Success threshold for livenessProbe
641 initialDelaySeconds: 30
646## MongoDB(®) pods' readiness probe. Evaluated as a template.
647## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
648## @param readinessProbe.enabled Enable readinessProbe
649## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
650## @param readinessProbe.periodSeconds Period seconds for readinessProbe
651## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
652## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
653## @param readinessProbe.successThreshold Success threshold for readinessProbe
657 initialDelaySeconds: 5
662## Slow starting containers can be protected through startup probes
663## Startup probes are available in Kubernetes version 1.16 and above
664## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
665## @param startupProbe.enabled Enable startupProbe
666## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
667## @param startupProbe.periodSeconds Period seconds for startupProbe
668## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
669## @param startupProbe.failureThreshold Failure threshold for startupProbe
670## @param startupProbe.successThreshold Success threshold for startupProbe
674 initialDelaySeconds: 5
679## @param customLivenessProbe Override default liveness probe for MongoDB(®) containers
680## Ignored when livenessProbe.enabled=true
682customLivenessProbe: {}
683## @param customReadinessProbe Override default readiness probe for MongoDB(®) containers
684## Ignored when readinessProbe.enabled=true
686customReadinessProbe: {}
687## @param customStartupProbe Override default startup probe for MongoDB(®) containers
688## Ignored when startupProbe.enabled=true
690customStartupProbe: {}
691## @param initContainers Add additional init containers for the hidden node pod(s)
694## - name: your-image-name
696## imagePullPolicy: Always
699## containerPort: 1234
702## @param sidecars Add additional sidecar containers for the MongoDB(®) pod(s)
705## - name: your-image-name
707## imagePullPolicy: Always
710## containerPort: 1234
711## This is an optional 'mongo-labeler' sidecar container that tracks replica-set for the primary mongodb pod
712## and labels it dynamically with ' primary: "true" ' in order for an extra-deployed service to always expose
713## and attach to the primary pod, this needs to be uncommented along with the suggested 'extraDeploy' example
714## and the suggested rbac example for the pod to be allowed adding labels to mongo replica pods
715## search 'mongo-labeler' through this file to find the sections that needs to be uncommented to make it work
717## - name: mongo-labeler
718## image: korenlev/k8s-mongo-labeler-sidecar
719## imagePullPolicy: Always
721## - name: LABEL_SELECTOR
722## value: "app.kubernetes.io/component=mongodb,app.kubernetes.io/instance=mongodb,app.kubernetes.io/name=mongodb"
724## value: "the-mongodb-namespace"
729## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MongoDB(®) container(s)
733## mountPath: /usr/share/extras
737## @param extraVolumes Optionally specify extra list of additional volumes to the MongoDB(®) statefulset
743## MongoDB(®) Pod Disruption Budget configuration
744## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
747 ## @param pdb.create Enable/disable a Pod Disruption Budget creation for MongoDB(®) pod(s)
750 ## @param pdb.minAvailable Minimum number/percentage of MongoDB(®) pods that must still be available after the eviction
753 ## @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.
756## @section Traffic exposure parameters
762 ## @param service.nameOverride MongoDB(®) service name
765 ## @param service.type Kubernetes Service type (only for standalone architecture)
768 ## @param service.portName MongoDB(®) service port name (only for standalone architecture)
771 ## @param service.ports.mongodb MongoDB(®) service port.
775 ## @param service.nodePorts.mongodb Port to bind to for NodePort and LoadBalancer service types (only for standalone architecture)
776 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
780 ## @param service.clusterIP MongoDB(®) service cluster IP (only for standalone architecture)
785 ## @param service.externalIPs Specify the externalIP value ClusterIP service type (only for standalone architecture)
786 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
789 ## @param service.loadBalancerIP loadBalancerIP for MongoDB(®) Service (only for standalone architecture)
790 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
793 ## @param service.loadBalancerClass loadBalancerClass for MongoDB(®) Service (only for standalone architecture)
794 # ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
795 loadBalancerClass: ""
796 ## @param service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer (only for standalone architecture)
797 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
799 loadBalancerSourceRanges: []
800 ## @param service.allocateLoadBalancerNodePorts Wheter to allocate node ports when service type is LoadBalancer
801 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
803 allocateLoadBalancerNodePorts: true
804 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
807 ## @param service.annotations Provide any additional annotations that may be required
810 ## @param service.externalTrafficPolicy service external traffic policy (only for standalone architecture)
811 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
813 externalTrafficPolicy: Local
814 ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
815 ## Values: ClientIP or None
816 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
818 sessionAffinity: None
819 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
820 ## sessionAffinityConfig:
822 ## timeoutSeconds: 300
824 sessionAffinityConfig: {}
825 ## Headless service properties
828 ## @param service.headless.annotations Annotations for the headless service.
831 ## @param service.publishNotReadyAddresses Indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready
832 ## ref: https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/
834 publishNotReadyAddresses: false
835## External Access to MongoDB(®) nodes configuration
838 ## @param externalAccess.enabled Enable Kubernetes external cluster access to MongoDB(®) nodes (only for replicaset architecture)
841 ## External IPs auto-discovery configuration
842 ## An init container is used to auto-detect LB IPs or node ports by querying the K8s API
843 ## Note: RBAC might be required
846 ## @param externalAccess.autoDiscovery.enabled Enable using an init container to auto-detect external IPs by querying the K8s API
849 ## Iamguarded Kubectl image
850 ## @param externalAccess.autoDiscovery.image.registry [default: REGISTRY_NAME] Init container auto-discovery image registry
851 ## @param externalAccess.autoDiscovery.image.repository [default: REPOSITORY_NAME/kubectl] Init container auto-discovery image repository
852 ## @skip externalAccess.autoDiscovery.image.tag Init container auto-discovery image tag (immutable tags are recommended)
853 ## @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
854 ## @param externalAccess.autoDiscovery.image.pullPolicy Init container auto-discovery image pull policy
855 ## @param externalAccess.autoDiscovery.image.pullSecrets Init container auto-discovery image pull secrets
859 repository: chainguard-private/kubectl-iamguarded
862 ## Specify a imagePullPolicy
863 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
865 pullPolicy: IfNotPresent
866 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
867 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
870 ## - myRegistryKeySecretName
873 ## Init Container resource requests and limits
874 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
875 ## We usually recommend not to specify default resources and to leave this as a conscious
876 ## choice for the user. This also increases chances charts run on environments with little
877 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
878 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
879 ## @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).
881 resourcesPreset: "nano"
882 ## @param externalAccess.autoDiscovery.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
893 ## Init container what mission is ensure public names can be resolved.
896 ## Iamguarded os-shell image
897 ## @param externalAccess.dnsCheck.image.registry [default: REGISTRY_NAME] Init container dns-check image registry
898 ## @param externalAccess.dnsCheck.image.repository [default: REPOSITORY_NAME/kubectl] Init container dns-check image repository
899 ## @skip externalAccess.dnsCheck.image.tag Init container dns-check image tag (immutable tags are recommended)
900 ## @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
901 ## @param externalAccess.dnsCheck.image.pullPolicy Init container dns-check image pull policy
902 ## @param externalAccess.dnsCheck.image.pullSecrets Init container dns-check image pull secrets
906 repository: chainguard-private/os-shell-iamguarded
909 ## Specify a imagePullPolicy
910 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
912 pullPolicy: IfNotPresent
913 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
914 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
917 ## - myRegistryKeySecretName
920 ## Init Container resource requests and limits
921 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
922 ## We usually recommend not to specify default resources and to leave this as a conscious
923 ## choice for the user. This also increases chances charts run on environments with little
924 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
925 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
926 ## @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).
928 resourcesPreset: "nano"
929 ## @param externalAccess.dnsCheck.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
940 ## Parameters to configure a set of Pods that connect to an existing MongoDB(®) deployment that lies outside of Kubernetes.
941 ## @param externalAccess.externalMaster.enabled Use external master for bootstrapping
942 ## @param externalAccess.externalMaster.host External master host to bootstrap from
943 ## @param externalAccess.externalMaster.port Port for MongoDB(®) service external master host
949 ## Parameters to configure K8s service(s) used to externally access MongoDB(®)
950 ## A new service per broker will be created
953 ## @param externalAccess.service.type Kubernetes Service type for external access. Allowed values: NodePort, LoadBalancer or ClusterIP
956 ## @param externalAccess.service.portName MongoDB(®) port name used for external access when service type is LoadBalancer
959 ## @param externalAccess.service.ports.mongodb MongoDB(®) port used for external access when service type is LoadBalancer
963 ## @param externalAccess.service.loadBalancerIPs Array of load balancer IPs for MongoDB(®) nodes
970 ## @param externalAccess.service.publicNames Array of public names. The size should be equal to the number of replicas.
973 ## @param externalAccess.service.loadBalancerClass loadBalancerClass when service type is LoadBalancer
974 # ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
975 loadBalancerClass: ""
976 ## @param externalAccess.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
977 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
979 ## loadBalancerSourceRanges:
982 loadBalancerSourceRanges: []
983 ## @param externalAccess.service.allocateLoadBalancerNodePorts Whether to allocate node ports when service type is LoadBalancer
984 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
986 allocateLoadBalancerNodePorts: true
987 ## @param externalAccess.service.externalTrafficPolicy MongoDB(®) service external traffic policy
988 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
990 externalTrafficPolicy: Local
991 ## @param externalAccess.service.nodePorts Array of node ports used to configure MongoDB(®) advertised hostname when service type is NodePort
998 ## @param externalAccess.service.domain Domain or external IP used to configure MongoDB(®) advertised hostname when service type is NodePort
999 ## If not specified, the container will try to get the kubernetes node external IP
1001 ## domain: mydomain.com
1004 ## @param externalAccess.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1007 ## @param externalAccess.service.annotations Service annotations for external access. These annotations are common for all services created.
1010 ## @param externalAccess.service.annotationsList Service annotations for eache external service. This value contains a list allowing different annotations per each external service.
1013 ## - external-dns.alpha.kubernetes.io/hostname: mongodb-0.example.com
1014 ## - external-dns.alpha.kubernetes.io/hostname: mongodb-1.example.com
1017 ## @param externalAccess.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1018 ## Values: ClientIP or None
1019 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1021 sessionAffinity: None
1022 ## @param externalAccess.service.sessionAffinityConfig Additional settings for the sessionAffinity
1023 ## sessionAffinityConfig:
1025 ## timeoutSeconds: 300
1027 sessionAffinityConfig: {}
1028 ## External Access to MongoDB(®) Hidden nodes configuration
1031 ## @param externalAccess.hidden.enabled Enable Kubernetes external cluster access to MongoDB(®) hidden nodes
1034 ## Parameters to configure K8s service(s) used to externally access MongoDB(®)
1035 ## A new service per broker will be created
1038 ## @param externalAccess.hidden.service.type Kubernetes Service type for external access. Allowed values: NodePort or LoadBalancer
1041 ## @param externalAccess.hidden.service.portName MongoDB(®) port name used for external access when service type is LoadBalancer
1044 ## @param externalAccess.hidden.service.ports.mongodb MongoDB(®) port used for external access when service type is LoadBalancer
1048 ## @param externalAccess.hidden.service.loadBalancerIPs Array of load balancer IPs for MongoDB(®) nodes
1055 ## @param externalAccess.hidden.service.loadBalancerClass loadBalancerClass when service type is LoadBalancer
1056 # ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
1057 loadBalancerClass: ""
1058 ## @param externalAccess.hidden.service.loadBalancerSourceRanges Address(es) that are allowed when service is LoadBalancer
1059 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1061 ## loadBalancerSourceRanges:
1064 loadBalancerSourceRanges: []
1065 ## @param externalAccess.hidden.service.allocateLoadBalancerNodePorts Wheter to allocate node ports when service type is LoadBalancer
1066 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
1068 allocateLoadBalancerNodePorts: true
1069 ## @param externalAccess.hidden.service.externalTrafficPolicy MongoDB(®) service external traffic policy
1070 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1072 externalTrafficPolicy: Local
1073 ## @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
1080 ## @param externalAccess.hidden.service.domain Domain or external IP used to configure MongoDB(®) advertised hostname when service type is NodePort
1081 ## If not specified, the container will try to get the kubernetes node external IP
1083 ## domain: mydomain.com
1086 ## @param externalAccess.hidden.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1089 ## @param externalAccess.hidden.service.annotations Service annotations for external access
1092 ## @param externalAccess.hidden.service.sessionAffinity Control where client requests go, to the same pod or round-robin
1093 ## Values: ClientIP or None
1094 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1096 sessionAffinity: None
1097 ## @param externalAccess.hidden.service.sessionAffinityConfig Additional settings for the sessionAffinity
1098 ## sessionAffinityConfig:
1100 ## timeoutSeconds: 300
1102 sessionAffinityConfig: {}
1103## @section Password update job
1106 ## @param passwordUpdateJob.enabled Enable password update job
1109 ## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1112 ## @param passwordUpdateJob.command Override default container command on mysql Primary container(s) (useful when using custom images)
1115 ## @param passwordUpdateJob.args Override default container args on mysql Primary container(s) (useful when using custom images)
1118 ## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
1121 ## @param passwordUpdateJob.previousPasswords.rootPassword Previous root password (set if the password secret was already changed)
1122 ## @param passwordUpdateJob.previousPasswords.existingSecret Name of a secret containing the previous passwords (set if the password secret was already changed)
1126 ## Configure Container Security Context
1127 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1128 ## @param passwordUpdateJob.containerSecurityContext.enabled Enabled containers' Security Context
1129 ## @param passwordUpdateJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1130 ## @param passwordUpdateJob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1131 ## @param passwordUpdateJob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1132 ## @param passwordUpdateJob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1133 ## @param passwordUpdateJob.containerSecurityContext.privileged Set container's Security Context privileged
1134 ## @param passwordUpdateJob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1135 ## @param passwordUpdateJob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1136 ## @param passwordUpdateJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1137 ## @param passwordUpdateJob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1139 containerSecurityContext:
1146 readOnlyRootFilesystem: true
1147 allowPrivilegeEscalation: false
1151 type: "RuntimeDefault"
1152 ## Configure Pods Security Context
1153 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1154 ## @param passwordUpdateJob.podSecurityContext.enabled Enabled credential init job pods' Security Context
1155 ## @param passwordUpdateJob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1156 ## @param passwordUpdateJob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1157 ## @param passwordUpdateJob.podSecurityContext.supplementalGroups Set filesystem extra groups
1158 ## @param passwordUpdateJob.podSecurityContext.fsGroup Set credential init job pod's Security Context fsGroup
1162 fsGroupChangePolicy: Always
1164 supplementalGroups: []
1166 ## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1169 ## - name: GF_DEFAULT_INSTANCE_NAME
1170 ## value: my-instance
1173 ## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1176 ## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1178 extraEnvVarsSecret: ""
1179 ## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1182 ## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1184 extraVolumeMounts: []
1185 ## @param passwordUpdateJob.initContainers Add additional init containers for the mysql Primary pod(s)
1188 ## Container resource requests and limits
1189 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1190 ## @param passwordUpdateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if passwordUpdateJob.resources is set (passwordUpdateJob.resources is recommended for production).
1192 resourcesPreset: "micro"
1193 ## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1204 ## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1206 customLivenessProbe: {}
1207 ## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1209 customReadinessProbe: {}
1210 ## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1212 customStartupProbe: {}
1213 ## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
1215 automountServiceAccountToken: false
1216 ## @param passwordUpdateJob.hostAliases Add deployment host aliases
1217 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1220 ## @param passwordUpdateJob.annotations [object] Add annotations to the job
1223 ## @param passwordUpdateJob.podLabels Additional pod labels
1224 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1227 ## @param passwordUpdateJob.podAnnotations Additional pod annotations
1228 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1231## @section Network policy parameters
1235## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1238 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1241 ## @param networkPolicy.allowExternal Don't require server label for connections
1242 ## The Policy model to apply. When set to false, only pods with the correct
1243 ## server label will have network access to the ports server is listening
1244 ## on. When true, server will accept connections from any source
1245 ## (with the correct destination port).
1248 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1250 allowExternalEgress: true
1251 ## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
1253 addExternalClientAccess: true
1254 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1264 ## - matchExpressions:
1270 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1280 ## - matchExpressions:
1287 ## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
1289 ## ingressPodMatchLabels:
1290 ## my-client: "true"
1292 ingressPodMatchLabels: {}
1293 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1294 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1296 ingressNSMatchLabels: {}
1297 ingressNSPodMatchLabels: {}
1299 ## @param persistence.enabled Enable MongoDB(®) data persistence using PVC
1302 ## @param persistence.name Name of the PVC and mounted volume
1305 ## @param persistence.medium Provide a medium for `emptyDir` volumes.
1306 ## Requires persistence.enabled: false
1309 ## @param persistence.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
1310 ## Requires persistence.enabled: true
1311 ## If defined, PVC must be created manually before volume will be bound
1312 ## Ignored when mongodb.architecture=replicaset
1315 ## @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
1318 ## @param persistence.storageClass PVC Storage Class for MongoDB(®) data volume
1319 ## If defined, storageClassName: <storageClass>
1320 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1321 ## If undefined (the default) or set to null, no storageClassName spec is
1322 ## set, choosing the default provisioner.
1325 ## @param persistence.accessModes PV Access Mode
1329 ## @param persistence.size PVC Storage Request for MongoDB(®) data volume
1332 ## @param persistence.annotations PVC annotations
1335 ## @param persistence.labels PVC labels
1338 ## @param persistence.mountPath Path to mount the volume at
1339 ## MongoDB(®) images.
1341 mountPath: /iamguarded/mongodb
1342 ## @param persistence.subPath Subdirectory of the volume to mount at
1343 ## and one PV for multiple services.
1346 ## Fine tuning for volumeClaimTemplates
1348 volumeClaimTemplates:
1349 ## @param persistence.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
1350 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1351 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
1354 ## @param persistence.volumeClaimTemplates.requests Custom PVC requests attributes
1355 ## Sometime cloud providers use additional requests attributes to provision custom storage instance
1356 ## See https://cloud.ibm.com/docs/containers?topic=containers-file_storage#file_dynamic_statefulset
1359 ## @param persistence.volumeClaimTemplates.dataSource Add dataSource to the VolumeClaimTemplate
1362## Persistent Volume Claim Retention Policy
1363## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1365persistentVolumeClaimRetentionPolicy:
1366 ## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for MongoDB(®) Statefulset
1369 ## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1372 ## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1375## @section Backup parameters
1376## This section implements a trivial logical dump cronjob of the database.
1377## This only comes with the consistency guarantees of the dump program.
1378## This is not a snapshot based roll forward/backward recovery backup.
1379## ref: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
1382 ## @param backup.enabled Enable the logical dump of the database "regularly"
1385 ## Fine tuning cronjob's config
1388 ## @param backup.cronjob.schedule Set the cronjob parameter schedule
1391 ## @param backup.cronjob.timeZone Set the cronjob parameter timeZone
1394 ## @param backup.cronjob.concurrencyPolicy Set the cronjob parameter concurrencyPolicy
1396 concurrencyPolicy: Allow
1397 ## @param backup.cronjob.failedJobsHistoryLimit Set the cronjob parameter failedJobsHistoryLimit
1399 failedJobsHistoryLimit: 1
1400 ## @param backup.cronjob.successfulJobsHistoryLimit Set the cronjob parameter successfulJobsHistoryLimit
1402 successfulJobsHistoryLimit: 3
1403 ## @param backup.cronjob.startingDeadlineSeconds Set the cronjob parameter startingDeadlineSeconds
1405 startingDeadlineSeconds: ""
1406 ## @param backup.cronjob.ttlSecondsAfterFinished Set the cronjob parameter ttlSecondsAfterFinished
1408 ttlSecondsAfterFinished: ""
1409 ## @param backup.cronjob.restartPolicy Set the cronjob parameter restartPolicy
1411 restartPolicy: OnFailure
1412 ## @param backup.cronjob.backoffLimit Set the cronjob parameter backoffLimit
1414 ## @param backup.cronjob.serviceAccount.name Set the cronjob parameter serviceAccountName. If you change from the default values make sure that the SA already exists.
1417 ## backup container's Security Context
1418 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1419 ## @param backup.cronjob.containerSecurityContext.enabled Enabled containers' Security Context
1420 ## @param backup.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1421 ## @param backup.cronjob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1422 ## @param backup.cronjob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1423 ## @param backup.cronjob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1424 ## @param backup.cronjob.containerSecurityContext.privileged Set container's Security Context privileged
1425 ## @param backup.cronjob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1426 ## @param backup.cronjob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1427 ## @param backup.cronjob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1428 ## @param backup.cronjob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1430 containerSecurityContext:
1437 readOnlyRootFilesystem: true
1438 allowPrivilegeEscalation: false
1442 type: "RuntimeDefault"
1443 ## backup container's resource requests and limits.
1444 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1445 ## We usually recommend not to specify default resources and to leave this as a conscious
1446 ## choice for the user. This also increases chances charts run on environments with little
1447 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1448 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1449 ## @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).
1451 resourcesPreset: "none"
1452 ## @param backup.cronjob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1463 ## @param backup.cronjob.command Set backup container's command to run
1466 ## @param backup.cronjob.labels Set the cronjob labels
1469 ## @param backup.cronjob.annotations Set the cronjob annotations
1472 ## Backup container's
1475 ## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
1476 ## If defined, PVC must be created manually before volume will be bound
1479 ## @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
1482 ## @param backup.cronjob.storage.storageClass PVC Storage Class for the backup data volume
1483 ## If defined, storageClassName: <storageClass>
1484 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1485 ## If undefined (the default) or set to null, no storageClassName spec is
1486 ## set, choosing the default provisioner.
1489 ## @param backup.cronjob.storage.accessModes PV Access Mode
1493 ## @param backup.cronjob.storage.size PVC Storage Request for the backup data volume
1496 ## @param backup.cronjob.storage.annotations PVC annotations
1499 ## @param backup.cronjob.storage.mountPath Path to mount the volume at
1501 mountPath: /backup/mongodb
1502 ## @param backup.cronjob.storage.subPath Subdirectory of the volume to mount at
1503 ## and one PV for multiple services.
1506 ## Fine tuning for volumeClaimTemplates
1508 volumeClaimTemplates:
1509 ## @param backup.cronjob.storage.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
1510 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1511 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
1514## @section RBAC parameters
1518## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1521 ## @param serviceAccount.create Enable creation of ServiceAccount for MongoDB(®) pods
1524 ## @param serviceAccount.name Name of the created serviceAccount
1525 ## If not set and create is true, a name is generated using the mongodb.fullname template
1528 ## @param serviceAccount.annotations Additional Service Account annotations
1531 ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
1532 ## Can be set to false if pods using this serviceAccount do not need to use K8s API
1534 automountServiceAccountToken: false
1536## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1539 ## @param rbac.create Whether to create & use RBAC resources or not
1540 ## binding MongoDB(®) ServiceAccount to a role
1541 ## that allows MongoDB(®) pods querying the K8s API
1542 ## this needs to be set to 'true' to enable the mongo-labeler sidecar primary mongodb discovery
1545 ## @param rbac.rules Custom rules to create following the role specification
1546 ## The example below needs to be uncommented to use the 'mongo-labeler' sidecar for dynamic discovery of the primary mongodb pod:
1559## PodSecurityPolicy configuration
1560## Be sure to also set rbac.create to true, otherwise Role and RoleBinding won't be created.
1561## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1564 ## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1567 ## @param podSecurityPolicy.allowPrivilegeEscalation Enable privilege escalation
1568 ## Either use predefined policy with some adjustments or use `podSecurityPolicy.spec`
1570 allowPrivilegeEscalation: false
1571 ## @param podSecurityPolicy.privileged Allow privileged
1574 ## @param podSecurityPolicy.spec Specify the full spec to use for Pod Security Policy
1575 ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1576 ## Defining a spec ignores the above values.
1580 ## allowPrivilegeEscalation: false
1582 ## rule: 'MustRunAs'
1587 ## hostNetwork: false
1589 ## privileged: false
1590 ## readOnlyRootFilesystem: true
1591 ## requiredDropCapabilities:
1594 ## rule: 'MustRunAs'
1600 ## supplementalGroups:
1601 ## rule: 'MustRunAs'
1609 ## - 'persistentVolumeClaim'
1611## @section Volume Permissions parameters
1613## Init Container parameters
1614## Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each component
1615## values from the securityContext section of the component
1618 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
1621 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1622 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1623 ## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1624 ## @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
1625 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1626 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1630 repository: chainguard-private/os-shell-iamguarded
1633 ## Specify a imagePullPolicy
1634 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1636 pullPolicy: IfNotPresent
1637 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1638 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1641 ## - myRegistryKeySecretName
1644 ## Init Container resource requests and limits
1645 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1646 ## We usually recommend not to specify default resources and to leave this as a conscious
1647 ## choice for the user. This also increases chances charts run on environments with little
1648 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1649 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1650 ## @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).
1652 resourcesPreset: "nano"
1653 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1664 ## Init container Security Context
1665 ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
1666 ## and not the below volumePermissions.securityContext.runAsUser
1667 ## When runAsUser is set to special value "auto", init container will try to chwon the
1668 ## data folder to autodetermined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
1669 ## "auto" is especially useful for OpenShift which has scc with dynamic userids (and 0 is not allowed).
1670 ## You may want to use this volumePermissions.securityContext.runAsUser="auto" in combination with
1671 ## podSecurityContext.enabled=false,containerSecurityContext.enabled=false and shmVolume.chmod.enabled=false
1672 ## @param volumePermissions.securityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1673 ## @param volumePermissions.securityContext.runAsUser User ID for the volumePermissions container
1678## @section Arbiter parameters
1681 ## @param arbiter.enabled Enable deploying the arbiter
1682 ## https://docs.mongodb.com/manual/tutorial/add-replica-set-arbiter/
1685 ## @param arbiter.automountServiceAccountToken Mount Service Account token in pod
1687 automountServiceAccountToken: false
1688 ## @param arbiter.hostAliases Add deployment host aliases
1689 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1692 ## @param arbiter.configuration Arbiter configuration file to be used
1693 ## http://docs.mongodb.org/manual/reference/configuration-options/
1696 ## @param arbiter.existingConfigmap Name of existing ConfigMap with Arbiter configuration
1697 ## NOTE: When it's set the arbiter.configuration parameter is ignored
1699 existingConfigmap: ""
1700 ## Command and args for running the container (set to default if not set). Use array form
1701 ## @param arbiter.command Override default container command (useful when using custom images)
1702 ## @param arbiter.args Override default container args (useful when using custom images)
1706 ## @param arbiter.extraFlags Arbiter additional command line flags
1709 ## - "--wiredTigerCacheSizeGB=2"
1712 ## @param arbiter.extraEnvVars Extra environment variables to add to Arbiter pods
1719 ## @param arbiter.extraEnvVarsCM Name of existing ConfigMap containing extra env vars
1722 ## @param arbiter.extraEnvVarsSecret Name of existing Secret containing extra env vars (in case of sensitive data)
1724 extraEnvVarsSecret: ""
1725 ## @param arbiter.annotations Additional labels to be added to the Arbiter statefulset
1728 ## @param arbiter.labels Annotations to be added to the Arbiter statefulset
1731 ## @param arbiter.topologySpreadConstraints MongoDB(®) Spread Constraints for arbiter Pods
1732 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
1734 topologySpreadConstraints: []
1735 ## @param arbiter.lifecycleHooks LifecycleHook for the Arbiter container to automate configuration before or after startup
1738 ## @param arbiter.terminationGracePeriodSeconds Arbiter Termination Grace Period
1740 terminationGracePeriodSeconds: ""
1741 ## @param arbiter.updateStrategy.type Strategy that will be employed to update Pods in the StatefulSet
1742 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1744 ## type: RollingUpdate
1747 ## maxUnavailable: 25%
1751 ## @param arbiter.podManagementPolicy Pod management policy for MongoDB(®)
1752 ## Should be initialized one by one when building the replicaset for the first time
1754 podManagementPolicy: OrderedReady
1755 ## @param arbiter.schedulerName Name of the scheduler (other than default) to dispatch pods
1756 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1759 ## @param arbiter.podAffinityPreset Arbiter Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1760 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1762 podAffinityPreset: ""
1763 ## @param arbiter.podAntiAffinityPreset Arbiter Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1764 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1766 podAntiAffinityPreset: soft
1767 ## Node affinity preset
1768 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1771 ## @param arbiter.nodeAffinityPreset.type Arbiter Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1774 ## @param arbiter.nodeAffinityPreset.key Arbiter Node label key to match Ignored if `affinity` is set.
1776 ## key: "kubernetes.io/e2e-az-name"
1779 ## @param arbiter.nodeAffinityPreset.values Arbiter Node label values to match. Ignored if `affinity` is set.
1786 ## @param arbiter.affinity Arbiter Affinity for pod assignment
1787 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1788 ## Note: arbiter.podAffinityPreset, arbiter.podAntiAffinityPreset, and arbiter.nodeAffinityPreset will be ignored when it's set
1791 ## @param arbiter.nodeSelector Arbiter Node labels for pod assignment
1792 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1795 ## @param arbiter.tolerations Arbiter Tolerations for pod assignment
1796 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1799 ## @param arbiter.podLabels Arbiter pod labels
1800 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1803 ## @param arbiter.podAnnotations Arbiter Pod annotations
1804 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1807 ## @param arbiter.priorityClassName Name of the existing priority class to be used by Arbiter pod(s)
1808 ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1810 priorityClassName: ""
1811 ## @param arbiter.runtimeClassName Name of the runtime class to be used by Arbiter pod(s)
1812 ## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
1814 runtimeClassName: ""
1815 ## MongoDB(®) Arbiter pods' Security Context.
1816 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1817 ## @param arbiter.podSecurityContext.enabled Enable Arbiter pod(s)' Security Context
1818 ## @param arbiter.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1819 ## @param arbiter.podSecurityContext.supplementalGroups Set filesystem extra groups
1820 ## @param arbiter.podSecurityContext.fsGroup Group ID for the volumes of the Arbiter pod(s)
1821 ## @param arbiter.podSecurityContext.sysctls sysctl settings of the Arbiter pod(s)'
1825 fsGroupChangePolicy: Always
1826 supplementalGroups: []
1831 ## - name: net.core.somaxconn
1835 ## MongoDB(®) Arbiter containers' Security Context (only main container).
1836 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1837 ## @param arbiter.containerSecurityContext.enabled Enabled containers' Security Context
1838 ## @param arbiter.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1839 ## @param arbiter.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1840 ## @param arbiter.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1841 ## @param arbiter.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1842 ## @param arbiter.containerSecurityContext.privileged Set container's Security Context privileged
1843 ## @param arbiter.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1844 ## @param arbiter.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1845 ## @param arbiter.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1846 ## @param arbiter.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1848 containerSecurityContext:
1855 readOnlyRootFilesystem: true
1856 allowPrivilegeEscalation: false
1860 type: "RuntimeDefault"
1861 ## MongoDB(®) Arbiter containers' resource requests and limits.
1862 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1863 ## We usually recommend not to specify default resources and to leave this as a conscious
1864 ## choice for the user. This also increases chances charts run on environments with little
1865 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1866 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1867 ## @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).
1869 resourcesPreset: "small"
1870 ## @param arbiter.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1881 ## @param arbiter.containerPorts.mongodb MongoDB(®) arbiter container port
1885 ## MongoDB(®) Arbiter pods' liveness probe. Evaluated as a template.
1886 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1887 ## @param arbiter.livenessProbe.enabled Enable livenessProbe
1888 ## @param arbiter.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1889 ## @param arbiter.livenessProbe.periodSeconds Period seconds for livenessProbe
1890 ## @param arbiter.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1891 ## @param arbiter.livenessProbe.failureThreshold Failure threshold for livenessProbe
1892 ## @param arbiter.livenessProbe.successThreshold Success threshold for livenessProbe
1896 initialDelaySeconds: 30
1901 ## MongoDB(®) Arbiter pods' readiness probe. Evaluated as a template.
1902 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1903 ## @param arbiter.readinessProbe.enabled Enable readinessProbe
1904 ## @param arbiter.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1905 ## @param arbiter.readinessProbe.periodSeconds Period seconds for readinessProbe
1906 ## @param arbiter.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1907 ## @param arbiter.readinessProbe.failureThreshold Failure threshold for readinessProbe
1908 ## @param arbiter.readinessProbe.successThreshold Success threshold for readinessProbe
1912 initialDelaySeconds: 5
1917 ## MongoDB(®) Arbiter pods' startup probe. Evaluated as a template.
1918 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1919 ## @param arbiter.startupProbe.enabled Enable startupProbe
1920 ## @param arbiter.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1921 ## @param arbiter.startupProbe.periodSeconds Period seconds for startupProbe
1922 ## @param arbiter.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1923 ## @param arbiter.startupProbe.failureThreshold Failure threshold for startupProbe
1924 ## @param arbiter.startupProbe.successThreshold Success threshold for startupProbe
1928 initialDelaySeconds: 5
1932 failureThreshold: 30
1933 ## @param arbiter.customLivenessProbe Override default liveness probe for Arbiter containers
1934 ## Ignored when arbiter.livenessProbe.enabled=true
1936 customLivenessProbe: {}
1937 ## @param arbiter.customReadinessProbe Override default readiness probe for Arbiter containers
1938 ## Ignored when arbiter.readinessProbe.enabled=true
1940 customReadinessProbe: {}
1941 ## @param arbiter.customStartupProbe Override default startup probe for Arbiter containers
1942 ## Ignored when arbiter.startupProbe.enabled=true
1944 customStartupProbe: {}
1945 ## @param arbiter.initContainers Add additional init containers for the Arbiter pod(s)
1948 ## - name: your-image-name
1949 ## image: your-image
1950 ## imagePullPolicy: Always
1953 ## containerPort: 1234
1956 ## @param arbiter.sidecars Add additional sidecar containers for the Arbiter pod(s)
1959 ## - name: your-image-name
1960 ## image: your-image
1961 ## imagePullPolicy: Always
1964 ## containerPort: 1234
1967 ## @param arbiter.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Arbiter container(s)
1969 ## extraVolumeMounts:
1971 ## mountPath: /usr/share/extras
1974 extraVolumeMounts: []
1975 ## @param arbiter.extraVolumes Optionally specify extra list of additional volumes to the Arbiter statefulset
1981 ## MongoDB(®) Arbiter Pod Disruption Budget configuration
1982 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1985 ## @param arbiter.pdb.create Enable/disable a Pod Disruption Budget creation for Arbiter pod(s)
1988 ## @param arbiter.pdb.minAvailable Minimum number/percentage of Arbiter pods that should remain scheduled
1991 ## @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.
1994 ## MongoDB(®) Arbiter service parameters
1997 ## @param arbiter.service.nameOverride The arbiter service name
2000 ## @param arbiter.service.ports.mongodb MongoDB(®) service port
2004 ## @param arbiter.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2007 ## @param arbiter.service.annotations Provide any additional annotations that may be required
2010 ## Headless service properties
2013 ## @param arbiter.service.headless.annotations Annotations for the headless service.
2016## @section Hidden Node parameters
2019 ## @param hidden.enabled Enable deploying the hidden nodes
2020 ## https://docs.mongodb.com/manual/tutorial/configure-a-hidden-replica-set-member/
2023 ## @param hidden.automountServiceAccountToken Mount Service Account token in pod
2025 automountServiceAccountToken: false
2026 ## @param hidden.hostAliases Add deployment host aliases
2027 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
2030 ## @param hidden.configuration Hidden node configuration file to be used
2031 ## http://docs.mongodb.org/manual/reference/configuration-options/
2034 ## @param hidden.existingConfigmap Name of existing ConfigMap with Hidden node configuration
2035 ## NOTE: When it's set the hidden.configuration parameter is ignored
2037 existingConfigmap: ""
2038 ## Command and args for running the container (set to default if not set). Use array form
2039 ## @param hidden.command Override default container command (useful when using custom images)
2040 ## @param hidden.args Override default container args (useful when using custom images)
2044 ## @param hidden.extraFlags Hidden node additional command line flags
2047 ## - "--wiredTigerCacheSizeGB=2"
2050 ## @param hidden.extraEnvVars Extra environment variables to add to Hidden node pods
2057 ## @param hidden.extraEnvVarsCM Name of existing ConfigMap containing extra env vars
2060 ## @param hidden.extraEnvVarsSecret Name of existing Secret containing extra env vars (in case of sensitive data)
2062 extraEnvVarsSecret: ""
2063 ## @param hidden.annotations Additional labels to be added to thehidden node statefulset
2066 ## @param hidden.labels Annotations to be added to the hidden node statefulset
2069 ## @param hidden.topologySpreadConstraints MongoDB(®) Spread Constraints for hidden Pods
2070 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
2072 topologySpreadConstraints: []
2073 ## @param hidden.lifecycleHooks LifecycleHook for the Hidden container to automate configuration before or after startup
2076 ## @param hidden.replicaCount Number of hidden nodes (only when `architecture=replicaset`)
2077 ## Ignored when mongodb.architecture=standalone
2080 ## @param hidden.terminationGracePeriodSeconds Hidden Termination Grace Period
2082 terminationGracePeriodSeconds: ""
2083 ## @param hidden.updateStrategy.type Strategy that will be employed to update Pods in the StatefulSet
2084 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
2086 ## type: RollingUpdate
2089 ## maxUnavailable: 25%
2093 ## @param hidden.podManagementPolicy Pod management policy for hidden node
2095 podManagementPolicy: OrderedReady
2096 ## @param hidden.schedulerName Name of the scheduler (other than default) to dispatch pods
2097 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
2100 ## @param hidden.podAffinityPreset Hidden node Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
2101 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
2103 podAffinityPreset: ""
2104 ## @param hidden.podAntiAffinityPreset Hidden node Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
2105 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
2107 podAntiAffinityPreset: soft
2108 ## Node affinity preset
2109 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
2110 ## Allowed values: soft, hard
2113 ## @param hidden.nodeAffinityPreset.type Hidden Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
2116 ## @param hidden.nodeAffinityPreset.key Hidden Node label key to match Ignored if `affinity` is set.
2118 ## key: "kubernetes.io/e2e-az-name"
2121 ## @param hidden.nodeAffinityPreset.values Hidden Node label values to match. Ignored if `affinity` is set.
2128 ## @param hidden.affinity Hidden node Affinity for pod assignment
2129 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
2130 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
2133 ## @param hidden.nodeSelector Hidden node Node labels for pod assignment
2134 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
2137 ## @param hidden.tolerations Hidden node Tolerations for pod assignment
2138 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2141 ## @param hidden.podLabels Hidden node pod labels
2142 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2145 ## @param hidden.podAnnotations Hidden node Pod annotations
2146 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
2149 ## @param hidden.priorityClassName Name of the existing priority class to be used by hidden node pod(s)
2150 ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
2152 priorityClassName: ""
2153 ## @param hidden.runtimeClassName Name of the runtime class to be used by hidden node pod(s)
2154 ## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
2156 runtimeClassName: ""
2157 ## MongoDB(®) Hidden pods' Security Context.
2158 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
2159 ## @param hidden.podSecurityContext.enabled Enable Hidden pod(s)' Security Context
2160 ## @param hidden.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
2161 ## @param hidden.podSecurityContext.supplementalGroups Set filesystem extra groups
2162 ## @param hidden.podSecurityContext.fsGroup Group ID for the volumes of the Hidden pod(s)
2163 ## @param hidden.podSecurityContext.sysctls sysctl settings of the Hidden pod(s)'
2167 fsGroupChangePolicy: Always
2168 supplementalGroups: []
2173 ## - name: net.core.somaxconn
2177 ## MongoDB(®) Hidden containers' Security Context (only main container).
2178 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2179 ## @param hidden.containerSecurityContext.enabled Enabled containers' Security Context
2180 ## @param hidden.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2181 ## @param hidden.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
2182 ## @param hidden.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
2183 ## @param hidden.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
2184 ## @param hidden.containerSecurityContext.privileged Set container's Security Context privileged
2185 ## @param hidden.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
2186 ## @param hidden.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
2187 ## @param hidden.containerSecurityContext.capabilities.drop List of capabilities to be dropped
2188 ## @param hidden.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
2190 containerSecurityContext:
2197 readOnlyRootFilesystem: true
2198 allowPrivilegeEscalation: false
2202 type: "RuntimeDefault"
2203 ## MongoDB(®) Hidden containers' resource requests and limits.
2204 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2205 ## We usually recommend not to specify default resources and to leave this as a conscious
2206 ## choice for the user. This also increases chances charts run on environments with little
2207 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
2208 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
2209 ## @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).
2211 resourcesPreset: "micro"
2212 ## @param hidden.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2223 ## @param hidden.containerPorts.mongodb MongoDB(®) hidden container port
2227 ## MongoDB(®) Hidden pods' liveness probe. Evaluated as a template.
2228 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
2229 ## @param hidden.livenessProbe.enabled Enable livenessProbe
2230 ## @param hidden.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
2231 ## @param hidden.livenessProbe.periodSeconds Period seconds for livenessProbe
2232 ## @param hidden.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
2233 ## @param hidden.livenessProbe.failureThreshold Failure threshold for livenessProbe
2234 ## @param hidden.livenessProbe.successThreshold Success threshold for livenessProbe
2238 initialDelaySeconds: 30
2243 ## MongoDB(®) Hidden pods' readiness probe. Evaluated as a template.
2244 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
2245 ## @param hidden.readinessProbe.enabled Enable readinessProbe
2246 ## @param hidden.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
2247 ## @param hidden.readinessProbe.periodSeconds Period seconds for readinessProbe
2248 ## @param hidden.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
2249 ## @param hidden.readinessProbe.failureThreshold Failure threshold for readinessProbe
2250 ## @param hidden.readinessProbe.successThreshold Success threshold for readinessProbe
2254 initialDelaySeconds: 5
2259 ## Slow starting containers can be protected through startup probes
2260 ## Startup probes are available in Kubernetes version 1.16 and above
2261 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
2262 ## @param hidden.startupProbe.enabled Enable startupProbe
2263 ## @param hidden.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
2264 ## @param hidden.startupProbe.periodSeconds Period seconds for startupProbe
2265 ## @param hidden.startupProbe.timeoutSeconds Timeout seconds for startupProbe
2266 ## @param hidden.startupProbe.failureThreshold Failure threshold for startupProbe
2267 ## @param hidden.startupProbe.successThreshold Success threshold for startupProbe
2271 initialDelaySeconds: 5
2275 failureThreshold: 30
2276 ## @param hidden.customLivenessProbe Override default liveness probe for hidden node containers
2277 ## Ignored when hidden.livenessProbe.enabled=true
2279 customLivenessProbe: {}
2280 ## @param hidden.customReadinessProbe Override default readiness probe for hidden node containers
2281 ## Ignored when hidden.readinessProbe.enabled=true
2283 customReadinessProbe: {}
2284 ## @param hidden.customStartupProbe Override default startup probe for MongoDB(®) containers
2285 ## Ignored when hidden.startupProbe.enabled=true
2287 customStartupProbe: {}
2288 ## @param hidden.initContainers Add init containers to the MongoDB(®) Hidden pods.
2291 ## - name: your-image-name
2292 ## image: your-image
2293 ## imagePullPolicy: Always
2296 ## containerPort: 1234
2299 ## @param hidden.sidecars Add additional sidecar containers for the hidden node pod(s)
2302 ## - name: your-image-name
2303 ## image: your-image
2304 ## imagePullPolicy: Always
2307 ## containerPort: 1234
2310 ## @param hidden.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the hidden node container(s)
2312 ## extraVolumeMounts:
2314 ## mountPath: /usr/share/extras
2317 extraVolumeMounts: []
2318 ## @param hidden.extraVolumes Optionally specify extra list of additional volumes to the hidden node statefulset
2324 ## MongoDB(®) Hidden Pod Disruption Budget configuration
2325 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
2328 ## @param hidden.pdb.create Enable/disable a Pod Disruption Budget creation for hidden node pod(s)
2331 ## @param hidden.pdb.minAvailable Minimum number/percentage of hidden node pods that should remain scheduled
2334 ## @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.
2337 ## Enable persistence using Persistent Volume Claims
2338 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
2341 ## @param hidden.persistence.enabled Enable hidden node data persistence using PVC
2344 ## @param hidden.persistence.medium Provide a medium for `emptyDir` volumes.
2345 ## Requires hidden.persistence.enabled: false
2348 ## @param hidden.persistence.storageClass PVC Storage Class for hidden node data volume
2349 ## If defined, storageClassName: <storageClass>
2350 ## If set to "-", storageClassName: "", which disables dynamic provisioning
2351 ## If undefined (the default) or set to null, no storageClassName spec is
2352 ## set, choosing the default provisioner.
2355 ## @param hidden.persistence.accessModes PV Access Mode
2359 ## @param hidden.persistence.size PVC Storage Request for hidden node data volume
2362 ## @param hidden.persistence.annotations PVC annotations
2365 ## @param hidden.persistence.mountPath The path the volume will be mounted at, useful when using different MongoDB(®) images.
2367 mountPath: /iamguarded/mongodb
2368 ## @param hidden.persistence.subPath The subdirectory of the volume to mount to, useful in dev environments
2369 ## and one PV for multiple services.
2372 ## Fine tuning for volumeClaimTemplates
2374 volumeClaimTemplates:
2375 ## @param hidden.persistence.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
2376 ## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
2379 ## @param hidden.persistence.volumeClaimTemplates.requests Custom PVC requests attributes
2380 ## Sometime cloud providers use additional requests attributes to provision custom storage instance
2381 ## See https://cloud.ibm.com/docs/containers?topic=containers-file_storage#file_dynamic_statefulset
2384 ## @param hidden.persistence.volumeClaimTemplates.dataSource Set volumeClaimTemplate dataSource
2388 ## @param hidden.service.nameOverride The hidden service name
2391 ## @param hidden.service.portName MongoDB(®) service port name
2394 ## @param hidden.service.ports.mongodb MongoDB(®) service port
2398 ## @param hidden.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2401 ## @param hidden.service.annotations Provide any additional annotations that may be required
2404 ## Headless service properties
2407 ## @param hidden.service.headless.annotations Annotations for the headless service.
2410## @section Metrics parameters
2413 ## @param metrics.enabled Enable using a sidecar Prometheus exporter
2416 ## Iamguarded MongoDB(®) Promtheus Exporter image
2417 ## @param metrics.image.registry [default: REGISTRY_NAME] MongoDB(®) Prometheus exporter image registry
2418 ## @param metrics.image.repository [default: REPOSITORY_NAME/mongodb-exporter] MongoDB(®) Prometheus exporter image repository
2419 ## @skip metrics.image.tag MongoDB(®) Prometheus exporter image tag (immutable tags are recommended)
2420 ## @param metrics.image.digest MongoDB(®) image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2421 ## @param metrics.image.pullPolicy MongoDB(®) Prometheus exporter image pull policy
2422 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
2426 repository: chainguard-private/prometheus-mongodb-exporter-iamguarded
2429 pullPolicy: IfNotPresent
2430 ## Optionally specify an array of imagePullSecrets.
2431 ## Secrets must be manually created in the namespace.
2432 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2435 ## - myRegistryKeySecretName
2438 ## @param metrics.username String with username for the metrics exporter
2439 ## If undefined the root user will be used for the metrics exporter
2442 ## @param metrics.password String with password for the metrics exporter
2443 ## If undefined but metrics.username is defined, a random password will be generated
2446 ## @param metrics.compatibleMode Enables old style mongodb-exporter metrics
2447 compatibleMode: true
2449 ## @param metrics.collector.all Enable all collectors. Same as enabling all individual metrics
2450 ## Enabling all metrics will cause significant CPU load on mongod
2452 ## @param metrics.collector.diagnosticdata Boolean Enable collecting metrics from getDiagnosticData
2453 diagnosticdata: true
2454 ## @param metrics.collector.replicasetstatus Boolean Enable collecting metrics from replSetGetStatus
2455 replicasetstatus: true
2456 ## @param metrics.collector.dbstats Boolean Enable collecting metrics from dbStats
2458 ## @param metrics.collector.topmetrics Boolean Enable collecting metrics from top admin command
2460 ## @param metrics.collector.indexstats Boolean Enable collecting metrics from $indexStats
2462 ## @param metrics.collector.collstats Boolean Enable collecting metrics from $collStats
2464 ## @param metrics.collector.collstatsColls List of \<databases\>.\<collections\> to get $collStats
2466 ## @param metrics.collector.indexstatsColls List - List of \<databases\>.\<collections\> to get $indexStats
2468 ## @param metrics.collector.collstatsLimit Number - Disable collstats, dbstats, topmetrics and indexstats collector if there are more than \<n\> collections. 0=No limit
2470 ## @param metrics.extraFlags String with extra flags to the metrics exporter
2471 ## ref: https://github.com/percona/mongodb_exporter/blob/main/main.go
2474 ## Command and args for running the container (set to default if not set). Use array form
2475 ## @param metrics.command Override default container command (useful when using custom images)
2476 ## @param metrics.args Override default container args (useful when using custom images)
2480 ## Metrics exporter container resource requests and limits
2481 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2482 ## We usually recommend not to specify default resources and to leave this as a conscious
2483 ## choice for the user. This also increases chances charts run on environments with little
2484 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
2485 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
2486 ## @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).
2488 resourcesPreset: "nano"
2489 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2500 ## @param metrics.containerPort Port of the Prometheus metrics container
2503 ## Prometheus Exporter service configuration
2506 ## @param metrics.service.annotations [object] Annotations for Prometheus Exporter pods. Evaluated as a template.
2507 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
2510 prometheus.io/scrape: "true"
2511 prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
2512 prometheus.io/path: "/metrics"
2513 ## @param metrics.service.type Type of the Prometheus metrics service
2516 ## @param metrics.service.ports.metrics Port of the Prometheus metrics service
2520 ## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
2523 ## Metrics exporter liveness probe
2524 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
2525 ## @param metrics.livenessProbe.enabled Enable livenessProbe
2526 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
2527 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
2528 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
2529 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
2530 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
2534 initialDelaySeconds: 15
2539 ## Metrics exporter readiness probe
2540 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
2541 ## @param metrics.readinessProbe.enabled Enable readinessProbe
2542 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
2543 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
2544 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
2545 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
2546 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
2550 initialDelaySeconds: 5
2555 ## Slow starting containers can be protected through startup probes
2556 ## Startup probes are available in Kubernetes version 1.16 and above
2557 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
2558 ## @param metrics.startupProbe.enabled Enable startupProbe
2559 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
2560 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
2561 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
2562 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
2563 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
2567 initialDelaySeconds: 5
2571 failureThreshold: 30
2572 ## @param metrics.customLivenessProbe Override default liveness probe for MongoDB(®) containers
2573 ## Ignored when livenessProbe.enabled=true
2575 customLivenessProbe: {}
2576 ## @param metrics.customReadinessProbe Override default readiness probe for MongoDB(®) containers
2577 ## Ignored when readinessProbe.enabled=true
2579 customReadinessProbe: {}
2580 ## @param metrics.customStartupProbe Override default startup probe for MongoDB(®) containers
2581 ## Ignored when startupProbe.enabled=true
2583 customStartupProbe: {}
2584 ## @param metrics.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the metrics container(s)
2586 ## extraVolumeMounts:
2588 ## mountPath: /usr/share/extras
2591 extraVolumeMounts: []
2592 ## Prometheus Service Monitor
2593 ## ref: https://github.com/coreos/prometheus-operator
2594 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md
2597 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using Prometheus Operator
2600 ## @param metrics.serviceMonitor.namespace Namespace which Prometheus is running in
2603 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped
2606 ## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
2608 ## scrapeTimeout: 30s
2611 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping.
2614 ## @param metrics.serviceMonitor.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
2616 metricRelabelings: []
2617 ## @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
2618 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
2621 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
2624 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
2627 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
2630 ## Custom PrometheusRule to be defined
2631 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
2634 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
2637 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
2639 additionalLabels: {}
2640 ## @param metrics.prometheusRule.namespace Namespace where prometheusRules resource should be created
2643 ## @param metrics.prometheusRule.rules Rules to be created, check values for an example
2644 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#rulegroup
2645 ## https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
2647 ## This is an example of a rule, you should add the below code block under the "rules" param, removing the brackets
2649 ## - alert: HighRequestLatency
2650 ## expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5
2655 ## summary: High request latency