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.imagePullSecrets Global Docker registry secret names as an array
18## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
19## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
25 ## - myRegistryKeySecretName
28 defaultStorageClass: ""
30 ## Security parameters
33 ## @param global.security.allowInsecureImages Allows skipping image verification
34 allowInsecureImages: false
35 ## Compatibility adaptations for Kubernetes platforms
38 ## Compatibility adaptations for Openshift
41 ## @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)
43 adaptSecurityContext: auto
45## @section Common parameters
48## @param kubeVersion Override Kubernetes version
51## @param nameOverride String to partially override common.names.name
54## @param fullnameOverride String to fully override common.names.fullname
57## @param namespaceOverride String to fully override common.names.namespace
60## @param commonLabels Labels to add to all deployed objects
63## @param commonAnnotations Annotations to add to all deployed objects
66## @param clusterDomain Kubernetes cluster domain name
68clusterDomain: cluster.local
69## @param extraDeploy Array of extra objects to deploy with the release
72## Enable diagnostic mode in the deployment
75 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
78 ## @param diagnosticMode.command Command to override all containers in the deployment
82 ## @param diagnosticMode.args Args to override all containers in the deployment
86## @section MongoDB(®) Sharded parameters
89## Iamguarded MongoDB(®) Sharded image version
90## ref: https://hub.docker.com/r/iamguarded/mongodb-sharded/tags/
91## @param image.registry [default: REGISTRY_NAME] MongoDB(®) Sharded image registry
92## @param image.repository [default: REPOSITORY_NAME/mongodb-sharded] MongoDB(®) Sharded Image name
93## @skip image.tag MongoDB(®) Sharded image tag (immutable tags are recommended)
94## @param image.digest MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
95## @param image.pullPolicy MongoDB(®) Sharded image pull policy
96## @param image.pullSecrets Specify docker-registry secret names as an array
97## @param image.debug Specify if debug logs should be enabled
101 repository: chainguard-private/mongodb-sharded-iamguarded
104 ## Specify a imagePullPolicy
105 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
107 pullPolicy: IfNotPresent
108 ## Optionally specify an array of imagePullSecrets.
109 ## Secrets must be manually created in the namespace.
110 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
113 ## - myRegistryKeySecretName
116 ## Set to true if you would like to see extra information on logs
119## MongoDB(®) Authentication parameters
122 ## @param auth.enabled Enable authentication
123 ## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
126 ## @param auth.rootUser MongoDB(®) root user
129 ## @param auth.rootPassword MongoDB(®) root password
130 ## ref: https://github.com/iamguarded/containers/tree/main/iamguarded/mongodb#setting-the-root-user-and-password-on-first-run
133 ## @param auth.replicaSetKey Key used for authentication in the replicaset
136 ## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-password`, `mongodb-root-password`, `mongodb-replica-set-key`)
137 ## NOTE: When it's set the previous parameters are ignored.
140 ## @param auth.usePasswordFiles Mount credentials as files instead of using environment variables
142 usePasswordFiles: true
143## @param shards Number of shards to be created
144## ref: https://docs.mongodb.com/manual/core/sharded-cluster-shards/
147## Properties for all of the pods in the cluster (shards, config servers and mongos)
150 ## @param common.mongodbEnableNumactl Enable launch MongoDB instance prefixed with "numactl --interleave=all"
151 ## ref: https://docs.mongodb.com/manual/administration/production-notes/#mongodb-and-numa-hardware
153 mongodbEnableNumactl: false
154 ## @param common.useHostnames Enable DNS hostnames in the replica set config
157 ## @param common.mongodbEnableIPv6 Switch to enable/disable IPv6 on MongoDB®
158 ## ref: https://github.com/iamguarded/containers/tree/main/iamguarded/mongodb#enablingdisabling-ipv6
160 mongodbEnableIPv6: false
161 ## @param common.mongodbDirectoryPerDB Switch to enable/disable DirectoryPerDB on MongoDB®
162 ## ref: https://github.com/iamguarded/containers/tree/main/iamguarded/mongodb#enablingdisabling-directoryperdb
164 mongodbDirectoryPerDB: false
165 ## @param common.mongodbSystemLogVerbosity MongoDB® system log verbosity level
166 ## ref: https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption-mongo-ipv6
168 mongodbSystemLogVerbosity: 0
169 ## @param common.mongodbDisableSystemLog Whether to disable MongoDB® system log or not
170 ## ref: https://github.com/iamguarded/containers/tree/main/iamguarded/mongodb#configuring-system-log-verbosity-level
172 mongodbDisableSystemLog: false
173 ## @param common.mongodbInitRetryAttempts Maximum retries for checking the MongoDB® initialization status
175 mongodbInitRetryAttempts: 24
176 ## @param common.mongodbInitRetryDelay Time (in seconds) to wait between retries for checking the MongoDB® initialization status
178 mongodbInitRetryDelay: 5
179 ## @param common.initScriptsCM Configmap with init scripts to execute
182 ## @param common.initScriptsSecret Secret with init scripts to execute (for sensitive data)
184 initScriptsSecret: ""
185 ## @param common.extraEnvVars An array to add extra env vars
188 ## - name: KIBANA_ELASTICSEARCH_URL
192 ## @param common.extraEnvVarsCM Name of a ConfigMap containing extra env vars
195 ## @param common.extraEnvVarsSecret Name of a Secret containing extra env vars
197 extraEnvVarsSecret: ""
198 ## @param common.sidecars Add sidecars to the pod
201 ## - name: your-image-name
203 ## imagePullPolicy: Always
206 ## containerPort: 1234
209 ## @param common.initContainers Add init containers to the pod
212 ## - name: your-image-name
214 ## imagePullPolicy: Always
217 ## @param common.podAnnotations Additional pod annotations
218 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
221 ## @param common.podLabels Additional pod labels
222 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
225 ## @param common.extraVolumes Array to add extra volumes
228 ## @param common.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
230 extraVolumeMounts: []
231 ## @param common.containerPorts.mongodb MongoDB container port
235 ## K8s Service Account.
236 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
239 ## @param common.serviceAccount.create Whether to create a Service Account for all pods automatically
242 ## @param common.serviceAccount.name Name of a Service Account to be used by all Pods
243 ## If not set and create is true, a name is generated using the XXX.fullname template
246 ## @param common.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
249 ## @param common.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
251 automountServiceAccountToken: false
252## Init containers parameters:
253## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
256 ## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
259 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
260 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
261 ## @skip volumePermissions.image.tag Init container volume-permissions image tag
262 ## @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
263 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
264 ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
268 repository: chainguard-private/os-shell-iamguarded
271 pullPolicy: IfNotPresent
272 ## Optionally specify an array of imagePullSecrets.
273 ## Secrets must be manually created in the namespace.
274 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
277 ## - myRegistryKeySecretName
280 ## @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).
281 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
283 resourcesPreset: "nano"
284 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
295## Kubernetes service type
296## ref: https://kubernetes.io/docs/concepts/services-networking/service/
299 ## @param service.name Specify an explicit service name
302 ## @param service.annotations Additional service annotations (evaluate as a template)
303 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
306 ## @param service.type Service type
307 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
310 ## @param service.externalTrafficPolicy External traffic policy
311 ## Enable client source IP preservation
312 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
314 externalTrafficPolicy: Cluster
315 ## @param service.ports.mongodb MongoDB® service port
319 ## @param service.clusterIP Static clusterIP or None for headless services
320 ## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
323 ## @param service.nodePorts.mongodb Specify the nodePort value for the LoadBalancer and NodePort service types.
324 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
328 ## @param service.nodePorts.metrics Specify the metrics nodePort value for the LoadBalancer and NodePort service types.
331 ## @param service.externalIPs External IP list to use with ClusterIP service type
332 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
335 ## @param service.loadBalancerIP Static IP Address to use for LoadBalancer service type
336 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
339 ## @param service.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
340 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
342 loadBalancerSourceRanges: []
343 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
346 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
347 ## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
348 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
350 sessionAffinity: None
351 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
352 ## sessionAffinityConfig:
354 ## timeoutSeconds: 300
356 sessionAffinityConfig: {}
357 ## Headless service properties
360 ## @param service.headless.annotations Annotations for the headless service.
364## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
367 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
370 ## @param networkPolicy.allowExternal Don't require server label for connections
371 ## The Policy model to apply. When set to false, only pods with the correct
372 ## server label will have network access to the ports server is listening
373 ## on. When true, server will accept connections from any source
374 ## (with the correct destination port).
377 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
379 allowExternalEgress: true
380 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
390 ## - matchExpressions:
396 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
406 ## - matchExpressions:
413 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
414 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
416 ingressNSMatchLabels: {}
417 ingressNSPodMatchLabels: {}
418## @section Config Server parameters
421## Config Server replica set properties
422## ref: https://docs.mongodb.com/manual/core/sharded-cluster-config-servers/
425 ## @param configsvr.replicaCount Number of nodes in the replica set (the first node will be primary)
428 ## @param configsvr.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if configsvr.resources is set (configsvr.resources is recommended for production).
429 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
431 resourcesPreset: "small"
432 ## @param configsvr.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
441 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
444 ## @param configsvr.automountServiceAccountToken Mount Service Account token in pod
446 automountServiceAccountToken: false
447 ## @param configsvr.hostAliases Deployment pod host aliases
448 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
451 ## @param configsvr.mongodbExtraFlags MongoDB® additional command line flags
452 ## Can be used to specify command line flags, for example:
453 ## mongodbExtraFlags:
454 ## - "--wiredTigerCacheSizeGB=2"
456 mongodbExtraFlags: []
457 ## @param configsvr.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
458 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
460 topologySpreadConstraints: []
461 ## @param configsvr.priorityClassName Pod priority class name
462 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
464 priorityClassName: ""
465 ## @param configsvr.podAffinityPreset Config Server Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
466 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
468 podAffinityPreset: ""
469 ## @param configsvr.podAntiAffinityPreset Config Server Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
470 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
472 podAntiAffinityPreset: soft
473 ## Node affinity preset
474 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
477 ## @param configsvr.nodeAffinityPreset.type Config Server Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
480 ## @param configsvr.nodeAffinityPreset.key Config Server Node label key to match Ignored if `affinity` is set.
482 ## key: "kubernetes.io/e2e-az-name"
485 ## @param configsvr.nodeAffinityPreset.values Config Server Node label values to match. Ignored if `affinity` is set.
492 ## @param configsvr.affinity Config Server Affinity for pod assignment
493 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
494 ## Note: configsvr.podAffinityPreset, configsvr.podAntiAffinityPreset, and configsvr.nodeAffinityPreset will be ignored when it's set
497 ## @param configsvr.nodeSelector Config Server Node labels for pod assignment
498 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
501 ## @param configsvr.tolerations Config Server Tolerations for pod assignment
502 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
505 ## @param configsvr.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
506 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
508 podManagementPolicy: OrderedReady
509 ## @param configsvr.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
510 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
514 ## @param configsvr.config MongoDB® configuration file
515 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
518 ## @param configsvr.configCM ConfigMap name with Config Server configuration file (cannot be used with configsvr.config)
519 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
522 ## @param configsvr.extraEnvVars An array to add extra env vars
525 ## - name: KIBANA_ELASTICSEARCH_URL
529 ## @param configsvr.extraEnvVarsCM Name of a ConfigMap containing extra env vars
532 ## @param configsvr.extraEnvVarsSecret Name of a Secret containing extra env vars
534 extraEnvVarsSecret: ""
535 ## @param configsvr.sidecars Add sidecars to the pod
538 ## - name: your-image-name
540 ## imagePullPolicy: Always
543 ## containerPort: 1234
546 ## @param configsvr.initContainers Add init containers to the pod
549 ## - name: your-image-name
551 ## imagePullPolicy: Always
554 ## @param configsvr.podAnnotations Additional pod annotations
555 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
558 ## @param configsvr.podLabels Additional pod labels
559 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
562 ## @param configsvr.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
565 ## @param configsvr.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes). Normally used with `extraVolumes`
567 extraVolumeMounts: []
568 ## @param configsvr.schedulerName Use an alternate scheduler, e.g. "stork".
569 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
572 ## Pod disruption budget
575 ## @param configsvr.pdb.create Enable pod disruption budget
578 ## @param configsvr.pdb.minAvailable Minimum number of available config pods allowed (`0` to disable)
581 ## @param configsvr.pdb.maxUnavailable Maximum number of unavailable config pods allowed (`0` to disable)
584 ## Enable persistence using Persistent Volume Claims
585 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
588 ## @param configsvr.persistence.enabled Use a PVC to persist data
591 ## @param configsvr.persistence.mountPath Path to mount the volume at
592 ## MongoDB® images.
594 mountPath: /iamguarded/mongodb
595 ## @param configsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
596 ## Useful in dev environments and one PV for multiple services.
599 ## @param configsvr.persistence.storageClass Storage class of backing PVC
600 ## If defined, storageClassName: <storageClass>
601 ## If set to "-", storageClassName: "", which disables dynamic provisioning
602 ## If undefined (the default) or set to null, no storageClassName spec is
603 ## set, choosing the default provisioner. (gp2 on AWS, standard on
604 ## GKE, AWS & OpenStack)
607 ## @param configsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
611 ## @param configsvr.persistence.size PersistentVolumeClaim size
614 ## @param configsvr.persistence.annotations Persistent Volume annotations
615 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
618 ## @param configsvr.persistence.selector Selector to match an existing Persistent Volume for Config Server data PVC
619 ## A label query over volumes to consider for binding (e.g. when using local volumes)
622 ## Persistent Volume Claim Retention Policy
623 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
625 persistentVolumeClaimRetentionPolicy:
626 ## @param configsvr.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Config Server StatefulSet
629 ## @param configsvr.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
632 ## @param configsvr.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
635 ## K8s Service Account.
636 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
639 ## @param configsvr.serviceAccount.create Specifies whether a ServiceAccount should be created for Config Server
642 ## @param configsvr.serviceAccount.name Name of a Service Account to be used by Config Server
643 ## If not set and create is true, a name is generated using the XXX.fullname template
646 ## @param configsvr.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
649 ## @param configsvr.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
651 automountServiceAccountToken: false
652 ## Use a external config server instead of deploying one
655 ## @param configsvr.external.host Primary node of an external Config Server replicaset
658 ## @param configsvr.external.rootPassword Root password of the external Config Server replicaset
661 ## @param configsvr.external.replicasetName Replicaset name of an external Config Server
664 ## @param configsvr.external.replicasetKey Replicaset key of an external Config Server
667 ## Configure Pods Security Context
668 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
669 ## @param configsvr.podSecurityContext.enabled Enable security context
670 ## @param configsvr.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
671 ## @param configsvr.podSecurityContext.sysctls Set kernel settings using the sysctl interface
672 ## @param configsvr.podSecurityContext.supplementalGroups Set filesystem extra groups
673 ## @param configsvr.podSecurityContext.fsGroup Group ID for the container
677 fsGroupChangePolicy: Always
679 supplementalGroups: []
681 ## Configure Container Security Context
682 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
683 ## @param configsvr.containerSecurityContext.enabled Enabled containers' Security Context
684 ## @param configsvr.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
685 ## @param configsvr.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
686 ## @param configsvr.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
687 ## @param configsvr.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
688 ## @param configsvr.containerSecurityContext.privileged Set container's Security Context privileged
689 ## @param configsvr.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
690 ## @param configsvr.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
691 ## @param configsvr.containerSecurityContext.capabilities.drop List of capabilities to be dropped
692 ## @param configsvr.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
694 containerSecurityContext:
701 readOnlyRootFilesystem: true
702 allowPrivilegeEscalation: false
706 type: "RuntimeDefault"
707 ## @param configsvr.command Override default container command (useful when using custom images)
711 - /entrypoint/replicaset-entrypoint.sh
712 ## @param configsvr.args Override default container args (useful when using custom images)
715 ## @param configsvr.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
716 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
718 terminationGracePeriodSeconds: ""
719 ## @param configsvr.lifecycleHooks for the Config Server container(s) to automate configuration before or after startup
722 ## Configure extra options for liveness probes
723 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
724 ## @param configsvr.livenessProbe.enabled Enable livenessProbe
725 ## @param configsvr.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
726 ## @param configsvr.livenessProbe.periodSeconds Period seconds for livenessProbe
727 ## @param configsvr.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
728 ## @param configsvr.livenessProbe.failureThreshold Failure threshold for livenessProbe
729 ## @param configsvr.livenessProbe.successThreshold Success threshold for livenessProbe
733 initialDelaySeconds: 60
738 ## Configure extra options for readiness probe
739 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
740 ## @param configsvr.readinessProbe.enabled Enable readinessProbe
741 ## @param configsvr.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
742 ## @param configsvr.readinessProbe.periodSeconds Period seconds for readinessProbe
743 ## @param configsvr.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
744 ## @param configsvr.readinessProbe.failureThreshold Failure threshold for readinessProbe
745 ## @param configsvr.readinessProbe.successThreshold Success threshold for readinessProbe
749 initialDelaySeconds: 10
754 ## Configure extra options for startup probe
755 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
756 ## @param configsvr.startupProbe.enabled Enable startupProbe
757 ## @param configsvr.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
758 ## @param configsvr.startupProbe.periodSeconds Period seconds for startupProbe
759 ## @param configsvr.startupProbe.timeoutSeconds Timeout seconds for startupProbe
760 ## @param configsvr.startupProbe.failureThreshold Failure threshold for startupProbe
761 ## @param configsvr.startupProbe.successThreshold Success threshold for startupProbe
765 initialDelaySeconds: 0
770 ## @param configsvr.customLivenessProbe Custom livenessProbe that overrides the default one
772 customLivenessProbe: {}
773 ## @param configsvr.customReadinessProbe Custom readinessProbe that overrides the default one
775 customReadinessProbe: {}
776 ## @param configsvr.customStartupProbe Custom startupProbe that overrides the default one
778 customStartupProbe: {}
779## @section Mongos parameters
783## ref: https://docs.mongodb.com/manual/reference/program/mongos/#bin.mongos
786 ## @param mongos.replicaCount Number of replicas
789 ## @param mongos.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if mongos.resources is set (mongos.resources is recommended for production).
790 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
792 resourcesPreset: "small"
793 ## @param mongos.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
802 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
805 ## @param mongos.automountServiceAccountToken Mount Service Account token in pod
807 automountServiceAccountToken: false
808 ## @param mongos.hostAliases Deployment pod host aliases
809 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
812 ## @param mongos.mongodbExtraFlags MongoDB® additional command line flags
813 ## Can be used to specify command line flags, for example:
814 ## mongodbExtraFlags:
815 ## - "--wiredTigerCacheSizeGB=2"
817 mongodbExtraFlags: []
818 ## @param mongos.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
819 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
821 topologySpreadConstraints: []
822 ## @param mongos.priorityClassName Pod priority class name
823 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
825 priorityClassName: ""
826 ## @param mongos.podAffinityPreset Mongos Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
827 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
829 podAffinityPreset: ""
830 ## @param mongos.podAntiAffinityPreset Mongos Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
831 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
833 podAntiAffinityPreset: soft
834 ## Node affinity preset
835 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
838 ## @param mongos.nodeAffinityPreset.type Mongos Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
841 ## @param mongos.nodeAffinityPreset.key Mongos Node label key to match Ignored if `affinity` is set.
843 ## key: "kubernetes.io/e2e-az-name"
846 ## @param mongos.nodeAffinityPreset.values Mongos Node label values to match. Ignored if `affinity` is set.
853 ## @param mongos.affinity Mongos Affinity for pod assignment
854 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
855 ## Note: mongos.podAffinityPreset, mongos.podAntiAffinityPreset, and mongos.nodeAffinityPreset will be ignored when it's set
858 ## @param mongos.nodeSelector Mongos Node labels for pod assignment
859 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
862 ## @param mongos.tolerations Mongos Tolerations for pod assignment
863 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
866 ## @param mongos.podManagementPolicy Statefulsets pod management policy, allows parallel startup of pods
867 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
869 podManagementPolicy: OrderedReady
870 ## @param mongos.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
871 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
875 ## @param mongos.config MongoDB® configuration file
876 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
879 ## @param mongos.configCM ConfigMap name with MongoDB® configuration file (cannot be used with mongos.config)
880 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
883 ## @param mongos.extraEnvVars An array to add extra env vars
886 ## - name: KIBANA_ELASTICSEARCH_URL
890 ## @param mongos.extraEnvVarsCM Name of a ConfigMap containing extra env vars
893 ## @param mongos.extraEnvVarsSecret Name of a Secret containing extra env vars
895 extraEnvVarsSecret: ""
896 ## @param mongos.sidecars Add sidecars to the pod
899 ## - name: your-image-name
901 ## imagePullPolicy: Always
904 ## containerPort: 1234
907 ## @param mongos.initContainers Add init containers to the pod
910 ## - name: your-image-name
912 ## imagePullPolicy: Always
915 ## @param mongos.podAnnotations Additional pod annotations
916 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
919 ## @param mongos.podLabels Additional pod labels
920 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
923 ## @param mongos.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
926 ## @param mongos.extraVolumeMounts Array to add extra volume mounts. Normally used with `extraVolumes`.
928 extraVolumeMounts: []
929 ## @param mongos.schedulerName Use an alternate scheduler, e.g. "stork".
930 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
933 ## @param mongos.useStatefulSet Use StatefulSet instead of Deployment
935 useStatefulSet: false
936 ## When using a statefulset, you can enable one service per replica
937 ## This is useful when exposing the mongos through load balancers to make sure clients
938 ## connect to the same mongos and therefore can follow their cursors
941 ## @param mongos.servicePerReplica.enabled Create one service per mongos replica (must be used with statefulset)
944 ## @param mongos.servicePerReplica.annotations Additional service annotations (evaluate as a template)
945 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
948 ## @param mongos.servicePerReplica.type Service type
949 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
952 ## @param mongos.servicePerReplica.externalTrafficPolicy External traffic policy
953 ## Enable client source IP preservation
954 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
956 externalTrafficPolicy: Cluster
957 ## @param mongos.servicePerReplica.port MongoDB® service port
960 ## @param mongos.servicePerReplica.clusterIPs Array of static clusterIPs for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
961 ## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
964 ## @param mongos.servicePerReplica.nodePorts Array of node ports used for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
965 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
968 ## @param mongos.servicePerReplica.externalIPs External IP list to use with ClusterIP service type
969 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
972 ## @param mongos.servicePerReplica.loadBalancerIPs Array of static IP Address to use for each replica LoadBalancer service type. Length must be the same as mongos.replicaCount
973 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
976 ## @param mongos.servicePerReplica.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
977 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
979 loadBalancerSourceRanges: []
980 ## @param mongos.servicePerReplica.extraPorts Extra ports to expose (normally used with the `sidecar` value)
983 ## @param mongos.servicePerReplica.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
984 ## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
985 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
987 sessionAffinity: None
988 ## @param mongos.servicePerReplica.sessionAffinityConfig Additional settings for the sessionAffinity
989 ## sessionAffinityConfig:
991 ## timeoutSeconds: 300
993 sessionAffinityConfig: {}
994 ## Pod disruption budget
997 ## @param mongos.pdb.create Enable pod disruption budget
1000 ## @param mongos.pdb.minAvailable Minimum number of available mongo pods allowed (`0` to disable)
1003 ## @param mongos.pdb.maxUnavailable Maximum number of unavailable mongo pods allowed (`0` to disable)
1006 ## K8s Service Account.
1007 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1010 ## @param mongos.serviceAccount.create Whether to create a Service Account for mongos automatically
1013 ## @param mongos.serviceAccount.name Name of a Service Account to be used by mongos
1014 ## If not set and create is true, a name is generated using the XXX.fullname template
1017 ## @param mongos.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1020 ## @param mongos.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1022 automountServiceAccountToken: false
1023 ## Configure Pods Security Context
1024 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1025 ## @param mongos.podSecurityContext.enabled Enable security context
1026 ## @param mongos.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1027 ## @param mongos.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1028 ## @param mongos.podSecurityContext.supplementalGroups Set filesystem extra groups
1029 ## @param mongos.podSecurityContext.fsGroup Group ID for the container
1033 fsGroupChangePolicy: Always
1035 supplementalGroups: []
1037 ## Configure Container Security Context
1038 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1039 ## @param mongos.containerSecurityContext.enabled Enabled containers' Security Context
1040 ## @param mongos.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1041 ## @param mongos.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1042 ## @param mongos.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1043 ## @param mongos.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1044 ## @param mongos.containerSecurityContext.privileged Set container's Security Context privileged
1045 ## @param mongos.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1046 ## @param mongos.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1047 ## @param mongos.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1048 ## @param mongos.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1050 containerSecurityContext:
1057 readOnlyRootFilesystem: true
1058 allowPrivilegeEscalation: false
1062 type: "RuntimeDefault"
1063 ## @param mongos.command Override default container command (useful when using custom images)
1066 ## @param mongos.args Override default container args (useful when using custom images)
1069 ## @param mongos.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1070 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1072 terminationGracePeriodSeconds: ""
1073 ## @param mongos.lifecycleHooks for the Mongo container(s) to automate configuration before or after startup
1076 ## Configure extra options for liveness probes
1077 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1078 ## @param mongos.livenessProbe.enabled Enable livenessProbe
1079 ## @param mongos.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1080 ## @param mongos.livenessProbe.periodSeconds Period seconds for livenessProbe
1081 ## @param mongos.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1082 ## @param mongos.livenessProbe.failureThreshold Failure threshold for livenessProbe
1083 ## @param mongos.livenessProbe.successThreshold Success threshold for livenessProbe
1087 initialDelaySeconds: 60
1092 ## Configure extra options for readiness probe
1093 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1094 ## @param mongos.readinessProbe.enabled Enable readinessProbe
1095 ## @param mongos.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1096 ## @param mongos.readinessProbe.periodSeconds Period seconds for readinessProbe
1097 ## @param mongos.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1098 ## @param mongos.readinessProbe.failureThreshold Failure threshold for readinessProbe
1099 ## @param mongos.readinessProbe.successThreshold Success threshold for readinessProbe
1103 initialDelaySeconds: 10
1108 ## Configure extra options for startup probe
1109 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1110 ## @param mongos.startupProbe.enabled Enable startupProbe
1111 ## @param mongos.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1112 ## @param mongos.startupProbe.periodSeconds Period seconds for startupProbe
1113 ## @param mongos.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1114 ## @param mongos.startupProbe.failureThreshold Failure threshold for startupProbe
1115 ## @param mongos.startupProbe.successThreshold Success threshold for startupProbe
1119 initialDelaySeconds: 0
1122 failureThreshold: 30
1124 ## @param mongos.customLivenessProbe Custom livenessProbe that overrides the default one
1126 customLivenessProbe: {}
1127 ## @param mongos.customReadinessProbe Custom readinessProbe that overrides the default one
1129 customReadinessProbe: {}
1130 ## @param mongos.customStartupProbe Custom startupProbe that overrides the default one
1132 customStartupProbe: {}
1133## @section Shard configuration: Data node parameters
1136## Shard replica set properties
1137## ref: https://docs.mongodb.com/manual/replication/index.html
1140 ## Properties for data nodes (primary and secondary)
1143 ## @param shardsvr.dataNode.replicaCount Number of nodes in each shard replica set (the first node will be primary)
1146 ## @param shardsvr.dataNode.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if shardsvr.dataNode.resources is set (shardsvr.dataNode.resources is recommended for production).
1147 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1149 resourcesPreset: "medium"
1150 ## @param shardsvr.dataNode.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1159 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1162 ## @param shardsvr.dataNode.mongodbExtraFlags MongoDB® additional command line flags
1163 ## Can be used to specify command line flags, for example:
1164 ## mongodbExtraFlags:
1165 ## - "--wiredTigerCacheSizeGB=2"
1167 mongodbExtraFlags: []
1168 ## @param shardsvr.dataNode.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1169 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1171 topologySpreadConstraints: []
1172 ## @param shardsvr.dataNode.priorityClassName Pod priority class name
1173 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1175 priorityClassName: ""
1176 ## @param shardsvr.dataNode.podAffinityPreset Data nodes Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1177 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1179 podAffinityPreset: ""
1180 ## @param shardsvr.dataNode.podAntiAffinityPreset Data nodes Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1181 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1183 podAntiAffinityPreset: soft
1184 ## Node affinity preset
1185 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1188 ## @param shardsvr.dataNode.nodeAffinityPreset.type Data nodes Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1191 ## @param shardsvr.dataNode.nodeAffinityPreset.key Data nodes Node label key to match Ignored if `affinity` is set.
1193 ## key: "kubernetes.io/e2e-az-name"
1196 ## @param shardsvr.dataNode.nodeAffinityPreset.values Data nodes Node label values to match. Ignored if `affinity` is set.
1203 ## @param shardsvr.dataNode.affinity Data nodes Affinity for pod assignment
1204 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1205 ## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'affinity' section:
1208 ## shard: "{{ .dataNodeLoopId }}"
1210 ## Note: shardsvr.dataNode.podAffinityPreset, shardsvr.dataNode.podAntiAffinityPreset, and shardsvr.dataNode.nodeAffinityPreset will be ignored when it's set
1213 ## @param shardsvr.dataNode.nodeSelector Data nodes Node labels for pod assignment
1214 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1215 ## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'nodeSelector' section:
1216 ## nodeSelector: { shardId: "{{ .dataNodeLoopId }}" }
1219 ## @param shardsvr.dataNode.tolerations Data nodes Tolerations for pod assignment
1220 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1221 ## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'nodeSelector' section:
1224 ## operator: "Equal"
1225 ## value: "{{ .dataNodeLoopId }}"
1226 ## effect: "NoSchedule"
1229 ## @param shardsvr.dataNode.podManagementPolicy podManagementPolicy for the statefulset, allows parallel startup of pods
1230 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1232 podManagementPolicy: OrderedReady
1233 ## @param shardsvr.dataNode.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
1234 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1238 ## @param shardsvr.dataNode.automountServiceAccountToken Mount Service Account token in pod
1240 automountServiceAccountToken: false
1241 ## @param shardsvr.dataNode.hostAliases Deployment pod host aliases
1242 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1245 ## @param shardsvr.dataNode.config Entries for the MongoDB® config file
1246 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1249 ## @param shardsvr.dataNode.configCM ConfigMap name with MongoDB® configuration (cannot be used with shardsvr.dataNode.config)
1250 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1253 ## @param shardsvr.dataNode.extraEnvVars An array to add extra env vars
1256 ## - name: KIBANA_ELASTICSEARCH_URL
1260 ## @param shardsvr.dataNode.extraEnvVarsCM Name of a ConfigMap containing extra env vars
1263 ## @param shardsvr.dataNode.extraEnvVarsSecret Name of a Secret containing extra env vars
1265 extraEnvVarsSecret: ""
1266 ## @param shardsvr.dataNode.sidecars Attach additional containers (evaluated as a template)
1269 ## - name: your-image-name
1270 ## image: your-image
1271 ## imagePullPolicy: Always
1274 ## containerPort: 1234
1277 ## @param shardsvr.dataNode.initContainers Add init containers to the pod
1280 ## - name: your-image-name
1281 ## image: your-image
1282 ## imagePullPolicy: Always
1285 ## @param shardsvr.dataNode.podAnnotations Additional pod annotations
1286 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1289 ## @param shardsvr.dataNode.podLabels Additional pod labels
1290 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1293 ## @param shardsvr.dataNode.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
1296 ## @param shardsvr.dataNode.extraVolumeMounts Array to add extra mounts. Normally used with `extraVolumes`
1298 extraVolumeMounts: []
1299 ## @param shardsvr.dataNode.schedulerName Use an alternate scheduler, e.g. "stork".
1300 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1303 ## Pod disruption budget
1306 ## @param shardsvr.dataNode.pdb.create Enable pod disruption budget
1309 ## @param shardsvr.dataNode.pdb.minAvailable Minimum number of available data pods allowed (`0` to disable)
1312 ## @param shardsvr.dataNode.pdb.maxUnavailable Maximum number of unavailable data pods allowed (`0` to disable)
1315 ## K8s Service Account.
1316 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1319 ## @param shardsvr.dataNode.serviceAccount.create Specifies whether a ServiceAccount should be created for shardsvr
1322 ## @param shardsvr.dataNode.serviceAccount.name Name of a Service Account to be used by shardsvr data pods
1323 ## If not set and create is true, a name is generated using the XXX.fullname template
1326 ## @param shardsvr.dataNode.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1329 ## @param shardsvr.dataNode.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1331 automountServiceAccountToken: false
1332 ## Configure Pods Security Context
1333 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1334 ## @param shardsvr.dataNode.podSecurityContext.enabled Enable security context
1335 ## @param shardsvr.dataNode.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1336 ## @param shardsvr.dataNode.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1337 ## @param shardsvr.dataNode.podSecurityContext.supplementalGroups Set filesystem extra groups
1338 ## @param shardsvr.dataNode.podSecurityContext.fsGroup Group ID for the container
1342 fsGroupChangePolicy: Always
1344 supplementalGroups: []
1346 ## Configure Container Security Context
1347 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1348 ## @param shardsvr.dataNode.containerSecurityContext.enabled Enabled containers' Security Context
1349 ## @param shardsvr.dataNode.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1350 ## @param shardsvr.dataNode.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1351 ## @param shardsvr.dataNode.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1352 ## @param shardsvr.dataNode.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1353 ## @param shardsvr.dataNode.containerSecurityContext.privileged Set container's Security Context privileged
1354 ## @param shardsvr.dataNode.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1355 ## @param shardsvr.dataNode.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1356 ## @param shardsvr.dataNode.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1357 ## @param shardsvr.dataNode.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1359 containerSecurityContext:
1366 readOnlyRootFilesystem: true
1367 allowPrivilegeEscalation: false
1371 type: "RuntimeDefault"
1372 ## @param shardsvr.dataNode.command Override default container command (useful when using custom images)
1376 - /entrypoint/replicaset-entrypoint.sh
1377 ## @param shardsvr.dataNode.args Override default container args (useful when using custom images)
1380 ## @param shardsvr.dataNode.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1381 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1383 terminationGracePeriodSeconds: ""
1384 ## @param shardsvr.dataNode.lifecycleHooks for the Data container(s) to automate configuration before or after startup
1387 ## Configure extra options for liveness probes
1388 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1389 ## @param shardsvr.dataNode.livenessProbe.enabled Enable livenessProbe
1390 ## @param shardsvr.dataNode.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1391 ## @param shardsvr.dataNode.livenessProbe.periodSeconds Period seconds for livenessProbe
1392 ## @param shardsvr.dataNode.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1393 ## @param shardsvr.dataNode.livenessProbe.failureThreshold Failure threshold for livenessProbe
1394 ## @param shardsvr.dataNode.livenessProbe.successThreshold Success threshold for livenessProbe
1398 initialDelaySeconds: 60
1403 ## Configure extra options for readiness probe
1404 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1405 ## @param shardsvr.dataNode.readinessProbe.enabled Enable readinessProbe
1406 ## @param shardsvr.dataNode.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1407 ## @param shardsvr.dataNode.readinessProbe.periodSeconds Period seconds for readinessProbe
1408 ## @param shardsvr.dataNode.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1409 ## @param shardsvr.dataNode.readinessProbe.failureThreshold Failure threshold for readinessProbe
1410 ## @param shardsvr.dataNode.readinessProbe.successThreshold Success threshold for readinessProbe
1414 initialDelaySeconds: 10
1419 ## Configure extra options for startup probe
1420 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1421 ## @param shardsvr.dataNode.startupProbe.enabled Enable startupProbe
1422 ## @param shardsvr.dataNode.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1423 ## @param shardsvr.dataNode.startupProbe.periodSeconds Period seconds for startupProbe
1424 ## @param shardsvr.dataNode.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1425 ## @param shardsvr.dataNode.startupProbe.failureThreshold Failure threshold for startupProbe
1426 ## @param shardsvr.dataNode.startupProbe.successThreshold Success threshold for startupProbe
1430 initialDelaySeconds: 0
1433 failureThreshold: 30
1435 ## @param shardsvr.dataNode.customLivenessProbe Custom livenessProbe that overrides the default one
1437 customLivenessProbe: {}
1438 ## @param shardsvr.dataNode.customReadinessProbe Custom readinessProbe that overrides the default one
1440 customReadinessProbe: {}
1441 ## @param shardsvr.dataNode.customStartupProbe Custom startupProbe that overrides the default one
1443 customStartupProbe: {}
1444 ## @section Shard configuration: Persistence parameters
1447 ## Enable persistence using Persistent Volume Claims
1448 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1451 ## @param shardsvr.persistence.enabled Use a PVC to persist data
1454 ## @param shardsvr.persistence.mountPath The path the volume will be mounted at, useful when using different MongoDB® images.
1456 mountPath: /iamguarded/mongodb
1457 ## @param shardsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
1458 ## Useful in development environments and one PV for multiple services.
1461 ## @param shardsvr.persistence.storageClass Storage class of backing PVC
1462 ## If defined, storageClassName: <storageClass>
1463 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1464 ## If undefined (the default) or set to null, no storageClassName spec is
1465 ## set, choosing the default provisioner. (gp2 on AWS, standard on
1466 ## GKE, AWS & OpenStack)
1469 ## @param shardsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
1473 ## @param shardsvr.persistence.size PersistentVolumeClaim size
1476 ## @param shardsvr.persistence.annotations Additional volume annotations
1477 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1480 ## @param shardsvr.persistence.selector Selector to match an existing Persistent Volume for Shard data PVC
1481 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1482 ## Selector can be defined with static and dynamic options:
1486 ## shard: shard{{ .Index }}
1488 ## shard{{ .Index }} will be substituted to shard0, shard1 accordingly
1491 ## Persistent Volume Claim Retention Policy
1492 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1494 persistentVolumeClaimRetentionPolicy:
1495 ## @param shardsvr.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Shard replicas StatefulSet
1498 ## @param shardsvr.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1501 ## @param shardsvr.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1504 ## @section Shard configuration: Arbiter parameters
1507 ## Properties for arbiter nodes
1508 ## ref: https://docs.mongodb.com/manual/tutorial/add-replica-set-arbiter/
1511 ## @param shardsvr.arbiter.replicaCount Number of arbiters in each shard replica set (the first node will be primary)
1514 ## @param shardsvr.arbiter.automountServiceAccountToken Mount Service Account token in pod
1516 automountServiceAccountToken: false
1517 ## @param shardsvr.arbiter.hostAliases Deployment pod host aliases
1518 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1521 ## @param shardsvr.arbiter.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if shardsvr.arbiter.resources is set (shardsvr.arbiter.resources is recommended for production).
1522 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1524 resourcesPreset: "small"
1525 ## @param shardsvr.arbiter.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1534 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1537 ## @param shardsvr.arbiter.mongodbExtraFlags MongoDB® additional command line flags
1538 ## Can be used to specify command line flags, for example:
1539 ## mongodbExtraFlags:
1540 ## - "--wiredTigerCacheSizeGB=2"
1542 mongodbExtraFlags: []
1543 ## @param shardsvr.arbiter.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1544 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1546 topologySpreadConstraints: []
1547 ## @param shardsvr.arbiter.priorityClassName Pod priority class name
1548 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1550 priorityClassName: ""
1551 ## @param shardsvr.arbiter.podAffinityPreset Arbiter's Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1552 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1554 podAffinityPreset: ""
1555 ## @param shardsvr.arbiter.podAntiAffinityPreset Arbiter's Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1556 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1558 podAntiAffinityPreset: soft
1559 ## Node affinity preset
1560 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1563 ## @param shardsvr.arbiter.nodeAffinityPreset.type Arbiter's Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1566 ## @param shardsvr.arbiter.nodeAffinityPreset.key Arbiter's Node label key to match Ignored if `affinity` is set.
1568 ## key: "kubernetes.io/e2e-az-name"
1571 ## @param shardsvr.arbiter.nodeAffinityPreset.values Arbiter's Node label values to match. Ignored if `affinity` is set.
1578 ## @param shardsvr.arbiter.affinity Arbiter's Affinity for pod assignment
1579 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1580 ## You can set arbiterLoopId (or any other parameter) by setting the below code block under this 'affinity' section:
1583 ## shard: "{{ .arbiterLoopId }}"
1585 ## Note: shardsvr.arbiter.podAffinityPreset, shardsvr.arbiter.podAntiAffinityPreset, and shardsvr.arbiter.nodeAffinityPreset will be ignored when it's set
1588 ## @param shardsvr.arbiter.nodeSelector Arbiter's Node labels for pod assignment
1589 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1592 ## @param shardsvr.arbiter.tolerations Arbiter's Tolerations for pod assignment
1593 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1596 ## @param shardsvr.arbiter.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
1597 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1599 podManagementPolicy: OrderedReady
1600 ## @param shardsvr.arbiter.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
1601 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1605 ## @param shardsvr.arbiter.config MongoDB® configuration file
1606 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1609 ## @param shardsvr.arbiter.configCM ConfigMap name with MongoDB® configuration file (cannot be used with shardsvr.arbiter.config)
1610 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1613 ## @param shardsvr.arbiter.extraEnvVars An array to add extra env vars
1616 ## - name: KIBANA_ELASTICSEARCH_URL
1620 ## @param shardsvr.arbiter.extraEnvVarsCM Name of a ConfigMap containing extra env vars
1623 ## @param shardsvr.arbiter.extraEnvVarsSecret Name of a Secret containing extra env vars
1625 extraEnvVarsSecret: ""
1626 ## @param shardsvr.arbiter.sidecars Add sidecars to the pod
1629 ## - name: your-image-name
1630 ## image: your-image
1631 ## imagePullPolicy: Always
1634 ## containerPort: 1234
1637 ## @param shardsvr.arbiter.initContainers Add init containers to the pod
1640 ## - name: your-image-name
1641 ## image: your-image
1642 ## imagePullPolicy: Always
1645 ## @param shardsvr.arbiter.podAnnotations Additional pod annotations
1646 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1649 ## @param shardsvr.arbiter.podLabels Additional pod labels
1650 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1653 ## @param shardsvr.arbiter.extraVolumes Array to add extra volumes
1656 ## @param shardsvr.arbiter.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
1658 extraVolumeMounts: []
1659 ## @param shardsvr.arbiter.schedulerName Use an alternate scheduler, e.g. "stork".
1660 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1663 ## K8s Service Account.
1664 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1667 ## @param shardsvr.arbiter.serviceAccount.create Specifies whether a ServiceAccount should be created for shardsvr arbiter nodes
1670 ## @param shardsvr.arbiter.serviceAccount.name Name of a Service Account to be used by shardsvr arbiter pods
1671 ## If not set and create is true, a name is generated using the XXX.fullname template
1674 ## @param shardsvr.arbiter.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1677 ## @param shardsvr.arbiter.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1679 automountServiceAccountToken: false
1680 ## Configure Pods Security Context
1681 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1682 ## @param shardsvr.arbiter.podSecurityContext.enabled Enable security context
1683 ## @param shardsvr.arbiter.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1684 ## @param shardsvr.arbiter.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1685 ## @param shardsvr.arbiter.podSecurityContext.supplementalGroups Set filesystem extra groups
1686 ## @param shardsvr.arbiter.podSecurityContext.fsGroup Group ID for the container
1690 fsGroupChangePolicy: Always
1692 supplementalGroups: []
1694 ## Configure Container Security Context
1695 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1696 ## @param shardsvr.arbiter.containerSecurityContext.enabled Enabled containers' Security Context
1697 ## @param shardsvr.arbiter.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1698 ## @param shardsvr.arbiter.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1699 ## @param shardsvr.arbiter.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1700 ## @param shardsvr.arbiter.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1701 ## @param shardsvr.arbiter.containerSecurityContext.privileged Set container's Security Context privileged
1702 ## @param shardsvr.arbiter.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1703 ## @param shardsvr.arbiter.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1704 ## @param shardsvr.arbiter.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1705 ## @param shardsvr.arbiter.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1707 containerSecurityContext:
1714 readOnlyRootFilesystem: true
1715 allowPrivilegeEscalation: false
1719 type: "RuntimeDefault"
1720 ## @param shardsvr.arbiter.command Override default container command (useful when using custom images)
1723 ## @param shardsvr.arbiter.args Override default container args (useful when using custom images)
1726 ## @param shardsvr.arbiter.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1727 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1729 terminationGracePeriodSeconds: ""
1730 ## @param shardsvr.arbiter.lifecycleHooks for the arbiter container(s) to automate configuration before or after startup
1733 ## Configure extra options for liveness probes
1734 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1735 ## @param shardsvr.arbiter.livenessProbe.enabled Enable livenessProbe
1736 ## @param shardsvr.arbiter.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1737 ## @param shardsvr.arbiter.livenessProbe.periodSeconds Period seconds for livenessProbe
1738 ## @param shardsvr.arbiter.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1739 ## @param shardsvr.arbiter.livenessProbe.failureThreshold Failure threshold for livenessProbe
1740 ## @param shardsvr.arbiter.livenessProbe.successThreshold Success threshold for livenessProbe
1744 initialDelaySeconds: 60
1749 ## Configure extra options for readiness probe
1750 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1751 ## @param shardsvr.arbiter.readinessProbe.enabled Enable readinessProbe
1752 ## @param shardsvr.arbiter.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1753 ## @param shardsvr.arbiter.readinessProbe.periodSeconds Period seconds for readinessProbe
1754 ## @param shardsvr.arbiter.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1755 ## @param shardsvr.arbiter.readinessProbe.failureThreshold Failure threshold for readinessProbe
1756 ## @param shardsvr.arbiter.readinessProbe.successThreshold Success threshold for readinessProbe
1760 initialDelaySeconds: 10
1765 ## Configure extra options for startup probe
1766 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1767 ## @param shardsvr.arbiter.startupProbe.enabled Enable startupProbe
1768 ## @param shardsvr.arbiter.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1769 ## @param shardsvr.arbiter.startupProbe.periodSeconds Period seconds for startupProbe
1770 ## @param shardsvr.arbiter.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1771 ## @param shardsvr.arbiter.startupProbe.failureThreshold Failure threshold for startupProbe
1772 ## @param shardsvr.arbiter.startupProbe.successThreshold Success threshold for startupProbe
1776 initialDelaySeconds: 0
1779 failureThreshold: 30
1781 ## @param shardsvr.arbiter.customLivenessProbe Custom livenessProbe that overrides the default one
1783 customLivenessProbe: {}
1784 ## @param shardsvr.arbiter.customReadinessProbe Custom readinessProbe that overrides the default one
1786 customReadinessProbe: {}
1787 ## @param shardsvr.arbiter.customStartupProbe Custom startupProbe that overrides the default one
1789 customStartupProbe: {}
1790## @section Metrics parameters
1794 ## @param metrics.enabled Start a side-car prometheus exporter
1797 ## @param metrics.image.registry [default: REGISTRY_NAME] MongoDB® exporter image registry
1798 ## @param metrics.image.repository [default: REPOSITORY_NAME/mongodb-exporter] MongoDB® exporter image name
1799 ## @skip metrics.image.tag MongoDB® exporter image tag
1800 ## @param metrics.image.digest MongoDB® exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1801 ## @param metrics.image.pullPolicy MongoDB® exporter image pull policy
1802 ## @param metrics.image.pullSecrets MongoDB® exporter image pull secrets
1806 repository: chainguard-private/prometheus-mongodb-exporter-iamguarded
1810 ## Optionally specify an array of imagePullSecrets.
1811 ## Secrets must be manually created in the namespace.
1812 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1815 ## - myRegistryKeySecretName
1818 ## @param metrics.useTLS Whether to connect to MongoDB® with TLS
1821 ## @param metrics.extraArgs String with extra arguments to the metrics exporter
1822 ## ref: https://github.com/percona/mongodb_exporter/blob/main/main.go
1825 ## @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).
1826 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1828 resourcesPreset: "nano"
1829 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1838 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1841 ## Configure Container Security Context
1842 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1843 ## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1844 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1845 ## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1846 ## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1847 ## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1848 ## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1849 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1850 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1851 ## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1852 ## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1854 containerSecurityContext:
1861 readOnlyRootFilesystem: true
1862 allowPrivilegeEscalation: false
1866 type: "RuntimeDefault"
1867 ## Metrics exporter liveness probe
1868 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
1869 ## @param metrics.livenessProbe.enabled Enable livenessProbe
1870 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1871 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1872 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1873 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1874 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1878 initialDelaySeconds: 15
1883 ## Metrics exporter liveness and readiness probes
1884 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
1885 ## @param metrics.readinessProbe.enabled Enable readinessProbe
1886 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1887 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1888 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1889 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1890 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1894 initialDelaySeconds: 5
1899 ## Configure extra options for startup probe
1900 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1901 ## @param metrics.startupProbe.enabled Enable startupProbe
1902 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1903 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1904 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1905 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1906 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1910 initialDelaySeconds: 0
1913 failureThreshold: 15
1915 ## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1917 customLivenessProbe: {}
1918 ## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1920 customReadinessProbe: {}
1921 ## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1923 customStartupProbe: {}
1924 ## @param metrics.containerPorts.metrics Port of the Prometheus metrics container
1928 ## @param metrics.podAnnotations [object] Metrics exporter pod Annotation
1931 prometheus.io/scrape: "true"
1932 prometheus.io/port: "{{ .Values.metrics.containerPort }}"
1933 ## Prometheus Service Monitor
1934 ## ref: https://github.com/coreos/prometheus-operator
1935 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1938 ## @param metrics.podMonitor.enabled Create PodMonitor Resource for scraping metrics using PrometheusOperator
1941 ## @param metrics.podMonitor.namespace Namespace where podmonitor resource should be created
1943 namespace: monitoring
1944 ## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
1947 ## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1949 ## scrapeTimeout: 30s
1952 ## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitors will be discovered by Prometheus
1953 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
1955 additionalLabels: {}