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
27 ## - myRegistryKeySecretName
30 defaultStorageClass: ""
32 ## Security parameters
35 ## @param global.security.allowInsecureImages Allows skipping image verification
36 allowInsecureImages: false
37 ## Compatibility adaptations for Kubernetes platforms
40 ## Compatibility adaptations for Openshift
43 ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
45 adaptSecurityContext: auto
47## @section Common parameters
50## @param kubeVersion Override Kubernetes version
53## @param nameOverride String to partially override common.names.name
56## @param fullnameOverride String to fully override common.names.fullname
59## @param namespaceOverride String to fully override common.names.namespace
62## @param commonLabels Labels to add to all deployed objects
65## @param commonAnnotations Annotations to add to all deployed objects
68## @param clusterDomain Kubernetes cluster domain name
70clusterDomain: cluster.local
71## @param extraDeploy Array of extra objects to deploy with the release
74## Enable diagnostic mode in the deployment
77 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
80 ## @param diagnosticMode.command Command to override all containers in the deployment
84 ## @param diagnosticMode.args Args to override all containers in the deployment
88## @section MongoDB(®) Sharded parameters
91## Iamguarded MongoDB(®) Sharded image version
92## @param image.registry [default: REGISTRY_NAME] MongoDB(®) Sharded image registry
93## @param image.repository [default: REPOSITORY_NAME/mongodb-sharded] MongoDB(®) Sharded Image name
94## @skip image.tag MongoDB(®) Sharded image tag (immutable tags are recommended)
95## @param image.digest MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
96## @param image.pullPolicy MongoDB(®) Sharded image pull policy
97## @param image.pullSecrets Specify docker-registry secret names as an array
98## @param image.debug Specify if debug logs should be enabled
102 repository: chainguard-private/mongodb-sharded-iamguarded
105 ## Specify a imagePullPolicy
106 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
108 pullPolicy: IfNotPresent
109 ## Optionally specify an array of imagePullSecrets.
110 ## Secrets must be manually created in the namespace.
111 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
114 ## - myRegistryKeySecretName
117 ## Set to true if you would like to see extra information on logs
120## MongoDB(®) Authentication parameters
123 ## @param auth.enabled Enable authentication
124 ## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
127 ## @param auth.rootUser MongoDB(®) root user
130 ## @param auth.rootPassword MongoDB(®) root password
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®
159 mongodbEnableIPv6: false
160 ## @param common.mongodbDirectoryPerDB Switch to enable/disable DirectoryPerDB on MongoDB®
162 mongodbDirectoryPerDB: false
163 ## @param common.mongodbSystemLogVerbosity MongoDB® system log verbosity level
164 ## ref: https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption-mongo-ipv6
166 mongodbSystemLogVerbosity: 0
167 ## @param common.mongodbDisableSystemLog Whether to disable MongoDB® system log or not
169 mongodbDisableSystemLog: false
170 ## @param common.mongodbInitRetryAttempts Maximum retries for checking the MongoDB® initialization status
172 mongodbInitRetryAttempts: 24
173 ## @param common.mongodbInitRetryDelay Time (in seconds) to wait between retries for checking the MongoDB® initialization status
175 mongodbInitRetryDelay: 5
176 ## @param common.initScriptsCM Configmap with init scripts to execute
179 ## @param common.initScriptsSecret Secret with init scripts to execute (for sensitive data)
181 initScriptsSecret: ""
182 ## @param common.extraEnvVars An array to add extra env vars
185 ## - name: KIBANA_ELASTICSEARCH_URL
189 ## @param common.extraEnvVarsCM Name of a ConfigMap containing extra env vars
192 ## @param common.extraEnvVarsSecret Name of a Secret containing extra env vars
194 extraEnvVarsSecret: ""
195 ## @param common.sidecars Add sidecars to the pod
198 ## - name: your-image-name
200 ## imagePullPolicy: Always
203 ## containerPort: 1234
206 ## @param common.initContainers Add init containers to the pod
209 ## - name: your-image-name
211 ## imagePullPolicy: Always
214 ## @param common.podAnnotations Additional pod annotations
215 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
218 ## @param common.podLabels Additional pod labels
219 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
222 ## @param common.extraVolumes Array to add extra volumes
225 ## @param common.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
227 extraVolumeMounts: []
228 ## @param common.containerPorts.mongodb MongoDB container port
232 ## K8s Service Account.
233 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
236 ## @param common.serviceAccount.create Whether to create a Service Account for all pods automatically
239 ## @param common.serviceAccount.name Name of a Service Account to be used by all Pods
240 ## If not set and create is true, a name is generated using the XXX.fullname template
243 ## @param common.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
246 ## @param common.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
248 automountServiceAccountToken: false
249## Init containers parameters:
250## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
253 ## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
256 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
257 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
258 ## @skip volumePermissions.image.tag Init container volume-permissions image tag
259 ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
260 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
261 ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets
265 repository: chainguard-private/os-shell-iamguarded
268 pullPolicy: IfNotPresent
269 ## Optionally specify an array of imagePullSecrets.
270 ## Secrets must be manually created in the namespace.
271 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
274 ## - myRegistryKeySecretName
277 ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
279 resourcesPreset: "nano"
280 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
291## Kubernetes service type
292## ref: https://kubernetes.io/docs/concepts/services-networking/service/
295 ## @param service.name Specify an explicit service name
298 ## @param service.annotations Additional service annotations (evaluate as a template)
299 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
302 ## @param service.type Service type
303 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
306 ## @param service.externalTrafficPolicy External traffic policy
307 ## Enable client source IP preservation
308 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
310 externalTrafficPolicy: Cluster
311 ## @param service.ports.mongodb MongoDB® service port
315 ## @param service.clusterIP Static clusterIP or None for headless services
316 ## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
319 ## @param service.nodePorts.mongodb Specify the nodePort value for the LoadBalancer and NodePort service types.
320 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
324 ## @param service.nodePorts.metrics Specify the metrics nodePort value for the LoadBalancer and NodePort service types.
327 ## @param service.externalIPs External IP list to use with ClusterIP service type
328 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
331 ## @param service.loadBalancerIP Static IP Address to use for LoadBalancer service type
332 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
335 ## @param service.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
336 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
338 loadBalancerSourceRanges: []
339 ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
342 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
343 ## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
344 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
346 sessionAffinity: None
347 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
348 ## sessionAffinityConfig:
350 ## timeoutSeconds: 300
352 sessionAffinityConfig: {}
353 ## Headless service properties
356 ## @param service.headless.annotations Annotations for the headless service.
360## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
363 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
366 ## @param networkPolicy.allowExternal Don't require server label for connections
367 ## The Policy model to apply. When set to false, only pods with the correct
368 ## server label will have network access to the ports server is listening
369 ## on. When true, server will accept connections from any source
370 ## (with the correct destination port).
373 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
375 allowExternalEgress: true
376 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
386 ## - matchExpressions:
392 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
402 ## - matchExpressions:
409 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
410 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
412 ingressNSMatchLabels: {}
413 ingressNSPodMatchLabels: {}
414## @section Config Server parameters
417## Config Server replica set properties
418## ref: https://docs.mongodb.com/manual/core/sharded-cluster-config-servers/
421 ## @param configsvr.replicaCount Number of nodes in the replica set (the first node will be primary)
424 ## @param configsvr.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if configsvr.resources is set (configsvr.resources is recommended for production).
426 resourcesPreset: "small"
427 ## @param configsvr.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
436 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
439 ## @param configsvr.automountServiceAccountToken Mount Service Account token in pod
441 automountServiceAccountToken: false
442 ## @param configsvr.hostAliases Deployment pod host aliases
443 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
446 ## @param configsvr.mongodbExtraFlags MongoDB® additional command line flags
447 ## Can be used to specify command line flags, for example:
448 ## mongodbExtraFlags:
449 ## - "--wiredTigerCacheSizeGB=2"
451 mongodbExtraFlags: []
452 ## @param configsvr.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
453 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
455 topologySpreadConstraints: []
456 ## @param configsvr.priorityClassName Pod priority class name
457 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
459 priorityClassName: ""
460 ## @param configsvr.podAffinityPreset Config Server Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
461 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
463 podAffinityPreset: ""
464 ## @param configsvr.podAntiAffinityPreset Config Server Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
465 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
467 podAntiAffinityPreset: soft
468 ## Node affinity preset
469 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
472 ## @param configsvr.nodeAffinityPreset.type Config Server Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
475 ## @param configsvr.nodeAffinityPreset.key Config Server Node label key to match Ignored if `affinity` is set.
477 ## key: "kubernetes.io/e2e-az-name"
480 ## @param configsvr.nodeAffinityPreset.values Config Server Node label values to match. Ignored if `affinity` is set.
487 ## @param configsvr.affinity Config Server Affinity for pod assignment
488 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
489 ## Note: configsvr.podAffinityPreset, configsvr.podAntiAffinityPreset, and configsvr.nodeAffinityPreset will be ignored when it's set
492 ## @param configsvr.nodeSelector Config Server Node labels for pod assignment
493 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
496 ## @param configsvr.tolerations Config Server Tolerations for pod assignment
497 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
500 ## @param configsvr.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
501 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
503 podManagementPolicy: OrderedReady
504 ## @param configsvr.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
505 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
509 ## @param configsvr.config MongoDB® configuration file
510 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
513 ## @param configsvr.configCM ConfigMap name with Config Server configuration file (cannot be used with configsvr.config)
514 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
517 ## @param configsvr.extraEnvVars An array to add extra env vars
520 ## - name: KIBANA_ELASTICSEARCH_URL
524 ## @param configsvr.extraEnvVarsCM Name of a ConfigMap containing extra env vars
527 ## @param configsvr.extraEnvVarsSecret Name of a Secret containing extra env vars
529 extraEnvVarsSecret: ""
530 ## @param configsvr.sidecars Add sidecars to the pod
533 ## - name: your-image-name
535 ## imagePullPolicy: Always
538 ## containerPort: 1234
541 ## @param configsvr.initContainers Add init containers to the pod
544 ## - name: your-image-name
546 ## imagePullPolicy: Always
549 ## @param configsvr.podAnnotations Additional pod annotations
550 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
553 ## @param configsvr.podLabels Additional pod labels
554 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
557 ## @param configsvr.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
560 ## @param configsvr.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes). Normally used with `extraVolumes`
562 extraVolumeMounts: []
563 ## @param configsvr.schedulerName Use an alternate scheduler, e.g. "stork".
564 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
567 ## Pod disruption budget
570 ## @param configsvr.pdb.create Enable pod disruption budget
573 ## @param configsvr.pdb.minAvailable Minimum number of available config pods allowed (`0` to disable)
576 ## @param configsvr.pdb.maxUnavailable Maximum number of unavailable config pods allowed (`0` to disable)
579 ## Enable persistence using Persistent Volume Claims
580 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
583 ## @param configsvr.persistence.enabled Use a PVC to persist data
586 ## @param configsvr.persistence.mountPath Path to mount the volume at
587 ## MongoDB® images.
589 mountPath: /iamguarded/mongodb
590 ## @param configsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
591 ## Useful in dev environments and one PV for multiple services.
594 ## @param configsvr.persistence.storageClass Storage class of backing PVC
595 ## If defined, storageClassName: <storageClass>
596 ## If set to "-", storageClassName: "", which disables dynamic provisioning
597 ## If undefined (the default) or set to null, no storageClassName spec is
598 ## set, choosing the default provisioner. (gp2 on AWS, standard on
599 ## GKE, AWS & OpenStack)
602 ## @param configsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
606 ## @param configsvr.persistence.size PersistentVolumeClaim size
609 ## @param configsvr.persistence.annotations Persistent Volume annotations
610 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
613 ## @param configsvr.persistence.selector Selector to match an existing Persistent Volume for Config Server data PVC
614 ## A label query over volumes to consider for binding (e.g. when using local volumes)
617 ## Persistent Volume Claim Retention Policy
618 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
620 persistentVolumeClaimRetentionPolicy:
621 ## @param configsvr.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Config Server StatefulSet
624 ## @param configsvr.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
627 ## @param configsvr.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
630 ## K8s Service Account.
631 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
634 ## @param configsvr.serviceAccount.create Specifies whether a ServiceAccount should be created for Config Server
637 ## @param configsvr.serviceAccount.name Name of a Service Account to be used by Config Server
638 ## If not set and create is true, a name is generated using the XXX.fullname template
641 ## @param configsvr.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
644 ## @param configsvr.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
646 automountServiceAccountToken: false
647 ## Use a external config server instead of deploying one
650 ## @param configsvr.external.host Primary node of an external Config Server replicaset
653 ## @param configsvr.external.rootPassword Root password of the external Config Server replicaset
656 ## @param configsvr.external.replicasetName Replicaset name of an external Config Server
659 ## @param configsvr.external.replicasetKey Replicaset key of an external Config Server
662 ## Configure Pods Security Context
663 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
664 ## @param configsvr.podSecurityContext.enabled Enable security context
665 ## @param configsvr.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
666 ## @param configsvr.podSecurityContext.sysctls Set kernel settings using the sysctl interface
667 ## @param configsvr.podSecurityContext.supplementalGroups Set filesystem extra groups
668 ## @param configsvr.podSecurityContext.fsGroup Group ID for the container
672 fsGroupChangePolicy: Always
674 supplementalGroups: []
676 ## Configure Container Security Context
677 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
678 ## @param configsvr.containerSecurityContext.enabled Enabled containers' Security Context
679 ## @param configsvr.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
680 ## @param configsvr.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
681 ## @param configsvr.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
682 ## @param configsvr.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
683 ## @param configsvr.containerSecurityContext.privileged Set container's Security Context privileged
684 ## @param configsvr.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
685 ## @param configsvr.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
686 ## @param configsvr.containerSecurityContext.capabilities.drop List of capabilities to be dropped
687 ## @param configsvr.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
689 containerSecurityContext:
696 readOnlyRootFilesystem: true
697 allowPrivilegeEscalation: false
701 type: "RuntimeDefault"
702 ## @param configsvr.command Override default container command (useful when using custom images)
706 - /entrypoint/replicaset-entrypoint.sh
707 ## @param configsvr.args Override default container args (useful when using custom images)
710 ## @param configsvr.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
711 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
713 terminationGracePeriodSeconds: ""
714 ## @param configsvr.lifecycleHooks for the Config Server container(s) to automate configuration before or after startup
717 ## Configure extra options for liveness probes
718 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
719 ## @param configsvr.livenessProbe.enabled Enable livenessProbe
720 ## @param configsvr.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
721 ## @param configsvr.livenessProbe.periodSeconds Period seconds for livenessProbe
722 ## @param configsvr.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
723 ## @param configsvr.livenessProbe.failureThreshold Failure threshold for livenessProbe
724 ## @param configsvr.livenessProbe.successThreshold Success threshold for livenessProbe
728 initialDelaySeconds: 60
733 ## Configure extra options for readiness probe
734 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
735 ## @param configsvr.readinessProbe.enabled Enable readinessProbe
736 ## @param configsvr.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
737 ## @param configsvr.readinessProbe.periodSeconds Period seconds for readinessProbe
738 ## @param configsvr.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
739 ## @param configsvr.readinessProbe.failureThreshold Failure threshold for readinessProbe
740 ## @param configsvr.readinessProbe.successThreshold Success threshold for readinessProbe
744 initialDelaySeconds: 10
749 ## Configure extra options for startup probe
750 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
751 ## @param configsvr.startupProbe.enabled Enable startupProbe
752 ## @param configsvr.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
753 ## @param configsvr.startupProbe.periodSeconds Period seconds for startupProbe
754 ## @param configsvr.startupProbe.timeoutSeconds Timeout seconds for startupProbe
755 ## @param configsvr.startupProbe.failureThreshold Failure threshold for startupProbe
756 ## @param configsvr.startupProbe.successThreshold Success threshold for startupProbe
760 initialDelaySeconds: 0
765 ## @param configsvr.customLivenessProbe Custom livenessProbe that overrides the default one
767 customLivenessProbe: {}
768 ## @param configsvr.customReadinessProbe Custom readinessProbe that overrides the default one
770 customReadinessProbe: {}
771 ## @param configsvr.customStartupProbe Custom startupProbe that overrides the default one
773 customStartupProbe: {}
774## @section Mongos parameters
778## ref: https://docs.mongodb.com/manual/reference/program/mongos/#bin.mongos
781 ## @param mongos.replicaCount Number of replicas
784 ## @param mongos.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if mongos.resources is set (mongos.resources is recommended for production).
786 resourcesPreset: "small"
787 ## @param mongos.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
796 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
799 ## @param mongos.automountServiceAccountToken Mount Service Account token in pod
801 automountServiceAccountToken: false
802 ## @param mongos.hostAliases Deployment pod host aliases
803 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
806 ## @param mongos.mongodbExtraFlags MongoDB® additional command line flags
807 ## Can be used to specify command line flags, for example:
808 ## mongodbExtraFlags:
809 ## - "--wiredTigerCacheSizeGB=2"
811 mongodbExtraFlags: []
812 ## @param mongos.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
813 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
815 topologySpreadConstraints: []
816 ## @param mongos.priorityClassName Pod priority class name
817 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
819 priorityClassName: ""
820 ## @param mongos.podAffinityPreset Mongos Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
821 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
823 podAffinityPreset: ""
824 ## @param mongos.podAntiAffinityPreset Mongos Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
825 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
827 podAntiAffinityPreset: soft
828 ## Node affinity preset
829 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
832 ## @param mongos.nodeAffinityPreset.type Mongos Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
835 ## @param mongos.nodeAffinityPreset.key Mongos Node label key to match Ignored if `affinity` is set.
837 ## key: "kubernetes.io/e2e-az-name"
840 ## @param mongos.nodeAffinityPreset.values Mongos Node label values to match. Ignored if `affinity` is set.
847 ## @param mongos.affinity Mongos Affinity for pod assignment
848 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
849 ## Note: mongos.podAffinityPreset, mongos.podAntiAffinityPreset, and mongos.nodeAffinityPreset will be ignored when it's set
852 ## @param mongos.nodeSelector Mongos Node labels for pod assignment
853 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
856 ## @param mongos.tolerations Mongos Tolerations for pod assignment
857 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
860 ## @param mongos.podManagementPolicy Statefulsets pod management policy, allows parallel startup of pods
861 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
863 podManagementPolicy: OrderedReady
864 ## @param mongos.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
865 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
869 ## @param mongos.config MongoDB® configuration file
870 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
873 ## @param mongos.configCM ConfigMap name with MongoDB® configuration file (cannot be used with mongos.config)
874 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
877 ## @param mongos.extraEnvVars An array to add extra env vars
880 ## - name: KIBANA_ELASTICSEARCH_URL
884 ## @param mongos.extraEnvVarsCM Name of a ConfigMap containing extra env vars
887 ## @param mongos.extraEnvVarsSecret Name of a Secret containing extra env vars
889 extraEnvVarsSecret: ""
890 ## @param mongos.sidecars Add sidecars to the pod
893 ## - name: your-image-name
895 ## imagePullPolicy: Always
898 ## containerPort: 1234
901 ## @param mongos.initContainers Add init containers to the pod
904 ## - name: your-image-name
906 ## imagePullPolicy: Always
909 ## @param mongos.podAnnotations Additional pod annotations
910 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
913 ## @param mongos.podLabels Additional pod labels
914 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
917 ## @param mongos.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
920 ## @param mongos.extraVolumeMounts Array to add extra volume mounts. Normally used with `extraVolumes`.
922 extraVolumeMounts: []
923 ## @param mongos.schedulerName Use an alternate scheduler, e.g. "stork".
924 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
927 ## @param mongos.useStatefulSet Use StatefulSet instead of Deployment
929 useStatefulSet: false
930 ## When using a statefulset, you can enable one service per replica
931 ## This is useful when exposing the mongos through load balancers to make sure clients
932 ## connect to the same mongos and therefore can follow their cursors
935 ## @param mongos.servicePerReplica.enabled Create one service per mongos replica (must be used with statefulset)
938 ## @param mongos.servicePerReplica.annotations Additional service annotations (evaluate as a template)
939 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
942 ## @param mongos.servicePerReplica.type Service type
943 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
946 ## @param mongos.servicePerReplica.externalTrafficPolicy External traffic policy
947 ## Enable client source IP preservation
948 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
950 externalTrafficPolicy: Cluster
951 ## @param mongos.servicePerReplica.port MongoDB® service port
954 ## @param mongos.servicePerReplica.clusterIPs Array of static clusterIPs for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
955 ## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#servicespec-v1-core
958 ## @param mongos.servicePerReplica.nodePorts Array of node ports used for each MongoDB@reg; replica. Length must be the same as mongos.replicaCount
959 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
962 ## @param mongos.servicePerReplica.externalIPs External IP list to use with ClusterIP service type
963 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
966 ## @param mongos.servicePerReplica.loadBalancerIPs Array of static IP Address to use for each replica LoadBalancer service type. Length must be the same as mongos.replicaCount
967 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
970 ## @param mongos.servicePerReplica.loadBalancerSourceRanges List of IP ranges allowed access to load balancer (if supported)
971 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
973 loadBalancerSourceRanges: []
974 ## @param mongos.servicePerReplica.extraPorts Extra ports to expose (normally used with the `sidecar` value)
977 ## @param mongos.servicePerReplica.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
978 ## If "ClientIP", consecutive client requests will be directed to the same mongos Pod
979 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
981 sessionAffinity: None
982 ## @param mongos.servicePerReplica.sessionAffinityConfig Additional settings for the sessionAffinity
983 ## sessionAffinityConfig:
985 ## timeoutSeconds: 300
987 sessionAffinityConfig: {}
988 ## Pod disruption budget
991 ## @param mongos.pdb.create Enable pod disruption budget
994 ## @param mongos.pdb.minAvailable Minimum number of available mongo pods allowed (`0` to disable)
997 ## @param mongos.pdb.maxUnavailable Maximum number of unavailable mongo pods allowed (`0` to disable)
1000 ## K8s Service Account.
1001 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1004 ## @param mongos.serviceAccount.create Whether to create a Service Account for mongos automatically
1007 ## @param mongos.serviceAccount.name Name of a Service Account to be used by mongos
1008 ## If not set and create is true, a name is generated using the XXX.fullname template
1011 ## @param mongos.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1014 ## @param mongos.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1016 automountServiceAccountToken: false
1017 ## Configure Pods Security Context
1018 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1019 ## @param mongos.podSecurityContext.enabled Enable security context
1020 ## @param mongos.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1021 ## @param mongos.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1022 ## @param mongos.podSecurityContext.supplementalGroups Set filesystem extra groups
1023 ## @param mongos.podSecurityContext.fsGroup Group ID for the container
1027 fsGroupChangePolicy: Always
1029 supplementalGroups: []
1031 ## Configure Container Security Context
1032 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1033 ## @param mongos.containerSecurityContext.enabled Enabled containers' Security Context
1034 ## @param mongos.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1035 ## @param mongos.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1036 ## @param mongos.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1037 ## @param mongos.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1038 ## @param mongos.containerSecurityContext.privileged Set container's Security Context privileged
1039 ## @param mongos.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1040 ## @param mongos.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1041 ## @param mongos.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1042 ## @param mongos.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1044 containerSecurityContext:
1051 readOnlyRootFilesystem: true
1052 allowPrivilegeEscalation: false
1056 type: "RuntimeDefault"
1057 ## @param mongos.command Override default container command (useful when using custom images)
1060 ## @param mongos.args Override default container args (useful when using custom images)
1063 ## @param mongos.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1064 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1066 terminationGracePeriodSeconds: ""
1067 ## @param mongos.lifecycleHooks for the Mongo container(s) to automate configuration before or after startup
1070 ## Configure extra options for liveness probes
1071 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1072 ## @param mongos.livenessProbe.enabled Enable livenessProbe
1073 ## @param mongos.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1074 ## @param mongos.livenessProbe.periodSeconds Period seconds for livenessProbe
1075 ## @param mongos.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1076 ## @param mongos.livenessProbe.failureThreshold Failure threshold for livenessProbe
1077 ## @param mongos.livenessProbe.successThreshold Success threshold for livenessProbe
1081 initialDelaySeconds: 60
1086 ## Configure extra options for readiness probe
1087 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1088 ## @param mongos.readinessProbe.enabled Enable readinessProbe
1089 ## @param mongos.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1090 ## @param mongos.readinessProbe.periodSeconds Period seconds for readinessProbe
1091 ## @param mongos.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1092 ## @param mongos.readinessProbe.failureThreshold Failure threshold for readinessProbe
1093 ## @param mongos.readinessProbe.successThreshold Success threshold for readinessProbe
1097 initialDelaySeconds: 10
1102 ## Configure extra options for startup probe
1103 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1104 ## @param mongos.startupProbe.enabled Enable startupProbe
1105 ## @param mongos.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1106 ## @param mongos.startupProbe.periodSeconds Period seconds for startupProbe
1107 ## @param mongos.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1108 ## @param mongos.startupProbe.failureThreshold Failure threshold for startupProbe
1109 ## @param mongos.startupProbe.successThreshold Success threshold for startupProbe
1113 initialDelaySeconds: 0
1116 failureThreshold: 30
1118 ## @param mongos.customLivenessProbe Custom livenessProbe that overrides the default one
1120 customLivenessProbe: {}
1121 ## @param mongos.customReadinessProbe Custom readinessProbe that overrides the default one
1123 customReadinessProbe: {}
1124 ## @param mongos.customStartupProbe Custom startupProbe that overrides the default one
1126 customStartupProbe: {}
1127## @section Shard configuration: Data node parameters
1130## Shard replica set properties
1131## ref: https://docs.mongodb.com/manual/replication/index.html
1134 ## Properties for data nodes (primary and secondary)
1137 ## @param shardsvr.dataNode.replicaCount Number of nodes in each shard replica set (the first node will be primary)
1140 ## @param shardsvr.dataNode.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if shardsvr.dataNode.resources is set (shardsvr.dataNode.resources is recommended for production).
1142 resourcesPreset: "medium"
1143 ## @param shardsvr.dataNode.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1152 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1155 ## @param shardsvr.dataNode.mongodbExtraFlags MongoDB® additional command line flags
1156 ## Can be used to specify command line flags, for example:
1157 ## mongodbExtraFlags:
1158 ## - "--wiredTigerCacheSizeGB=2"
1160 mongodbExtraFlags: []
1161 ## @param shardsvr.dataNode.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1162 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1164 topologySpreadConstraints: []
1165 ## @param shardsvr.dataNode.priorityClassName Pod priority class name
1166 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1168 priorityClassName: ""
1169 ## @param shardsvr.dataNode.podAffinityPreset Data nodes Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1170 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1172 podAffinityPreset: ""
1173 ## @param shardsvr.dataNode.podAntiAffinityPreset Data nodes Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1174 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1176 podAntiAffinityPreset: soft
1177 ## Node affinity preset
1178 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1181 ## @param shardsvr.dataNode.nodeAffinityPreset.type Data nodes Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1184 ## @param shardsvr.dataNode.nodeAffinityPreset.key Data nodes Node label key to match Ignored if `affinity` is set.
1186 ## key: "kubernetes.io/e2e-az-name"
1189 ## @param shardsvr.dataNode.nodeAffinityPreset.values Data nodes Node label values to match. Ignored if `affinity` is set.
1196 ## @param shardsvr.dataNode.affinity Data nodes Affinity for pod assignment
1197 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1198 ## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'affinity' section:
1201 ## shard: "{{ .dataNodeLoopId }}"
1203 ## Note: shardsvr.dataNode.podAffinityPreset, shardsvr.dataNode.podAntiAffinityPreset, and shardsvr.dataNode.nodeAffinityPreset will be ignored when it's set
1206 ## @param shardsvr.dataNode.nodeSelector Data nodes Node labels for pod assignment
1207 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1208 ## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'nodeSelector' section:
1209 ## nodeSelector: { shardId: "{{ .dataNodeLoopId }}" }
1212 ## @param shardsvr.dataNode.tolerations Data nodes Tolerations for pod assignment
1213 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1214 ## You can set dataNodeLoopId (or any other parameter) by setting the below code block under this 'nodeSelector' section:
1217 ## operator: "Equal"
1218 ## value: "{{ .dataNodeLoopId }}"
1219 ## effect: "NoSchedule"
1222 ## @param shardsvr.dataNode.podManagementPolicy podManagementPolicy for the statefulset, allows parallel startup of pods
1223 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1225 podManagementPolicy: OrderedReady
1226 ## @param shardsvr.dataNode.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
1227 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1231 ## @param shardsvr.dataNode.automountServiceAccountToken Mount Service Account token in pod
1233 automountServiceAccountToken: false
1234 ## @param shardsvr.dataNode.hostAliases Deployment pod host aliases
1235 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1238 ## @param shardsvr.dataNode.config Entries for the MongoDB® config file
1239 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1242 ## @param shardsvr.dataNode.configCM ConfigMap name with MongoDB® configuration (cannot be used with shardsvr.dataNode.config)
1243 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1246 ## @param shardsvr.dataNode.extraEnvVars An array to add extra env vars
1249 ## - name: KIBANA_ELASTICSEARCH_URL
1253 ## @param shardsvr.dataNode.extraEnvVarsCM Name of a ConfigMap containing extra env vars
1256 ## @param shardsvr.dataNode.extraEnvVarsSecret Name of a Secret containing extra env vars
1258 extraEnvVarsSecret: ""
1259 ## @param shardsvr.dataNode.sidecars Attach additional containers (evaluated as a template)
1262 ## - name: your-image-name
1263 ## image: your-image
1264 ## imagePullPolicy: Always
1267 ## containerPort: 1234
1270 ## @param shardsvr.dataNode.initContainers Add init containers to the pod
1273 ## - name: your-image-name
1274 ## image: your-image
1275 ## imagePullPolicy: Always
1278 ## @param shardsvr.dataNode.podAnnotations Additional pod annotations
1279 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1282 ## @param shardsvr.dataNode.podLabels Additional pod labels
1283 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1286 ## @param shardsvr.dataNode.extraVolumes Array to add extra volumes. Requires setting `extraVolumeMounts`
1289 ## @param shardsvr.dataNode.extraVolumeMounts Array to add extra mounts. Normally used with `extraVolumes`
1291 extraVolumeMounts: []
1292 ## @param shardsvr.dataNode.schedulerName Use an alternate scheduler, e.g. "stork".
1293 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1296 ## Pod disruption budget
1299 ## @param shardsvr.dataNode.pdb.create Enable pod disruption budget
1302 ## @param shardsvr.dataNode.pdb.minAvailable Minimum number of available data pods allowed (`0` to disable)
1305 ## @param shardsvr.dataNode.pdb.maxUnavailable Maximum number of unavailable data pods allowed (`0` to disable)
1308 ## K8s Service Account.
1309 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1312 ## @param shardsvr.dataNode.serviceAccount.create Specifies whether a ServiceAccount should be created for shardsvr
1315 ## @param shardsvr.dataNode.serviceAccount.name Name of a Service Account to be used by shardsvr data pods
1316 ## If not set and create is true, a name is generated using the XXX.fullname template
1319 ## @param shardsvr.dataNode.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1322 ## @param shardsvr.dataNode.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1324 automountServiceAccountToken: false
1325 ## Configure Pods Security Context
1326 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1327 ## @param shardsvr.dataNode.podSecurityContext.enabled Enable security context
1328 ## @param shardsvr.dataNode.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1329 ## @param shardsvr.dataNode.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1330 ## @param shardsvr.dataNode.podSecurityContext.supplementalGroups Set filesystem extra groups
1331 ## @param shardsvr.dataNode.podSecurityContext.fsGroup Group ID for the container
1335 fsGroupChangePolicy: Always
1337 supplementalGroups: []
1339 ## Configure Container Security Context
1340 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1341 ## @param shardsvr.dataNode.containerSecurityContext.enabled Enabled containers' Security Context
1342 ## @param shardsvr.dataNode.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1343 ## @param shardsvr.dataNode.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1344 ## @param shardsvr.dataNode.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1345 ## @param shardsvr.dataNode.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1346 ## @param shardsvr.dataNode.containerSecurityContext.privileged Set container's Security Context privileged
1347 ## @param shardsvr.dataNode.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1348 ## @param shardsvr.dataNode.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1349 ## @param shardsvr.dataNode.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1350 ## @param shardsvr.dataNode.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1352 containerSecurityContext:
1359 readOnlyRootFilesystem: true
1360 allowPrivilegeEscalation: false
1364 type: "RuntimeDefault"
1365 ## @param shardsvr.dataNode.command Override default container command (useful when using custom images)
1369 - /entrypoint/replicaset-entrypoint.sh
1370 ## @param shardsvr.dataNode.args Override default container args (useful when using custom images)
1373 ## @param shardsvr.dataNode.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1374 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1376 terminationGracePeriodSeconds: ""
1377 ## @param shardsvr.dataNode.lifecycleHooks for the Data container(s) to automate configuration before or after startup
1380 ## Configure extra options for liveness probes
1381 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1382 ## @param shardsvr.dataNode.livenessProbe.enabled Enable livenessProbe
1383 ## @param shardsvr.dataNode.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1384 ## @param shardsvr.dataNode.livenessProbe.periodSeconds Period seconds for livenessProbe
1385 ## @param shardsvr.dataNode.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1386 ## @param shardsvr.dataNode.livenessProbe.failureThreshold Failure threshold for livenessProbe
1387 ## @param shardsvr.dataNode.livenessProbe.successThreshold Success threshold for livenessProbe
1391 initialDelaySeconds: 60
1396 ## Configure extra options for readiness probe
1397 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1398 ## @param shardsvr.dataNode.readinessProbe.enabled Enable readinessProbe
1399 ## @param shardsvr.dataNode.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1400 ## @param shardsvr.dataNode.readinessProbe.periodSeconds Period seconds for readinessProbe
1401 ## @param shardsvr.dataNode.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1402 ## @param shardsvr.dataNode.readinessProbe.failureThreshold Failure threshold for readinessProbe
1403 ## @param shardsvr.dataNode.readinessProbe.successThreshold Success threshold for readinessProbe
1407 initialDelaySeconds: 10
1412 ## Configure extra options for startup probe
1413 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1414 ## @param shardsvr.dataNode.startupProbe.enabled Enable startupProbe
1415 ## @param shardsvr.dataNode.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1416 ## @param shardsvr.dataNode.startupProbe.periodSeconds Period seconds for startupProbe
1417 ## @param shardsvr.dataNode.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1418 ## @param shardsvr.dataNode.startupProbe.failureThreshold Failure threshold for startupProbe
1419 ## @param shardsvr.dataNode.startupProbe.successThreshold Success threshold for startupProbe
1423 initialDelaySeconds: 0
1426 failureThreshold: 30
1428 ## @param shardsvr.dataNode.customLivenessProbe Custom livenessProbe that overrides the default one
1430 customLivenessProbe: {}
1431 ## @param shardsvr.dataNode.customReadinessProbe Custom readinessProbe that overrides the default one
1433 customReadinessProbe: {}
1434 ## @param shardsvr.dataNode.customStartupProbe Custom startupProbe that overrides the default one
1436 customStartupProbe: {}
1437 ## @section Shard configuration: Persistence parameters
1440 ## Enable persistence using Persistent Volume Claims
1441 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1444 ## @param shardsvr.persistence.enabled Use a PVC to persist data
1447 ## @param shardsvr.persistence.mountPath The path the volume will be mounted at, useful when using different MongoDB® images.
1449 mountPath: /iamguarded/mongodb
1450 ## @param shardsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
1451 ## Useful in development environments and one PV for multiple services.
1454 ## @param shardsvr.persistence.storageClass Storage class of backing PVC
1455 ## If defined, storageClassName: <storageClass>
1456 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1457 ## If undefined (the default) or set to null, no storageClassName spec is
1458 ## set, choosing the default provisioner. (gp2 on AWS, standard on
1459 ## GKE, AWS & OpenStack)
1462 ## @param shardsvr.persistence.accessModes Use volume as ReadOnly or ReadWrite
1466 ## @param shardsvr.persistence.size PersistentVolumeClaim size
1469 ## @param shardsvr.persistence.annotations Additional volume annotations
1470 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1473 ## @param shardsvr.persistence.selector Selector to match an existing Persistent Volume for Shard data PVC
1474 ## A label query over volumes to consider for binding (e.g. when using local volumes)
1475 ## Selector can be defined with static and dynamic options:
1479 ## shard: shard{{ .Index }}
1481 ## shard{{ .Index }} will be substituted to shard0, shard1 accordingly
1484 ## Persistent Volume Claim Retention Policy
1485 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1487 persistentVolumeClaimRetentionPolicy:
1488 ## @param shardsvr.persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for Shard replicas StatefulSet
1491 ## @param shardsvr.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1494 ## @param shardsvr.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1497 ## @section Shard configuration: Arbiter parameters
1500 ## Properties for arbiter nodes
1501 ## ref: https://docs.mongodb.com/manual/tutorial/add-replica-set-arbiter/
1504 ## @param shardsvr.arbiter.replicaCount Number of arbiters in each shard replica set (the first node will be primary)
1507 ## @param shardsvr.arbiter.automountServiceAccountToken Mount Service Account token in pod
1509 automountServiceAccountToken: false
1510 ## @param shardsvr.arbiter.hostAliases Deployment pod host aliases
1511 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1514 ## @param shardsvr.arbiter.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if shardsvr.arbiter.resources is set (shardsvr.arbiter.resources is recommended for production).
1516 resourcesPreset: "small"
1517 ## @param shardsvr.arbiter.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1526 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1529 ## @param shardsvr.arbiter.mongodbExtraFlags MongoDB® additional command line flags
1530 ## Can be used to specify command line flags, for example:
1531 ## mongodbExtraFlags:
1532 ## - "--wiredTigerCacheSizeGB=2"
1534 mongodbExtraFlags: []
1535 ## @param shardsvr.arbiter.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
1536 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
1538 topologySpreadConstraints: []
1539 ## @param shardsvr.arbiter.priorityClassName Pod priority class name
1540 ## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
1542 priorityClassName: ""
1543 ## @param shardsvr.arbiter.podAffinityPreset Arbiter's Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1544 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1546 podAffinityPreset: ""
1547 ## @param shardsvr.arbiter.podAntiAffinityPreset Arbiter's Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1548 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1550 podAntiAffinityPreset: soft
1551 ## Node affinity preset
1552 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1555 ## @param shardsvr.arbiter.nodeAffinityPreset.type Arbiter's Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1558 ## @param shardsvr.arbiter.nodeAffinityPreset.key Arbiter's Node label key to match Ignored if `affinity` is set.
1560 ## key: "kubernetes.io/e2e-az-name"
1563 ## @param shardsvr.arbiter.nodeAffinityPreset.values Arbiter's Node label values to match. Ignored if `affinity` is set.
1570 ## @param shardsvr.arbiter.affinity Arbiter's Affinity for pod assignment
1571 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1572 ## You can set arbiterLoopId (or any other parameter) by setting the below code block under this 'affinity' section:
1575 ## shard: "{{ .arbiterLoopId }}"
1577 ## Note: shardsvr.arbiter.podAffinityPreset, shardsvr.arbiter.podAntiAffinityPreset, and shardsvr.arbiter.nodeAffinityPreset will be ignored when it's set
1580 ## @param shardsvr.arbiter.nodeSelector Arbiter's Node labels for pod assignment
1581 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1584 ## @param shardsvr.arbiter.tolerations Arbiter's Tolerations for pod assignment
1585 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1588 ## @param shardsvr.arbiter.podManagementPolicy Statefulset's pod management policy, allows parallel startup of pods
1589 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
1591 podManagementPolicy: OrderedReady
1592 ## @param shardsvr.arbiter.updateStrategy.type updateStrategy for MongoDB® Primary, Secondary and Arbiter statefulsets
1593 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
1597 ## @param shardsvr.arbiter.config MongoDB® configuration file
1598 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1601 ## @param shardsvr.arbiter.configCM ConfigMap name with MongoDB® configuration file (cannot be used with shardsvr.arbiter.config)
1602 ## ref: http://docs.mongodb.org/manual/reference/configuration-options/
1605 ## @param shardsvr.arbiter.extraEnvVars An array to add extra env vars
1608 ## - name: KIBANA_ELASTICSEARCH_URL
1612 ## @param shardsvr.arbiter.extraEnvVarsCM Name of a ConfigMap containing extra env vars
1615 ## @param shardsvr.arbiter.extraEnvVarsSecret Name of a Secret containing extra env vars
1617 extraEnvVarsSecret: ""
1618 ## @param shardsvr.arbiter.sidecars Add sidecars to the pod
1621 ## - name: your-image-name
1622 ## image: your-image
1623 ## imagePullPolicy: Always
1626 ## containerPort: 1234
1629 ## @param shardsvr.arbiter.initContainers Add init containers to the pod
1632 ## - name: your-image-name
1633 ## image: your-image
1634 ## imagePullPolicy: Always
1637 ## @param shardsvr.arbiter.podAnnotations Additional pod annotations
1638 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1641 ## @param shardsvr.arbiter.podLabels Additional pod labels
1642 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1645 ## @param shardsvr.arbiter.extraVolumes Array to add extra volumes
1648 ## @param shardsvr.arbiter.extraVolumeMounts Array to add extra mounts (normally used with extraVolumes)
1650 extraVolumeMounts: []
1651 ## @param shardsvr.arbiter.schedulerName Use an alternate scheduler, e.g. "stork".
1652 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1655 ## K8s Service Account.
1656 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1659 ## @param shardsvr.arbiter.serviceAccount.create Specifies whether a ServiceAccount should be created for shardsvr arbiter nodes
1662 ## @param shardsvr.arbiter.serviceAccount.name Name of a Service Account to be used by shardsvr arbiter pods
1663 ## If not set and create is true, a name is generated using the XXX.fullname template
1666 ## @param shardsvr.arbiter.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1669 ## @param shardsvr.arbiter.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1671 automountServiceAccountToken: false
1672 ## Configure Pods Security Context
1673 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1674 ## @param shardsvr.arbiter.podSecurityContext.enabled Enable security context
1675 ## @param shardsvr.arbiter.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1676 ## @param shardsvr.arbiter.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1677 ## @param shardsvr.arbiter.podSecurityContext.supplementalGroups Set filesystem extra groups
1678 ## @param shardsvr.arbiter.podSecurityContext.fsGroup Group ID for the container
1682 fsGroupChangePolicy: Always
1684 supplementalGroups: []
1686 ## Configure Container Security Context
1687 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1688 ## @param shardsvr.arbiter.containerSecurityContext.enabled Enabled containers' Security Context
1689 ## @param shardsvr.arbiter.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1690 ## @param shardsvr.arbiter.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1691 ## @param shardsvr.arbiter.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1692 ## @param shardsvr.arbiter.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1693 ## @param shardsvr.arbiter.containerSecurityContext.privileged Set container's Security Context privileged
1694 ## @param shardsvr.arbiter.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1695 ## @param shardsvr.arbiter.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1696 ## @param shardsvr.arbiter.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1697 ## @param shardsvr.arbiter.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1699 containerSecurityContext:
1706 readOnlyRootFilesystem: true
1707 allowPrivilegeEscalation: false
1711 type: "RuntimeDefault"
1712 ## @param shardsvr.arbiter.command Override default container command (useful when using custom images)
1715 ## @param shardsvr.arbiter.args Override default container args (useful when using custom images)
1718 ## @param shardsvr.arbiter.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
1719 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
1721 terminationGracePeriodSeconds: ""
1722 ## @param shardsvr.arbiter.lifecycleHooks for the arbiter container(s) to automate configuration before or after startup
1725 ## Configure extra options for liveness probes
1726 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1727 ## @param shardsvr.arbiter.livenessProbe.enabled Enable livenessProbe
1728 ## @param shardsvr.arbiter.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1729 ## @param shardsvr.arbiter.livenessProbe.periodSeconds Period seconds for livenessProbe
1730 ## @param shardsvr.arbiter.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1731 ## @param shardsvr.arbiter.livenessProbe.failureThreshold Failure threshold for livenessProbe
1732 ## @param shardsvr.arbiter.livenessProbe.successThreshold Success threshold for livenessProbe
1736 initialDelaySeconds: 60
1741 ## Configure extra options for readiness probe
1742 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1743 ## @param shardsvr.arbiter.readinessProbe.enabled Enable readinessProbe
1744 ## @param shardsvr.arbiter.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1745 ## @param shardsvr.arbiter.readinessProbe.periodSeconds Period seconds for readinessProbe
1746 ## @param shardsvr.arbiter.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1747 ## @param shardsvr.arbiter.readinessProbe.failureThreshold Failure threshold for readinessProbe
1748 ## @param shardsvr.arbiter.readinessProbe.successThreshold Success threshold for readinessProbe
1752 initialDelaySeconds: 10
1757 ## Configure extra options for startup probe
1758 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1759 ## @param shardsvr.arbiter.startupProbe.enabled Enable startupProbe
1760 ## @param shardsvr.arbiter.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1761 ## @param shardsvr.arbiter.startupProbe.periodSeconds Period seconds for startupProbe
1762 ## @param shardsvr.arbiter.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1763 ## @param shardsvr.arbiter.startupProbe.failureThreshold Failure threshold for startupProbe
1764 ## @param shardsvr.arbiter.startupProbe.successThreshold Success threshold for startupProbe
1768 initialDelaySeconds: 0
1771 failureThreshold: 30
1773 ## @param shardsvr.arbiter.customLivenessProbe Custom livenessProbe that overrides the default one
1775 customLivenessProbe: {}
1776 ## @param shardsvr.arbiter.customReadinessProbe Custom readinessProbe that overrides the default one
1778 customReadinessProbe: {}
1779 ## @param shardsvr.arbiter.customStartupProbe Custom startupProbe that overrides the default one
1781 customStartupProbe: {}
1782## @section Metrics parameters
1786 ## @param metrics.enabled Start a side-car prometheus exporter
1789 ## @param metrics.image.registry [default: REGISTRY_NAME] MongoDB® exporter image registry
1790 ## @param metrics.image.repository [default: REPOSITORY_NAME/mongodb-exporter] MongoDB® exporter image name
1791 ## @skip metrics.image.tag MongoDB® exporter image tag
1792 ## @param metrics.image.digest MongoDB® exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1793 ## @param metrics.image.pullPolicy MongoDB® exporter image pull policy
1794 ## @param metrics.image.pullSecrets MongoDB® exporter image pull secrets
1798 repository: chainguard-private/prometheus-mongodb-exporter-iamguarded
1802 ## Optionally specify an array of imagePullSecrets.
1803 ## Secrets must be manually created in the namespace.
1804 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1807 ## - myRegistryKeySecretName
1810 ## @param metrics.useTLS Whether to connect to MongoDB® with TLS
1813 ## @param metrics.extraArgs String with extra arguments to the metrics exporter
1814 ## ref: https://github.com/percona/mongodb_exporter/blob/main/main.go
1817 ## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1819 resourcesPreset: "nano"
1820 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1829 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1832 ## Configure Container Security Context
1833 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1834 ## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1835 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1836 ## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1837 ## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1838 ## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1839 ## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1840 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1841 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1842 ## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1843 ## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1845 containerSecurityContext:
1852 readOnlyRootFilesystem: true
1853 allowPrivilegeEscalation: false
1857 type: "RuntimeDefault"
1858 ## Metrics exporter liveness probe
1859 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
1860 ## @param metrics.livenessProbe.enabled Enable livenessProbe
1861 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1862 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1863 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1864 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1865 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1869 initialDelaySeconds: 15
1874 ## Metrics exporter liveness and readiness probes
1875 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
1876 ## @param metrics.readinessProbe.enabled Enable readinessProbe
1877 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1878 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1879 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1880 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1881 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1885 initialDelaySeconds: 5
1890 ## Configure extra options for startup probe
1891 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
1892 ## @param metrics.startupProbe.enabled Enable startupProbe
1893 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1894 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1895 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1896 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1897 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1901 initialDelaySeconds: 0
1904 failureThreshold: 15
1906 ## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1908 customLivenessProbe: {}
1909 ## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1911 customReadinessProbe: {}
1912 ## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1914 customStartupProbe: {}
1915 ## @param metrics.containerPorts.metrics Port of the Prometheus metrics container
1919 ## @param metrics.podAnnotations [object] Metrics exporter pod Annotation
1922 prometheus.io/scrape: "true"
1923 prometheus.io/port: "{{ .Values.metrics.containerPort }}"
1924 ## Prometheus Service Monitor
1925 ## ref: https://github.com/coreos/prometheus-operator
1926 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1929 ## @param metrics.podMonitor.enabled Create PodMonitor Resource for scraping metrics using PrometheusOperator
1932 ## @param metrics.podMonitor.namespace Namespace where podmonitor resource should be created
1934 namespace: monitoring
1935 ## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
1938 ## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1940 ## scrapeTimeout: 30s
1943 ## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitors will be discovered by Prometheus
1944 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
1946 additionalLabels: {}