1# This file has been modified by Chainguard, Inc.
3# Copyright Chainguard, Inc. All Rights Reserved.
4# Chainguard, Inc. modifications are subject to the license
5# available at: https://www.chainguard.dev/legal/software-license-agreement
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
11## Global Docker image parameters
12## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
16## @param global.imageRegistry Global Docker image registry
17## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18## @param global.imagePullSecrets Global Docker registry secret names as an array
19## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
21## @param global.valkey.password Global Valkey password (overrides `auth.password`)
22## @param global.defaultFips Default value for the FIPS configuration (allowed values: '', restricted, relaxed, off). Can be overridden by the 'fips' object
29 ## - myRegistryKeySecretName
32 defaultStorageClass: ""
34 ## Security parameters
37 ## @param global.security.allowInsecureImages Allows skipping image verification
38 allowInsecureImages: false
41 ## Compatibility adaptations for Kubernetes platforms
44 ## Compatibility adaptations for Openshift
47 ## @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)
49 adaptSecurityContext: auto
50 ## Configure FIPS mode: '', 'restricted', 'relaxed', 'off'
52 defaultFips: restricted
54## @section Common parameters
57## @param kubeVersion Override Kubernetes version
60## @param apiVersions Override Kubernetes API versions reported by .Capabilities
63## @param nameOverride String to partially override common.names.fullname
66## @param fullnameOverride String to fully override common.names.fullname
69## @param namespaceOverride String to fully override common.names.namespace
72## @param commonLabels Labels to add to all deployed objects
75## @param commonAnnotations Annotations to add to all deployed objects
78## @param secretAnnotations Annotations to add to secret
81## @param clusterDomain Kubernetes cluster domain name
83clusterDomain: cluster.local
84## @param extraDeploy Array of extra objects to deploy with the release
87## @param useHostnames Use hostnames internally when announcing replication. If false, the hostname will be resolved to an IP address
90## @param nameResolutionThreshold Failure threshold for internal hostnames resolution
92nameResolutionThreshold: 5
93## @param nameResolutionTimeout Timeout seconds between probes for internal hostnames resolution
95nameResolutionTimeout: 5
96## Enable diagnostic mode in the deployment
99 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
102 ## @param diagnosticMode.command Command to override all containers in the deployment
106 ## @param diagnosticMode.args Args to override all containers in the deployment
110## @section Valkey Image parameters
113## Iamguarded Valkey image
114## @param image.registry [default: REGISTRY_NAME] Valkey image registry
115## @param image.repository [default: REPOSITORY_NAME/valkey] Valkey image repository
116## @skip image.tag Valkey image tag (immutable tags are recommended)
117## @param image.digest Valkey image digest in the way sha256:aa... Please note this parameter, if set, will override the tag
118## @param image.pullPolicy Valkey image pull policy
119## @param image.pullSecrets Valkey image pull secrets
120## @param image.debug Enable image debug mode
124 repository: chainguard-private/valkey-iamguarded
126 digest: sha256:fe1079be97888b5063bf139c8a4496b33461607a35647d40aec08e829f3ef7e6
127 ## Specify a imagePullPolicy
128 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
130 pullPolicy: IfNotPresent
131 ## Optionally, specify an array of imagePullSecrets.
132 ## Secrets must be manually created in the namespace.
133 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
136 ## - myRegistryKeySecretName
142## @section Valkey common configuration parameters
145## @param architecture Valkey architecture. Allowed values: `standalone` or `replication`
147architecture: replication
148## @param fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
152## Valkey Authentication parameters
155 ## @param auth.enabled Enable password authentication
158 ## @param auth.sentinel Enable password authentication on sentinels too
161 ## @param auth.password Valkey password
162 ## Defaults to a random 10-character alphanumeric string if not set
165 ## @param auth.existingSecret The name of an existing secret with Valkey credentials
166 ## NOTE: When it's set, the previous `auth.password` parameter is ignored
169 ## @param auth.existingSecretPasswordKey Password key to be retrieved from existing secret
170 ## NOTE: ignored unless `auth.existingSecret` parameter is set
172 existingSecretPasswordKey: ""
173 ## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
175 usePasswordFiles: true
176 ## @param auth.usePasswordFileFromSecret Mount password file from secret
178 usePasswordFileFromSecret: true
179## @param commonConfiguration [string] Common configuration to be added into the ConfigMap
180## ref: https://valkey.io/topics/valkey-conf/
182commonConfiguration: |-
183 # Enable AOF https://valkey.io/docs/topics/persistence.html
185 # Disable RDB persistence, AOF persistence already enabled.
187## @param existingConfigmap The name of an existing ConfigMap with your custom configuration for Valkey nodes
190## @section Valkey primary configuration parameters
193 ## @param primary.replicaCount Number of Valkey primary instances to deploy (experimental, requires additional configuration)
196 ## @param primary.configuration Configuration for Valkey primary nodes
197 ## ref: https://valkey.io/topics/config
200 ## @param primary.disableCommands Array with Valkey commands to disable on primary nodes
201 ## Commands will be completely disabled by renaming each to an empty string.
202 ## ref: https://valkey.io/topics/security#disabling-of-specific-commands
207 ## @param primary.command Override default container command (useful when using custom images)
210 ## @param primary.args Override default container args (useful when using custom images)
213 ## @param primary.enableServiceLinks Whether information about services should be injected into pod's environment variable
215 enableServiceLinks: true
216 ## @param primary.preExecCmds Additional commands to run prior to starting Valkey primary
219 ## @param primary.extraFlags Array with additional command line flags for Valkey primary
222 ## - "--maxmemory-policy volatile-ttl"
223 ## - "--repl-backlog-size 1024mb"
226 ## @param primary.extraEnvVars Array with extra environment variables to add to Valkey primary nodes
233 ## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Valkey primary nodes
236 ## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for Valkey primary nodes
238 extraEnvVarsSecret: ""
239 ## @param primary.containerPorts.valkey Container port to open on Valkey primary nodes
243 ## Configure extra options for Valkey containers' liveness and readiness probes
244 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
245 ## @param primary.startupProbe.enabled Enable startupProbe on Valkey primary nodes
246 ## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
247 ## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
248 ## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
249 ## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
250 ## @param primary.startupProbe.successThreshold Success threshold for startupProbe
254 initialDelaySeconds: 20
259 ## @param primary.livenessProbe.enabled Enable livenessProbe on Valkey primary nodes
260 ## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
261 ## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
262 ## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
263 ## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
264 ## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
268 initialDelaySeconds: 20
273 ## @param primary.readinessProbe.enabled Enable readinessProbe on Valkey primary nodes
274 ## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
275 ## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
276 ## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
277 ## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
278 ## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
282 initialDelaySeconds: 20
287 ## @param primary.customStartupProbe Custom startupProbe that overrides the default one
289 customStartupProbe: {}
290 ## @param primary.customLivenessProbe Custom livenessProbe that overrides the default one
292 customLivenessProbe: {}
293 ## @param primary.customReadinessProbe Custom readinessProbe that overrides the default one
295 customReadinessProbe: {}
296 ## Valkey primary resource requests and limits
297 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
298 ## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
300 resourcesPreset: "nano"
301 ## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
312 ## Configure Pods Security Context
313 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
314 ## @param primary.podSecurityContext.enabled Enable Valkey primary pods' Security Context
315 ## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
316 ## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
317 ## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
318 ## @param primary.podSecurityContext.fsGroup Set Valkey primary pod's Security Context fsGroup
322 fsGroupChangePolicy: Always
324 supplementalGroups: []
326 ## Configure Container Security Context
327 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
328 ## @param primary.containerSecurityContext.enabled Enable Valkey primary containers' Security Context
329 ## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
330 ## @param primary.containerSecurityContext.runAsUser Set Valkey primary containers' Security Context runAsUser
331 ## @param primary.containerSecurityContext.runAsGroup Set Valkey primary containers' Security Context runAsGroup
332 ## @param primary.containerSecurityContext.runAsNonRoot Set Valkey primary containers' Security Context runAsNonRoot
333 ## @param primary.containerSecurityContext.allowPrivilegeEscalation Is it possible to escalate Valkey pod(s) privileges
334 ## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
335 ## @param primary.containerSecurityContext.seccompProfile.type Set Valkey primary containers' Security Context seccompProfile
336 ## @param primary.containerSecurityContext.capabilities.drop Set Valkey primary containers' Security Context capabilities to drop
338 containerSecurityContext:
344 allowPrivilegeEscalation: false
345 readOnlyRootFilesystem: true
350 ## @param primary.kind Use either Deployment, StatefulSet (default) or DaemonSet
351 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
354 ## @param primary.schedulerName Alternate scheduler for Valkey primary pods
355 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
358 ## @param primary.updateStrategy.type Valkey primary statefulset strategy type
359 ## @skip primary.updateStrategy.rollingUpdate
360 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
364 ## Can be set to RollingUpdate, OnDelete (statefulset), Recreate (deployment)
367 ## @param primary.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
370 ## @param primary.priorityClassName Valkey primary pods' priorityClassName
372 priorityClassName: ""
373 ## @param primary.automountServiceAccountToken Mount Service Account token in pod
375 automountServiceAccountToken: false
376 ## @param primary.hostAliases Valkey primary pods host aliases
377 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
380 ## @param primary.runtimeClassName Name of the runtime class to be used by pod(s)
381 ## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
384 ## @param primary.podLabels Extra labels for Valkey primary pods
385 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
388 ## @param primary.podAnnotations Annotations for Valkey primary pods
389 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
392 ## @param primary.shareProcessNamespace Share a single process namespace between all of the containers in Valkey primary pods
393 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
395 shareProcessNamespace: false
396 ## @param primary.podAffinityPreset Pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
397 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
399 podAffinityPreset: ""
400 ## @param primary.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
401 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
403 podAntiAffinityPreset: soft
404 ## Node primary.affinity preset
405 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
408 ## @param primary.nodeAffinityPreset.type Node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
411 ## @param primary.nodeAffinityPreset.key Node label key to match. Ignored if `primary.affinity` is set
414 ## @param primary.nodeAffinityPreset.values Node label values to match. Ignored if `primary.affinity` is set
421 ## @param primary.affinity Affinity for Valkey primary pods assignment
422 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
423 ## NOTE: `primary.podAffinityPreset`, `primary.podAntiAffinityPreset`, and `primary.nodeAffinityPreset` will be ignored when it's set
426 ## @param primary.nodeSelector Node labels for Valkey primary pods assignment
427 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
430 ## @param primary.tolerations Tolerations for Valkey primary pods assignment
431 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
434 ## @param primary.topologySpreadConstraints Spread Constraints for Valkey primary pod assignment
435 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
437 ## topologySpreadConstraints:
440 ## whenUnsatisfiable: DoNotSchedule
442 topologySpreadConstraints: []
443 ## @param primary.dnsPolicy DNS Policy for Valkey primary pod
444 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
446 ## dnsPolicy: ClusterFirst
449 ## @param primary.dnsConfig DNS Configuration for Valkey primary pod
450 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
456 ## - name: single-request-reopen
459 ## @param primary.lifecycleHooks for the Valkey primary container(s) to automate configuration before or after startup
462 ## @param primary.extraVolumes Optionally, specify extra list of additional volumes for the Valkey primary pod(s)
465 ## @param primary.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey primary container(s)
467 extraVolumeMounts: []
468 ## @param primary.sidecars Add additional sidecar containers to the Valkey primary pod(s)
471 ## - name: your-image-name
473 ## imagePullPolicy: Always
476 ## containerPort: 1234
479 ## @param primary.initContainers Add additional init containers to the Valkey primary pod(s)
480 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
483 ## - name: your-image-name
485 ## imagePullPolicy: Always
486 ## command: ['sh', '-c', 'echo "hello world"']
489 ## Persistence parameters
490 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
493 ## @param primary.persistence.enabled Enable persistence on Valkey primary nodes using Persistent Volume Claims
496 ## @param primary.persistence.medium Provide a medium for `emptyDir` volumes.
499 ## @param primary.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
502 ## @param primary.persistence.path The path the volume will be mounted at on Valkey primary containers
503 ## NOTE: Useful when using different Valkey images
506 ## @param primary.persistence.subPath The subdirectory of the volume to mount on Valkey primary containers
507 ## NOTE: Useful in dev environments
510 ## @param primary.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Valkey primary containers
513 ## @param primary.persistence.storageClass Persistent Volume storage class
514 ## If defined, storageClassName: <storageClass>
515 ## If set to "-", storageClassName: "", which disables dynamic provisioning
516 ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
519 ## @param primary.persistence.accessModes Persistent Volume access modes
523 ## @param primary.persistence.size Persistent Volume size
526 ## @param primary.persistence.annotations Additional custom annotations for the PVC
529 ## @param primary.persistence.labels Additional custom labels for the PVC
532 ## @param primary.persistence.selector Additional labels to match for the PVC
539 ## @param primary.persistence.dataSource Custom PVC data source
542 ## @param primary.persistence.existingClaim Use an existing PVC which must be created manually before bound
543 ## NOTE: requires primary.persistence.enabled: true
546 ## persistentVolumeClaimRetentionPolicy
547 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
548 ## @param primary.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
549 ## @param primary.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
550 ## @param primary.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
552 persistentVolumeClaimRetentionPolicy:
556 ## Valkey primary service parameters
559 ## @param primary.service.type Valkey primary service type
562 ## @param primary.service.ports.valkey Valkey primary service port
566 ## @param primary.service.nodePorts.valkey Node port for Valkey primary
567 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
568 ## NOTE: choose port between <30000-32767>
572 ## @param primary.service.externalTrafficPolicy Valkey primary service external traffic policy
573 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
575 externalTrafficPolicy: Cluster
576 ## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
579 ## @param primary.service.internalTrafficPolicy Valkey primary service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
580 ## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
582 internalTrafficPolicy: Cluster
583 ## @param primary.service.clusterIP Valkey primary service Cluster IP
586 ## @param primary.service.loadBalancerIP Valkey primary service Load Balancer IP
587 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
590 ## @param primary.service.loadBalancerClass primary service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
591 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
593 loadBalancerClass: ""
594 ## @param primary.service.loadBalancerSourceRanges Valkey primary service Load Balancer sources
595 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
597 ## loadBalancerSourceRanges:
600 loadBalancerSourceRanges: []
601 ## @param primary.service.externalIPs Valkey primary service External IPs
602 ## https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
609 ## @param primary.service.annotations Additional custom annotations for Valkey primary service
612 ## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
613 ## If "ClientIP", consecutive client requests will be directed to the same Pod
614 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
616 sessionAffinity: None
617 ## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `primary.service.sessionAffinity` is `None`
618 ## sessionAffinityConfig:
620 ## timeoutSeconds: 300
622 sessionAffinityConfig: {}
623 ## @param primary.terminationGracePeriodSeconds Integer setting the termination grace period for the valkey-primary pods
625 terminationGracePeriodSeconds: 30
626 ## ServiceAccount configuration
629 ## @param primary.serviceAccount.create Specifies whether a ServiceAccount should be created
632 ## @param primary.serviceAccount.name The name of the ServiceAccount to use.
633 ## If not set and create is true, a name is generated using the common.names.fullname template
636 ## @param primary.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
637 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
639 automountServiceAccountToken: false
640 ## @param primary.serviceAccount.annotations Additional custom annotations for the ServiceAccount
643 ## Pod Disruption Budget configuration
644 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
645 ## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation
646 ## @param primary.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
647 ## @param primary.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `primary.pdb.minAvailable` and `primary.pdb.maxUnavailable` are empty.
653## @section Valkey replicas configuration parameters
656 ## @param replica.kind Use either DaemonSet or StatefulSet (default)
657 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
660 ## @param replica.replicaCount Number of Valkey replicas to deploy
663 ## @param replica.configuration Configuration for Valkey replicas nodes
664 ## ref: https://valkey.io/topics/config
667 ## @param replica.disableCommands Array with Valkey commands to disable on replicas nodes
668 ## Commands will be completely disabled by renaming each to an empty string.
669 ## ref: https://valkey.io/topics/security#disabling-of-specific-commands
674 ## @param replica.command Override default container command (useful when using custom images)
677 ## @param replica.args Override default container args (useful when using custom images)
680 ## @param replica.enableServiceLinks Whether information about services should be injected into pod's environment variable
682 enableServiceLinks: true
683 ## @param replica.preExecCmds Additional commands to run prior to starting Valkey replicas
686 ## @param replica.extraFlags Array with additional command line flags for Valkey replicas
689 ## - "--maxmemory-policy volatile-ttl"
690 ## - "--repl-backlog-size 1024mb"
693 ## @param replica.extraEnvVars Array with extra environment variables to add to Valkey replicas nodes
700 ## @param replica.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Valkey replicas nodes
703 ## @param replica.extraEnvVarsSecret Name of existing Secret containing extra env vars for Valkey replicas nodes
705 extraEnvVarsSecret: ""
706 ## @param replica.externalPrimary.enabled Use external primary for bootstrapping
707 ## @param replica.externalPrimary.host External primary host to bootstrap from
708 ## @param replica.externalPrimary.port Port for Valkey service external primary host
714 ## @param replica.containerPorts.valkey Container port to open on Valkey replicas nodes
718 ## Configure extra options for Valkey containers' liveness and readiness probes
719 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
720 ## @param replica.startupProbe.enabled Enable startupProbe on Valkey replicas nodes
721 ## @param replica.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
722 ## @param replica.startupProbe.periodSeconds Period seconds for startupProbe
723 ## @param replica.startupProbe.timeoutSeconds Timeout seconds for startupProbe
724 ## @param replica.startupProbe.failureThreshold Failure threshold for startupProbe
725 ## @param replica.startupProbe.successThreshold Success threshold for startupProbe
729 initialDelaySeconds: 10
734 ## @param replica.livenessProbe.enabled Enable livenessProbe on Valkey replicas nodes
735 ## @param replica.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
736 ## @param replica.livenessProbe.periodSeconds Period seconds for livenessProbe
737 ## @param replica.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
738 ## @param replica.livenessProbe.failureThreshold Failure threshold for livenessProbe
739 ## @param replica.livenessProbe.successThreshold Success threshold for livenessProbe
743 initialDelaySeconds: 20
748 ## @param replica.readinessProbe.enabled Enable readinessProbe on Valkey replicas nodes
749 ## @param replica.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
750 ## @param replica.readinessProbe.periodSeconds Period seconds for readinessProbe
751 ## @param replica.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
752 ## @param replica.readinessProbe.failureThreshold Failure threshold for readinessProbe
753 ## @param replica.readinessProbe.successThreshold Success threshold for readinessProbe
757 initialDelaySeconds: 20
762 ## @param replica.customStartupProbe Custom startupProbe that overrides the default one
764 customStartupProbe: {}
765 ## @param replica.customLivenessProbe Custom livenessProbe that overrides the default one
767 customLivenessProbe: {}
768 ## @param replica.customReadinessProbe Custom readinessProbe that overrides the default one
770 customReadinessProbe: {}
771 ## Valkey replicas resource requests and limits
772 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
773 ## @param replica.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if replica.resources is set (replica.resources is recommended for production).
775 resourcesPreset: "nano"
776 ## @param replica.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
787 ## Configure Pods Security Context
788 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
789 ## @param replica.podSecurityContext.enabled Enable Valkey replicas pods' Security Context
790 ## @param replica.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
791 ## @param replica.podSecurityContext.sysctls Set kernel settings using the sysctl interface
792 ## @param replica.podSecurityContext.supplementalGroups Set filesystem extra groups
793 ## @param replica.podSecurityContext.fsGroup Set Valkey replicas pod's Security Context fsGroup
797 fsGroupChangePolicy: Always
799 supplementalGroups: []
801 ## Configure Container Security Context
802 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
803 ## @param replica.containerSecurityContext.enabled Enable Valkey replicas containers' Security Context
804 ## @param replica.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
805 ## @param replica.containerSecurityContext.runAsUser Set Valkey replicas containers' Security Context runAsUser
806 ## @param replica.containerSecurityContext.runAsGroup Set Valkey replicas containers' Security Context runAsGroup
807 ## @param replica.containerSecurityContext.runAsNonRoot Set Valkey replicas containers' Security Context runAsNonRoot
808 ## @param replica.containerSecurityContext.allowPrivilegeEscalation Set Valkey replicas pod's Security Context allowPrivilegeEscalation
809 ## @param replica.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
810 ## @param replica.containerSecurityContext.seccompProfile.type Set Valkey replicas containers' Security Context seccompProfile
811 ## @param replica.containerSecurityContext.capabilities.drop Set Valkey replicas containers' Security Context capabilities to drop
813 containerSecurityContext:
819 allowPrivilegeEscalation: false
820 readOnlyRootFilesystem: true
825 ## @param replica.schedulerName Alternate scheduler for Valkey replicas pods
826 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
829 ## @param replica.runtimeClassName Name of the runtime class to be used by replica pod(s)
832 ## @param replica.updateStrategy.type Valkey replicas statefulset strategy type
833 ## @skip replica.updateStrategy.rollingUpdate
834 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
838 ## Can be set to RollingUpdate, OnDelete (statefulset), Recreate (deployment)
841 ## @param replica.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
844 ## @param replica.priorityClassName Valkey replicas pods' priorityClassName
846 priorityClassName: ""
847 ## @param replica.podManagementPolicy podManagementPolicy to manage scaling operation of %%MAIN_CONTAINER_NAME%% pods
848 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
850 podManagementPolicy: ""
851 ## @param replica.automountServiceAccountToken Mount Service Account token in pod
853 automountServiceAccountToken: false
854 ## @param replica.hostAliases Valkey replicas pods host aliases
855 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
858 ## @param replica.podLabels Extra labels for Valkey replicas pods
859 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
862 ## @param replica.podAnnotations Annotations for Valkey replicas pods
863 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
866 ## @param replica.shareProcessNamespace Share a single process namespace between all of the containers in Valkey replicas pods
867 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
869 shareProcessNamespace: false
870 ## @param replica.podAffinityPreset Pod affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
871 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
873 podAffinityPreset: ""
874 ## @param replica.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
875 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
877 podAntiAffinityPreset: soft
878 ## Node affinity preset
879 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
882 ## @param replica.nodeAffinityPreset.type Node affinity preset type. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
885 ## @param replica.nodeAffinityPreset.key Node label key to match. Ignored if `replica.affinity` is set
888 ## @param replica.nodeAffinityPreset.values Node label values to match. Ignored if `replica.affinity` is set
895 ## @param replica.affinity Affinity for Valkey replicas pods assignment
896 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
897 ## NOTE: `replica.podAffinityPreset`, `replica.podAntiAffinityPreset`, and `replica.nodeAffinityPreset` will be ignored when it's set
900 ## @param replica.nodeSelector Node labels for Valkey replicas pods assignment
901 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
904 ## @param replica.tolerations Tolerations for Valkey replicas pods assignment
905 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
908 ## @param replica.topologySpreadConstraints Spread Constraints for Valkey replicas pod assignment
909 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
911 ## topologySpreadConstraints:
914 ## whenUnsatisfiable: DoNotSchedule
916 topologySpreadConstraints: []
917 ## @param replica.dnsPolicy DNS Policy for Valkey replica pods
918 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
920 ## dnsPolicy: ClusterFirst
923 ## @param replica.dnsConfig DNS Configuration for Valkey replica pods
924 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
930 ## - name: single-request-reopen
933 ## @param replica.lifecycleHooks for the Valkey replica container(s) to automate configuration before or after startup
936 ## @param replica.extraVolumes Optionally, specify an extra list of additional volumes for the Valkey replicas pod(s)
939 ## @param replica.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey replicas container(s)
941 extraVolumeMounts: []
942 ## @param replica.sidecars Add additional sidecar containers to the Valkey replicas pod(s)
945 ## - name: your-image-name
947 ## imagePullPolicy: Always
950 ## containerPort: 1234
953 ## @param replica.initContainers Add additional init containers to the Valkey replicas pod(s)
954 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
957 ## - name: your-image-name
959 ## imagePullPolicy: Always
960 ## command: ['sh', '-c', 'echo "hello world"']
963 ## Persistence Parameters
964 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
967 ## @param replica.persistence.enabled Enable persistence on Valkey replicas nodes using Persistent Volume Claims
970 ## @param replica.persistence.medium Provide a medium for `emptyDir` volumes.
973 ## @param replica.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
976 ## @param replica.persistence.path The path the volume will be mounted at on Valkey replicas containers
977 ## NOTE: Useful when using different Valkey images
980 ## @param replica.persistence.subPath The subdirectory of the volume to mount on Valkey replicas containers
981 ## NOTE: Useful in dev environments
984 ## @param replica.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Valkey replicas containers
987 ## @param replica.persistence.storageClass Persistent Volume storage class
988 ## If defined, storageClassName: <storageClass>
989 ## If set to "-", storageClassName: "", which disables dynamic provisioning
990 ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
993 ## @param replica.persistence.accessModes Persistent Volume access modes
997 ## @param replica.persistence.size Persistent Volume size
1000 ## @param replica.persistence.annotations Additional custom annotations for the PVC
1003 ## @param replica.persistence.labels Additional custom labels for the PVC
1006 ## @param replica.persistence.selector Additional labels to match for the PVC
1013 ## @param replica.persistence.dataSource Custom PVC data source
1016 ## @param replica.persistence.existingClaim Use an existing PVC which must be created manually before bound
1017 ## NOTE: requires replica.persistence.enabled: true
1020 ## persistentVolumeClaimRetentionPolicy
1021 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1022 ## @param replica.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1023 ## @param replica.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1024 ## @param replica.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1026 persistentVolumeClaimRetentionPolicy:
1030 ## Valkey replicas service parameters
1033 ## @param replica.service.type Valkey replicas service type
1036 ## @param replica.service.ports.valkey Valkey replicas service port
1040 ## @param replica.service.nodePorts.valkey Node port for Valkey replicas
1041 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1042 ## NOTE: choose port between <30000-32767>
1046 ## @param replica.service.externalTrafficPolicy Valkey replicas service external traffic policy
1047 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1049 externalTrafficPolicy: Cluster
1050 ## @param replica.service.internalTrafficPolicy Valkey replicas service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
1051 ## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
1053 internalTrafficPolicy: Cluster
1054 ## @param replica.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1057 ## @param replica.service.clusterIP Valkey replicas service Cluster IP
1060 ## @param replica.service.loadBalancerIP Valkey replicas service Load Balancer IP
1061 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1064 ## @param replica.service.loadBalancerClass replicas service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1065 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1067 loadBalancerClass: ""
1068 ## @param replica.service.loadBalancerSourceRanges Valkey replicas service Load Balancer sources
1069 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1071 ## loadBalancerSourceRanges:
1074 loadBalancerSourceRanges: []
1075 ## @param replica.service.annotations Additional custom annotations for Valkey replicas service
1078 ## @param replica.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1079 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1080 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1082 sessionAffinity: None
1083 ## @param replica.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `replica.service.sessionAffinity` is `None`
1085 ## sessionAffinityConfig:
1087 ## timeoutSeconds: 300
1089 sessionAffinityConfig: {}
1090 ## @param replica.terminationGracePeriodSeconds Integer setting the termination grace period for the valkey-replicas pods
1092 terminationGracePeriodSeconds: 30
1093 ## @section Autoscaling
1094 ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
1098 ## @param replica.autoscaling.vpa.enabled Enable VPA
1101 ## @param replica.autoscaling.vpa.annotations Annotations for VPA resource
1104 ## @param replica.autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
1106 controlledResources: []
1107 ## @param replica.autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
1114 ## @param replica.autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
1121 ## @section VPA update policy
1124 ## @param replica.autoscaling.vpa.updatePolicy.updateMode Autoscaling update policy Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod
1125 ## Possible values are "Off", "Initial", "Recreate", and "Auto".
1129 ## @param replica.autoscaling.hpa.enabled Enable HPA
1132 ## @param replica.autoscaling.hpa.minReplicas Minimum number of replicas
1135 ## @param replica.autoscaling.hpa.maxReplicas Maximum number of replicas
1138 ## @param replica.autoscaling.hpa.targetCPU Target CPU utilization percentage
1141 ## @param replica.autoscaling.hpa.targetMemory Target Memory utilization percentage
1144 ## ServiceAccount configuration
1147 ## @param replica.serviceAccount.create Specifies whether a ServiceAccount should be created
1150 ## @param replica.serviceAccount.name The name of the ServiceAccount to use.
1151 ## If not set and create is true, a name is generated using the common.names.fullname template
1154 ## @param replica.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
1155 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
1157 automountServiceAccountToken: false
1158 ## @param replica.serviceAccount.annotations Additional custom annotations for the ServiceAccount
1161 ## Pod Disruption Budget configuration
1162 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
1163 ## @param replica.pdb.create Enable/disable a Pod Disruption Budget creation
1164 ## @param replica.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
1165 ## @param replica.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `replica.pdb.minAvailable` and `replica.pdb.maxUnavailable` are empty.
1171## @section Valkey Sentinel configuration parameters
1174 ## @param sentinel.enabled Use Valkey Sentinel on Valkey pods.
1175 ## IMPORTANT: this will disable the primary and replicas services and
1176 ## create a single Valkey service exposing both the Valkey and Sentinel ports
1179 ## Iamguarded Valkey Sentinel image version
1180 ## @param sentinel.image.registry [default: REGISTRY_NAME] Valkey Sentinel image registry
1181 ## @param sentinel.image.repository [default: REPOSITORY_NAME/valkey-sentinel] Valkey Sentinel image repository
1182 ## @skip sentinel.image.tag Valkey Sentinel image tag (immutable tags are recommended)
1183 ## @param sentinel.image.digest Valkey Sentinel image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1184 ## @param sentinel.image.pullPolicy Valkey Sentinel image pull policy
1185 ## @param sentinel.image.pullSecrets Valkey Sentinel image pull secrets
1186 ## @param sentinel.image.debug Enable image debug mode
1190 repository: chainguard-private/valkey-sentinel-iamguarded
1192 digest: sha256:691278d3dd368179737a37cf0a275f002ea748ed076c3abd2c27b68dd2691f22
1193 ## Specify a imagePullPolicy
1194 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1196 pullPolicy: IfNotPresent
1197 ## Optionally, specify an array of imagePullSecrets.
1198 ## Secrets must be manually created in the namespace.
1199 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1202 ## - myRegistryKeySecretName
1205 ## Enable debug mode
1208 ## @param sentinel.annotations Additional custom annotations for Valkey Sentinel resource
1211 ## @param sentinel.primarySet Primary set name
1213 primarySet: myprimary
1214 ## @param sentinel.quorum Sentinel Quorum
1217 ## @param sentinel.getPrimaryTimeout Amount of time to allow before get_sentinel_primary_info() times out.
1219 getPrimaryTimeout: 90
1220 ## @param sentinel.automateClusterRecovery Automate cluster recovery in cases where the last replica is not considered a good replica and Sentinel won't automatically fail over to it.
1221 ## This also prevents any new replica from starting until the last remaining replica is elected as primary to guarantee that it is the one to be elected by Sentinel, and not a newly started replica with no data.
1222 ## NOTE: This feature requires a "downAfterMilliseconds" value less or equal to 2000.
1224 automateClusterRecovery: false
1225 ## @param sentinel.valkeyShutdownWaitFailover Whether the Valkey primary container waits for the failover at shutdown (in addition to the Valkey Sentinel container).
1227 valkeyShutdownWaitFailover: true
1228 ## Sentinel timing restrictions
1229 ## @param sentinel.downAfterMilliseconds Timeout for detecting a Valkey node is down
1230 ## @param sentinel.failoverTimeout Timeout for performing the election failover
1232 downAfterMilliseconds: 60000
1233 failoverTimeout: 180000
1234 ## @param sentinel.parallelSyncs Number of replicas that can be reconfigured in parallel to use the new primary after the failover
1237 ## @param sentinel.replicaSyncCheck Wait for data full sync on replicas before marking them as ready (experimental)
1239 replicaSyncCheck: false
1240 ## @param sentinel.configuration Configuration for Valkey Sentinel nodes
1241 ## ref: https://valkey.io/topics/sentinel
1244 ## @param sentinel.command Override default container command (useful when using custom images)
1247 ## @param sentinel.args Override default container args (useful when using custom images)
1250 ## @param sentinel.enableServiceLinks Whether information about services should be injected into pod's environment variable
1252 enableServiceLinks: true
1253 ## @param sentinel.preExecCmds Additional commands to run prior to starting Valkey Sentinel
1256 ## @param sentinel.extraEnvVars Array with extra environment variables to add to Valkey Sentinel nodes
1263 ## @param sentinel.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Valkey Sentinel nodes
1266 ## @param sentinel.extraEnvVarsSecret Name of existing Secret containing extra env vars for Valkey Sentinel nodes
1268 extraEnvVarsSecret: ""
1269 ## @param sentinel.externalPrimary.enabled Use external primary for bootstrapping
1270 ## @param sentinel.externalPrimary.host External primary host to bootstrap from
1271 ## @param sentinel.externalPrimary.port Port for Valkey service external primary host
1277 ## @param sentinel.containerPorts.sentinel Container port to open on Valkey Sentinel nodes
1281 ## Configure extra options for Valkey containers' liveness and readiness probes
1282 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1283 ## @param sentinel.startupProbe.enabled Enable startupProbe on Valkey Sentinel nodes
1284 ## @param sentinel.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1285 ## @param sentinel.startupProbe.periodSeconds Period seconds for startupProbe
1286 ## @param sentinel.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1287 ## @param sentinel.startupProbe.failureThreshold Failure threshold for startupProbe
1288 ## @param sentinel.startupProbe.successThreshold Success threshold for startupProbe
1292 initialDelaySeconds: 10
1296 failureThreshold: 22
1297 ## @param sentinel.livenessProbe.enabled Enable livenessProbe on Valkey Sentinel nodes
1298 ## @param sentinel.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1299 ## @param sentinel.livenessProbe.periodSeconds Period seconds for livenessProbe
1300 ## @param sentinel.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1301 ## @param sentinel.livenessProbe.failureThreshold Failure threshold for livenessProbe
1302 ## @param sentinel.livenessProbe.successThreshold Success threshold for livenessProbe
1306 initialDelaySeconds: 20
1311 ## @param sentinel.readinessProbe.enabled Enable readinessProbe on Valkey Sentinel nodes
1312 ## @param sentinel.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1313 ## @param sentinel.readinessProbe.periodSeconds Period seconds for readinessProbe
1314 ## @param sentinel.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1315 ## @param sentinel.readinessProbe.failureThreshold Failure threshold for readinessProbe
1316 ## @param sentinel.readinessProbe.successThreshold Success threshold for readinessProbe
1320 initialDelaySeconds: 20
1325 ## @param sentinel.customStartupProbe Custom startupProbe that overrides the default one
1327 customStartupProbe: {}
1328 ## @param sentinel.customLivenessProbe Custom livenessProbe that overrides the default one
1330 customLivenessProbe: {}
1331 ## @param sentinel.customReadinessProbe Custom readinessProbe that overrides the default one
1333 customReadinessProbe: {}
1334 ## Persistence parameters
1335 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1338 ## @param sentinel.persistence.enabled Enable persistence on Valkey sentinel nodes using Persistent Volume Claims (Experimental)
1341 ## @param sentinel.persistence.storageClass Persistent Volume storage class
1342 ## If defined, storageClassName: <storageClass>
1343 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1344 ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
1347 ## @param sentinel.persistence.accessModes Persistent Volume access modes
1351 ## @param sentinel.persistence.size Persistent Volume size
1354 ## @param sentinel.persistence.annotations Additional custom annotations for the PVC
1357 ## @param sentinel.persistence.labels Additional custom labels for the PVC
1360 ## @param sentinel.persistence.selector Additional labels to match for the PVC
1367 ## @param sentinel.persistence.dataSource Custom PVC data source
1370 ## @param sentinel.persistence.medium Provide a medium for `emptyDir` volumes.
1373 ## @param sentinel.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
1376 ## persistentVolumeClaimRetentionPolicy
1377 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1378 ## @param sentinel.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1379 ## @param sentinel.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1380 ## @param sentinel.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1382 persistentVolumeClaimRetentionPolicy:
1386 ## Valkey Sentinel resource requests and limits
1387 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1388 ## @param sentinel.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if sentinel.resources is set (sentinel.resources is recommended for production).
1390 resourcesPreset: "nano"
1391 ## @param sentinel.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1402 ## @param sentinel.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1407 ## Configure Container Security Context
1408 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1409 ## @param sentinel.containerSecurityContext.enabled Enable Valkey Sentinel containers' Security Context
1410 ## @param sentinel.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1411 ## @param sentinel.containerSecurityContext.runAsUser Set Valkey Sentinel containers' Security Context runAsUser
1412 ## @param sentinel.containerSecurityContext.runAsGroup Set Valkey Sentinel containers' Security Context runAsGroup
1413 ## @param sentinel.containerSecurityContext.runAsNonRoot Set Valkey Sentinel containers' Security Context runAsNonRoot
1414 ## @param sentinel.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1415 ## @param sentinel.containerSecurityContext.allowPrivilegeEscalation Set Valkey Sentinel containers' Security Context allowPrivilegeEscalation
1416 ## @param sentinel.containerSecurityContext.seccompProfile.type Set Valkey Sentinel containers' Security Context seccompProfile
1417 ## @param sentinel.containerSecurityContext.capabilities.drop Set Valkey Sentinel containers' Security Context capabilities to drop
1419 containerSecurityContext:
1425 allowPrivilegeEscalation: false
1426 readOnlyRootFilesystem: true
1428 type: RuntimeDefault
1431 ## @param sentinel.lifecycleHooks for the Valkey sentinel container(s) to automate configuration before or after startup
1434 ## @param sentinel.extraVolumes Optionally, specify extra list of additional volumes for the Valkey Sentinel
1437 ## @param sentinel.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey Sentinel container(s)
1439 extraVolumeMounts: []
1440 ## Valkey Sentinel service parameters
1443 ## @param sentinel.service.type Valkey Sentinel service type
1446 ## @param sentinel.service.ports.valkey Valkey service port for Valkey
1447 ## @param sentinel.service.ports.sentinel Valkey service port for Valkey Sentinel
1452 ## @param sentinel.service.nodePorts.valkey Node port for Valkey
1453 ## @param sentinel.service.nodePorts.sentinel Node port for Sentinel
1454 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1455 ## NOTE: choose port between <30000-32767>
1456 ## NOTE: By leaving these values blank, they will be generated by ports-configmap
1457 ## If setting manually, please leave at least replica.replicaCount + 1 in between sentinel.service.nodePorts.valkey and sentinel.service.nodePorts.sentinel to take into account the ports that will be created while incrementing that base port
1462 ## @param sentinel.service.externalTrafficPolicy Valkey Sentinel service external traffic policy
1463 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1465 externalTrafficPolicy: Cluster
1466 ## @param sentinel.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1469 ## @param sentinel.service.clusterIP Valkey Sentinel service Cluster IP
1472 ## @param sentinel.service.createPrimary Enable primary service pointing to the current primary (experimental)
1473 ## NOTE: rbac.create need to be set to true
1475 createPrimary: false
1476 ## @param sentinel.service.loadBalancerIP Valkey Sentinel service Load Balancer IP
1477 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1480 ## @param sentinel.service.loadBalancerClass sentinel service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1481 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1483 loadBalancerClass: ""
1484 ## @param sentinel.service.loadBalancerSourceRanges Valkey Sentinel service Load Balancer sources
1485 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1487 ## loadBalancerSourceRanges:
1490 loadBalancerSourceRanges: []
1491 ## @param sentinel.service.annotations Additional custom annotations for Valkey Sentinel service
1494 ## @param sentinel.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1495 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1496 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1498 sessionAffinity: None
1499 ## @param sentinel.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `sentinel.service.sessionAffinity` is `None`
1501 ## sessionAffinityConfig:
1503 ## timeoutSeconds: 300
1505 sessionAffinityConfig: {}
1506 ## Headless service properties
1509 ## @param sentinel.service.headless.annotations Annotations for the headless service.
1512 ## @param sentinel.terminationGracePeriodSeconds Integer setting the termination grace period for the valkey-node pods
1514 terminationGracePeriodSeconds: 30
1515## @section Other Parameters
1518## @param serviceBindings.enabled Create secret for service binding (Experimental)
1519## Ref: https://servicebinding.io/service-provider/
1523## Network Policy configuration
1524## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1527 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
1530 ## @param networkPolicy.allowExternal Don't require client label for connections
1531 ## When set to false, only pods with the correct client label will have network access to the ports
1532 ## Valkey is listening on. When true, Valkey will accept connections from any source
1533 ## (with the correct destination port).
1536 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1538 allowExternalEgress: true
1539 ## @param networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy
1549 ## - matchExpressions:
1556 ## @param networkPolicy.extraEgress Add extra egress rules to the NetworkPolicy
1566 ## - matchExpressions:
1573 ## @param networkPolicy.ingressNSMatchLabels Labels to match to allow traffic from other namespaces
1574 ## @param networkPolicy.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces
1576 ingressNSMatchLabels: {}
1577 ingressNSPodMatchLabels: {}
1579 ## @param networkPolicy.metrics.allowExternal Don't require client label for connections for metrics endpoint
1580 ## When set to false, only pods with the correct client label will have network access to the metrics port
1583 ## @param networkPolicy.metrics.ingressNSMatchLabels Labels to match to allow traffic from other namespaces to metrics endpoint
1584 ## @param networkPolicy.metrics.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces to metrics endpoint
1586 ingressNSMatchLabels: {}
1587 ingressNSPodMatchLabels: {}
1588## PodSecurityPolicy configuration
1589## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1592 ## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1595 ## @param podSecurityPolicy.enabled Enable PodSecurityPolicy's RBAC rules
1598## RBAC configuration
1601 ## @param rbac.create Specifies whether RBAC resources should be created
1604 ## @param rbac.rules Custom RBAC rules to set
1616## ServiceAccount configuration
1619 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
1622 ## @param serviceAccount.name The name of the ServiceAccount to use.
1623 ## If not set and create is true, a name is generated using the common.names.fullname template
1626 ## @param serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
1627 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
1629 automountServiceAccountToken: false
1630 ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1633## Redis® Pod Disruption Budget configuration
1634## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1635## @param pdb DEPRECATED Please use `primary.pdb` and `replica.pdb` values instead
1641 ## @param tls.enabled Enable TLS traffic
1644 ## @param tls.authClients Require clients to authenticate
1647 ## @param tls.autoGenerated Enable autogenerated certificates
1649 autoGenerated: false
1650 ## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
1653 ## @param tls.certFilename Certificate filename
1656 ## @param tls.certKeyFilename Certificate Key filename
1659 ## @param tls.certCAFilename CA Certificate filename
1662 ## @param tls.dhParamsFilename File containing DH params (to support DH-based ciphers)
1664 dhParamsFilename: ""
1665## @section Metrics Parameters
1668 ## @param metrics.enabled Start a sidecar Prometheus Exporter to expose Valkey metrics
1671 ## Iamguarded Redis(R) Exporter image
1672 ## @param metrics.image.registry [default: REGISTRY_NAME] Redis(R) Exporter image registry
1673 ## @param metrics.image.repository [default: REPOSITORY_NAME/redis-exporter] Redis(R) Exporter image repository
1674 ## @skip metrics.image.tag Redis(R) Exporter image tag (immutable tags are recommended)
1675 ## @param metrics.image.digest Redis(R) Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1676 ## @param metrics.image.pullPolicy Redis(R) Exporter image pull policy
1677 ## @param metrics.image.pullSecrets Redis(R) Exporter image pull secrets
1681 repository: chainguard-private/prometheus-redis-exporter-iamguarded
1683 digest: sha256:828ee291571b60e0f3164401043f0822bcebe5eff83f2694702c8f4903e21957
1684 pullPolicy: IfNotPresent
1685 ## Optionally, specify an array of imagePullSecrets.
1686 ## Secrets must be manually created in the namespace.
1687 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1690 ## - myRegistryKeySecretName
1693 ## @param metrics.containerPorts.http Metrics HTTP container port
1697 ## Configure extra options for Valkey containers' liveness, readiness & startup probes
1698 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
1699 ## @param metrics.startupProbe.enabled Enable startupProbe on Valkey replicas nodes
1700 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1701 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1702 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1703 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1704 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1708 initialDelaySeconds: 10
1713 ## @param metrics.livenessProbe.enabled Enable livenessProbe on Valkey replicas nodes
1714 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1715 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1716 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1717 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1718 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1722 initialDelaySeconds: 10
1727 ## @param metrics.readinessProbe.enabled Enable readinessProbe on Valkey replicas nodes
1728 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1729 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1730 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1731 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1732 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1736 initialDelaySeconds: 5
1741 ## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1743 customStartupProbe: {}
1744 ## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1746 customLivenessProbe: {}
1747 ## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1749 customReadinessProbe: {}
1750 ## @param metrics.command Override default metrics container init command (useful when using custom images)
1753 ## @param metrics.valkeyTargetHost A way to specify an alternative Valkey hostname
1754 ## Useful for certificate CN/SAN matching
1756 valkeyTargetHost: "localhost"
1757 ## @param metrics.extraArgs Extra arguments for Redis(R) Exporter
1760 ## check-keys: myKey,myOtherKey
1763 ## @param metrics.extraEnvVars Array with extra environment variables to add to Redis(R) Exporter
1770 ## Configure Container Security Context
1771 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1772 ## @param metrics.containerSecurityContext.enabled Enable Redis(R) Exporter containers' Security Context
1773 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1774 ## @param metrics.containerSecurityContext.runAsUser Set Redis(R) Exporter containers' Security Context runAsUser
1775 ## @param metrics.containerSecurityContext.runAsGroup Set Redis(R) Exporter containers' Security Context runAsGroup
1776 ## @param metrics.containerSecurityContext.runAsNonRoot Set Redis(R) Exporter containers' Security Context runAsNonRoot
1777 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set Redis(R) Exporter containers' Security Context allowPrivilegeEscalation
1778 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1779 ## @param metrics.containerSecurityContext.seccompProfile.type Set Redis(R) Exporter containers' Security Context seccompProfile
1780 ## @param metrics.containerSecurityContext.capabilities.drop Set Redis(R) Exporter containers' Security Context capabilities to drop
1782 containerSecurityContext:
1788 allowPrivilegeEscalation: false
1789 readOnlyRootFilesystem: true
1791 type: RuntimeDefault
1794 ## @param metrics.extraVolumes Optionally, specify extra list of additional volumes for the Valkey metrics sidecar
1797 ## @param metrics.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey metrics sidecar
1799 extraVolumeMounts: []
1800 ## Redis(R) Exporter resource requests and limits
1801 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1802 ## @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).
1804 resourcesPreset: "nano"
1805 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1816 ## @param metrics.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1817 ## @param metrics.fips.golang Configure Golang FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1823 ## @param metrics.podLabels Extra labels for Redis(R) Exporter pods
1824 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1827 ## @param metrics.podAnnotations [object] Annotations for Redis(R) Exporter pods
1828 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1831 prometheus.io/scrape: "true"
1832 prometheus.io/port: "9121"
1833 ## Redis(R) Exporter service parameters
1836 ## @param metrics.service.enabled Create Service resource(s) for scraping metrics using PrometheusOperator ServiceMonitor, can be disabled when using a PodMonitor
1839 ## @param metrics.service.type Redis(R) Exporter service type
1842 ## @param metrics.service.ports.http Redis(R) Exporter service port
1846 ## @param metrics.service.externalTrafficPolicy Redis(R) Exporter service external traffic policy
1847 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1849 externalTrafficPolicy: Cluster
1850 ## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1853 ## @param metrics.service.loadBalancerIP Redis(R) Exporter service Load Balancer IP
1854 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1857 ## @param metrics.service.loadBalancerClass Exporter service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1858 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1860 loadBalancerClass: ""
1861 ## @param metrics.service.loadBalancerSourceRanges Redis(R) Exporter service Load Balancer sources
1862 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1864 ## loadBalancerSourceRanges:
1867 loadBalancerSourceRanges: []
1868 ## @param metrics.service.annotations Additional custom annotations for Redis(R) Exporter service
1871 ## @param metrics.service.clusterIP Redis(R) Exporter service Cluster IP
1874 ## Prometheus Service Monitor
1875 ## ref: https://github.com/coreos/prometheus-operator
1876 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1879 ## @param metrics.serviceMonitor.port the service port to scrape metrics from
1882 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor resource(s) for scraping metrics using PrometheusOperator
1885 ## @param metrics.serviceMonitor.namespace The namespace in which the ServiceMonitor will be created
1888 ## @param metrics.serviceMonitor.interval The interval at which metrics should be scraped
1891 ## @param metrics.serviceMonitor.scrapeTimeout The timeout after which the scrape is ended
1894 ## @param metrics.serviceMonitor.relabelings Metrics RelabelConfigs to apply to samples before scraping.
1897 ## @param metrics.serviceMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
1899 metricRelabelings: []
1900 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1903 ## @param metrics.serviceMonitor.additionalLabels Additional labels that can be used so ServiceMonitor resource(s) can be discovered by Prometheus
1905 additionalLabels: {}
1906 ## @param metrics.serviceMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
1909 ## @param metrics.serviceMonitor.sampleLimit Limit of how many samples should be scraped from every Pod
1912 ## @param metrics.serviceMonitor.targetLimit Limit of how many targets should be scraped
1915 ## @param metrics.serviceMonitor.additionalEndpoints Additional endpoints to scrape (e.g., sentinel)
1916 ## Example to scrape sentinel metrics, also to in order distinguish between Sentinel and Valkey container metrics
1917 ## add metricRelabelings with label like app=valkey to main valkey pod-monitor port:
1918 ## additionalEndpoints:
1919 ## - interval: "30s"
1923 ## target: ["localhost:26379"]
1924 ## metricRelabelings:
1925 ## - targetLabel: "app"
1926 ## replacement: "sentinel"
1928 additionalEndpoints: []
1929 ## Prometheus Pod Monitor
1930 ## ref: https://github.com/coreos/prometheus-operator
1931 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#podmonitor
1934 ## @param metrics.podMonitor.port the pod port to scrape metrics from
1937 ## @param metrics.podMonitor.enabled Create PodMonitor resource(s) for scraping metrics using PrometheusOperator
1940 ## @param metrics.podMonitor.namespace The namespace in which the PodMonitor will be created
1943 ## @param metrics.podMonitor.interval The interval at which metrics should be scraped
1946 ## @param metrics.podMonitor.scrapeTimeout The timeout after which the scrape is ended
1949 ## @param metrics.podMonitor.relabelings Metrics RelabelConfigs to apply to samples before scraping.
1952 ## @param metrics.podMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
1954 ## metricRelabelings:
1955 ## - targetLabel: "app"
1956 ## replacement: "valkey"
1958 metricRelabelings: []
1959 ## @param metrics.podMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1962 ## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitor resource(s) can be discovered by Prometheus
1964 additionalLabels: {}
1965 ## @param metrics.podMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
1968 ## @param metrics.podMonitor.sampleLimit Limit of how many samples should be scraped from every Pod
1971 ## @param metrics.podMonitor.targetLimit Limit of how many targets should be scraped
1974 ## @param metrics.podMonitor.additionalEndpoints Additional endpoints to scrape (e.g., sentinel)
1976 ## additionalEndpoints:
1977 ## - interval: "30s"
1981 ## target: ["localhost:26379"]
1982 ## metricRelabelings:
1983 ## - targetLabel: "app"
1984 ## replacement: "sentinel"
1986 additionalEndpoints: []
1987 ## Custom PrometheusRule to be defined
1988 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1991 ## @param metrics.prometheusRule.enabled Create a custom prometheusRule Resource for scraping metrics using PrometheusOperator
1994 ## @param metrics.prometheusRule.namespace The namespace in which the prometheusRule will be created
1997 ## @param metrics.prometheusRule.additionalLabels Additional labels for the prometheusRule
1999 additionalLabels: {}
2000 ## @param metrics.prometheusRule.rules Custom Prometheus rules
2003 ## - alert: ValkeyDown
2004 ## expr: valkey_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
2009 ## summary: Valkey instance {{ "{{ $labels.instance }}" }} down
2010 ## description: Valkey instance {{ "{{ $labels.instance }}" }} is down
2011 ## - alert: ValkeyMemoryHigh
2013 ## valkey_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
2015 ## valkey_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
2021 ## summary: Valkey instance {{ "{{ $labels.instance }}" }} is using too much memory
2023 ## Valkey instance {{ "{{ $labels.instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
2024 ## - alert: ValkeyKeyEviction
2026 ## increase(valkey_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
2031 ## summary: Valkey instance {{ "{{ $labels.instance }}" }} has evicted keys
2033 ## Valkey instance {{ "{{ $labels.instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
2036## @section Init Container Parameters
2039## 'volumePermissions' init container parameters
2040## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
2041## based on the *podSecurityContext/*containerSecurityContext parameters
2044 ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
2047 ## OS Shell + Utility image
2048 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
2049 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
2050 ## @skip volumePermissions.image.tag OS Shell + Utility image tag (immutable tags are recommended)
2051 ## @param volumePermissions.image.digest OS Shell + Utility image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2052 ## @param volumePermissions.image.pullPolicy OS Shell + Utility image pull policy
2053 ## @param volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets
2057 repository: chainguard-private/os-shell-iamguarded
2059 digest: sha256:7401ee05d8e0e6a6be960433db429bf05a6ca21be356b99cd87597199fb355a2
2060 pullPolicy: IfNotPresent
2061 ## Optionally, specify an array of imagePullSecrets.
2062 ## Secrets must be manually created in the namespace.
2063 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2066 ## - myRegistryKeySecretName
2069 ## Init container's resource requests and limits
2070 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2071 ## @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).
2073 resourcesPreset: "nano"
2074 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2085 ## @param volumePermissions.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2090 ## Init container Security Context
2091 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2092 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2093 ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
2094 ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
2095 ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
2096 ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
2098 containerSecurityContext:
2101## Kubectl InitContainer
2102## used by Sentinel to update the isPrimary label on the Valkey(TM) pods
2105 ## Iamguarded Kubectl image version
2106 ## @param kubectl.image.registry [default: REGISTRY_NAME] Kubectl image registry
2107 ## @param kubectl.image.repository [default: REPOSITORY_NAME/kubectl] Kubectl image repository
2108 ## @skip kubectl.image.tag Kubectl image tag (immutable tags are recommended), by default, using the current version
2109 ## @param kubectl.image.digest Kubectl image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2110 ## @param kubectl.image.pullPolicy Kubectl image pull policy
2111 ## @param kubectl.image.pullSecrets Kubectl pull secrets
2115 repository: chainguard-private/kubectl-iamguarded
2117 digest: sha256:ca17a106ef9da6832aa3e992bbf0b3957def6c4ca50c12f583083e8a2affe902
2118 ## Specify a imagePullPolicy
2119 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
2121 pullPolicy: IfNotPresent
2122 ## Optionally, specify an array of imagePullSecrets.
2123 ## Secrets must be manually created in the namespace.
2124 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2127 ## - myRegistryKeySecretName
2130 ## @param kubectl.command kubectl command to execute
2132 command: ["/opt/iamguarded/scripts/kubectl-scripts/update-primary-label.sh"]
2133 ## Configure Container Security Context
2134 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
2135 ## @param kubectl.containerSecurityContext.enabled Enable kubectl containers' Security Context
2136 ## @param kubectl.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2137 ## @param kubectl.containerSecurityContext.runAsUser Set kubectl containers' Security Context runAsUser
2138 ## @param kubectl.containerSecurityContext.runAsGroup Set kubectl containers' Security Context runAsGroup
2139 ## @param kubectl.containerSecurityContext.runAsNonRoot Set kubectl containers' Security Context runAsNonRoot
2140 ## @param kubectl.containerSecurityContext.allowPrivilegeEscalation Set kubectl containers' Security Context allowPrivilegeEscalation
2141 ## @param kubectl.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
2142 ## @param kubectl.containerSecurityContext.seccompProfile.type Set kubectl containers' Security Context seccompProfile
2143 ## @param kubectl.containerSecurityContext.capabilities.drop Set kubectl containers' Security Context capabilities to drop
2145 containerSecurityContext:
2151 allowPrivilegeEscalation: false
2152 readOnlyRootFilesystem: true
2154 type: RuntimeDefault
2157 ## Iamguarded Kubectl resource requests and limits
2158 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2159 ## @param kubectl.resources.limits The resources limits for the kubectl containers
2160 ## @param kubectl.resources.requests The requested resources for the kubectl containers
2165 ## @param kubectl.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2166 ## @param kubectl.fips.golang Configure Golang FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2172## @section useExternalDNS Parameters
2174## @param useExternalDNS.enabled Enable various syntax that would enable external-dns to work. Note this requires a working installation of `external-dns` to be usable.
2175## @param useExternalDNS.additionalAnnotations Extra annotations to be utilized when `external-dns` is enabled.
2176## @param useExternalDNS.annotationKey The annotation key utilized when `external-dns` is enabled. Setting this to `false` will disable annotations.
2177## @param useExternalDNS.suffix The DNS suffix utilized when `external-dns` is enabled. Note that we prepend the suffix with the full name of the release.
2182 annotationKey: external-dns.alpha.kubernetes.io/
2183 additionalAnnotations: {}