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 Valkey password (overrides `password`)
28 ## - myRegistryKeySecretName
31 defaultStorageClass: ""
33 ## Security parameters
36 ## @param global.security.allowInsecureImages Allows skipping image verification
37 allowInsecureImages: false
40 ## Compatibility adaptations for Kubernetes platforms
43 ## Compatibility adaptations for Openshift
46 ## @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)
48 adaptSecurityContext: auto
50## @section Valkey Cluster Common parameters
53## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
56## @param fullnameOverride String to fully override common.names.fullname template
59## @param clusterDomain Kubernetes Cluster Domain
61clusterDomain: cluster.local
62## @param commonAnnotations Annotations to add to all deployed objects
65## @param commonLabels Labels to add to all deployed objects
68## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
71## Enable diagnostic mode in the deployment
74 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
77 ## @param diagnosticMode.command Command to override all containers in the deployment
81 ## @param diagnosticMode.args Args to override all containers in the deployment
85## Iamguarded Valkey image version
86## @param image.registry [default: REGISTRY_NAME] Valkey cluster image registry
87## @param image.repository [default: REPOSITORY_NAME/valkey-cluster] Valkey cluster image repository
88## @skip image.tag Valkey cluster image tag (immutable tags are recommended)
89## @param image.digest Valkey cluster image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
90## @param image.pullPolicy Valkey cluster image pull policy
91## @param image.pullSecrets Specify docker-registry secret names as an array
92## @param image.debug Enable image debug mode
96 repository: chainguard-private/valkey-cluster-iamguarded
98 digest: sha256:42c3b18c14ba6a3eb373cebca4d8b978fe4511ba701321ea24b964e7c11244da
99 ## Specify a imagePullPolicy
100 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
102 pullPolicy: IfNotPresent
103 ## Optionally specify an array of imagePullSecrets.
104 ## Secrets must be manually created in the namespace.
105 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
108 ## - myRegistryKeySecretName
114## Network Policy configuration
115## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
118 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
121 ## @param networkPolicy.allowExternal The Policy model to apply
122 ## When set to false, only pods with the correct client label will have network access to the ports Valkey Cluster is
123 ## listening on. When true, Valkey Cluster will accept connections from any source (with the correct destination port).
126 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
128 allowExternalEgress: true
129 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
139 ## - matchExpressions:
146 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
156 ## - matchExpressions:
163 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
164 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
166 ingressNSMatchLabels: {}
167 ingressNSPodMatchLabels: {}
169 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
172 ## @param serviceAccount.name The name of the ServiceAccount to create
173 ## If not set and create is true, a name is generated using the fullname template
176 ## @param serviceAccount.annotations Annotations for Cassandra Service Account
179 ## @param serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
181 automountServiceAccountToken: false
183 ## @param rbac.create Specifies whether RBAC resources should be created
187 ## @param rbac.role.rules Rules to create. It follows the role specification
192 ## - podsecuritypolicies
196 ## - gce.unprivileged
199## Valkey pod Security Context
200## @param podSecurityContext.enabled Enable Valkey pod Security Context
201## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
202## @param podSecurityContext.supplementalGroups Set filesystem extra groups
203## @param podSecurityContext.fsGroup Group ID for the pods
204## @param podSecurityContext.sysctls Set namespaced sysctls for the pods
208 fsGroupChangePolicy: Always
209 supplementalGroups: []
211 ## Uncomment the setting below to increase the net.core.somaxconn value
214 ## - name: net.core.somaxconn
218## @param podDisruptionBudget DEPRECATED please use pdb instead
219## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions
221podDisruptionBudget: {}
222## Pod Disruption Budget configuration
223## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
226 ## @param pdb.create Created a PodDisruptionBudget
229 ## @param pdb.minAvailable Min number of pods that must still be available after the eviction.
230 ## You can specify an integer or a percentage by setting the value to a string representation of a percentage (eg. "50%"). It will be disabled if set to 0
233 ## @param pdb.maxUnavailable Max number of pods that can be unavailable after the eviction.
234 ## You can specify an integer or a percentage by setting the value to a string representation of a percentage (eg. "50%"). It will be disabled if set to 0
237## Containers Security Context
238## @param containerSecurityContext.enabled Enabled containers' Security Context
239## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
240## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
241## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
242## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
243## @param containerSecurityContext.privileged Set container's Security Context privileged
244## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
245## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
246## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
247## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
249containerSecurityContext:
256 readOnlyRootFilesystem: true
257 allowPrivilegeEscalation: false
261 type: "RuntimeDefault"
262## @param usePassword Use password authentication
265## @param password Valkey password (ignored if existingSecret set)
266## Defaults to a random 10-character alphanumeric string if not set and usePassword is true
269## @param existingSecret Name of existing secret object (for password authentication)
272## @param existingSecretPasswordKey Name of key containing password to be retrieved from the existing secret
274existingSecretPasswordKey: ""
275## @param usePasswordFiles Mount passwords as files instead of environment variables
277usePasswordFiles: true
282 ## @param tls.enabled Enable TLS support for replication traffic
285 ## @param tls.authClients Require clients to authenticate or not
288 ## @param tls.autoGenerated Generate automatically self-signed TLS certificates
291 ## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
294 ## @param tls.certificatesSecret DEPRECATED. Use tls.existingSecret instead
296 certificatesSecret: ""
297 ## @param tls.certFilename Certificate filename
300 ## @param tls.certKeyFilename Certificate key filename
303 ## @param tls.certCAFilename CA Certificate filename
306 ## @param tls.dhParamsFilename File containing DH params (in order to support DH based ciphers)
309## Valkey Service properties for standalone mode.
312 ## @param service.ports.valkey Kubernetes Valkey service port
316 ## Node ports to expose
317 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
318 ## @param service.nodePorts.valkey Node port for Valkey
322 ## @param service.extraPorts Extra ports to expose in the service (normally used with the `sidecar` value)
325 ## @param service.annotations Provide any additional annotations which may be required.
326 ## This can be used to set the LoadBalancer service type to internal only.
327 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
330 ## @param service.labels Additional labels for valkey service
333 ## @param service.type Service type for default valkey service
334 ## Setting this to LoadBalancer may require corresponding service annotations for loadbalancer creation to succeed.
335 ## Currently supported types are ClusterIP (default) and LoadBalancer
338 ## @param service.clusterIP Service Cluster IP
343 ## @param service.loadBalancerIP Load balancer IP if `service.type` is `LoadBalancer`
344 ## If service.type is LoadBalancer, request a specific static IP address if supported by the cloud provider, otherwise leave blank
347 ## @param service.loadBalancerSourceRanges Service Load Balancer sources
348 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
350 ## loadBalancerSourceRanges:
353 loadBalancerSourceRanges: []
354 ## @param service.externalTrafficPolicy Service external traffic policy
355 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
357 externalTrafficPolicy: Cluster
358 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
359 ## If "ClientIP", consecutive client requests will be directed to the same Pod
360 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
362 sessionAffinity: None
363 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
364 ## sessionAffinityConfig:
366 ## timeoutSeconds: 300
368 sessionAffinityConfig: {}
369 ## Headless service properties
372 ## @param service.headless.annotations Annotations for the headless service.
375## Enable persistence using Persistent Volume Claims
376## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
379 ## @param persistence.enabled Enable persistence on Valkey
380 ## If enabled, nodes are using Persistent Volume Claims
381 ## If disabled, an emptyDir volume is used. This is not recommended.
384 ## @param persistence.path Path to mount the volume at, to use other images Valkey images.
386 path: /iamguarded/valkey/data
387 ## @param persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
390 ## @param persistence.storageClass Storage class of backing PVC
391 ## If defined, storageClassName: <storageClass>
392 ## If set to "-", storageClassName: "", which disables dynamic provisioning
393 ## If undefined (the default) or set to null, no storageClassName spec is
394 ## set, choosing the default provisioner. (gp2 on AWS, standard on
395 ## GKE, AWS & OpenStack)
398 ## @param persistence.annotations Persistent Volume Claim annotations
401 ## @param persistence.labels Persistent Volume Claim labels
404 ## @param persistence.accessModes Persistent Volume Access Modes
408 ## @param persistence.size Size of data volume
411 ## @param persistence.matchLabels Persistent Volume selectors
412 ## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
415 ## @param persistence.matchExpressions matchExpressions Persistent Volume selectors
418## persistentVolumeClaimRetentionPolicy
419## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
420## @param persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
421## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
422## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
423persistentVolumeClaimRetentionPolicy:
427## Init containers parameters:
428## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
431 ## @param volumePermissions.enabled Enable init container that changes volume permissions in the registry (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
434 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
435 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
436 ## @skip volumePermissions.image.tag Init container volume-permissions image tag
437 ## @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
438 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
439 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
443 repository: chainguard-private/os-shell-iamguarded
445 digest: sha256:7401ee05d8e0e6a6be960433db429bf05a6ca21be356b99cd87597199fb355a2
446 pullPolicy: IfNotPresent
447 ## Optionally specify an array of imagePullSecrets.
448 ## Secrets must be manually created in the namespace.
449 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
452 ## - myRegistryKeySecretName
455 ## Containers Security Context
456 ## @param volumePermissions.containerSecurityContext.enabled Enable Containers' Security Context
457 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
458 ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the containers.
459 ## @param volumePermissions.containerSecurityContext.privileged Run container as privileged
461 containerSecurityContext:
466 ## Container resource requests and limits
467 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
468 ## @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).
470 resourcesPreset: "nano"
471 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
482## @section Valkey statefulset parameters
485 ## @param valkey.command Valkey entrypoint string. The command `valkey-server` is executed if this is not provided
488 ## @param valkey.args Arguments for the provided command if needed
491 ## @param valkey.updateStrategy.type Argo Workflows statefulset strategy type
492 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
496 ## Can be set to RollingUpdate or OnDelete
499 ## @param valkey.updateStrategy.rollingUpdate.partition Partition update strategy
500 ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
504 ## @param valkey.podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
505 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
507 podManagementPolicy: Parallel
508 ## @param valkey.automountServiceAccountToken Mount Service Account token in pod
510 automountServiceAccountToken: false
511 ## @param valkey.hostAliases Deployment pod host aliases
512 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
515 ## @param valkey.hostNetwork Host networking requested for this pod. Use the host's network namespace.
516 ## https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podspec-v1-core
519 ## @param valkey.useAOFPersistence Whether to use AOF Persistence mode or not
520 ## It is strongly recommended to use this type when dealing with clusters
521 ## ref: https://valkey.io/topics/persistence#append-only-file
522 ## ref: https://valkey.io/topics/cluster-tutorial#creating-and-using-a-valkey-cluster
524 useAOFPersistence: "yes"
525 ## @param valkey.containerPorts.valkey Valkey port
526 ## @param valkey.containerPorts.bus The busPort should be obtained adding 10000 to the valkeyPort. By default: 10000 + 6379 = 16379
531 ## @param valkey.lifecycleHooks LifecycleHook to set additional configuration before or after startup. Evaluated as a template
534 ## @param valkey.extraVolumes Extra volumes to add to the deployment
537 ## @param valkey.extraVolumeMounts Extra volume mounts to add to the container
539 extraVolumeMounts: []
540 ## @param valkey.customLivenessProbe Override default liveness probe
542 customLivenessProbe: {}
543 ## @param valkey.customReadinessProbe Override default readiness probe
545 customReadinessProbe: {}
546 ## @param valkey.customStartupProbe Custom startupProbe that overrides the default one
548 customStartupProbe: {}
549 ## @param valkey.initContainers Extra init containers to add to the deployment
552 ## @param valkey.sidecars Extra sidecar containers to add to the deployment
555 ## @param valkey.podLabels Additional labels for Valkey pod
556 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
559 ## @param valkey.priorityClassName Valkey Primary pod priorityClassName
561 priorityClassName: ""
562 ## @param valkey.defaultConfigOverride Optional default Valkey configuration for the nodes
563 ## If not set, the default Valkey configuration from the chart is used
564 ## ref: https://valkey.io/topics/config
566 defaultConfigOverride: ""
567 ## @param valkey.configmap Additional Valkey configuration for the nodes
568 ## ref: https://valkey.io/topics/config
571 ## @param valkey.extraEnvVars An array to add extra environment variables
573 ## - name: BEARER_AUTH
577 ## @param valkey.extraEnvVarsCM ConfigMap with extra environment variables
580 ## @param valkey.extraEnvVarsSecret Secret with extra environment variables
582 extraEnvVarsSecret: ""
583 ## @param valkey.podAnnotations Valkey additional annotations
584 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
587 ## Valkey resource requests and limits
588 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
589 ## @param valkey.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if valkey.resources is set (valkey.resources is recommended for production).
591 resourcesPreset: "nano"
592 ## @param valkey.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
603 ## @param valkey.schedulerName Use an alternate scheduler, e.g. "stork".
604 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
607 ## @param valkey.shareProcessNamespace Enable shared process namespace in a pod.
608 ## If set to false (default), each container will run in separate namespace, valkey will have PID=1.
609 ## If set to true, the /pause will run as init process and will reap any zombie PIDs,
610 ## for example, generated by a custom exec probe running longer than a probe timeoutSeconds.
611 ## Enable this only if customLivenessProbe or customReadinessProbe is used and zombie PIDs are accumulating.
612 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
614 shareProcessNamespace: false
615 ## Configure extra options for Valkey liveness probes
616 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
617 ## @param valkey.livenessProbe.enabled Enable livenessProbe
618 ## @param valkey.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
619 ## @param valkey.livenessProbe.periodSeconds Period seconds for livenessProbe
620 ## @param valkey.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
621 ## @param valkey.livenessProbe.failureThreshold Failure threshold for livenessProbe
622 ## @param valkey.livenessProbe.successThreshold Success threshold for livenessProbe
626 initialDelaySeconds: 5
631 ## Configure extra options for Valkey readiness probes
632 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
633 ## @param valkey.readinessProbe.enabled Enable readinessProbe
634 ## @param valkey.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
635 ## @param valkey.readinessProbe.periodSeconds Period seconds for readinessProbe
636 ## @param valkey.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
637 ## @param valkey.readinessProbe.failureThreshold Failure threshold for readinessProbe
638 ## @param valkey.readinessProbe.successThreshold Success threshold for readinessProbe
642 initialDelaySeconds: 5
647 ## @param valkey.startupProbe.enabled Enable startupProbe
648 ## @param valkey.startupProbe.path Path to check for startupProbe
649 ## @param valkey.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
650 ## @param valkey.startupProbe.periodSeconds Period seconds for startupProbe
651 ## @param valkey.startupProbe.timeoutSeconds Timeout seconds for startupProbe
652 ## @param valkey.startupProbe.failureThreshold Failure threshold for startupProbe
653 ## @param valkey.startupProbe.successThreshold Success threshold for startupProbe
658 initialDelaySeconds: 300
663 ## @param valkey.podAffinityPreset Valkey pod affinity preset. Ignored if `valkey.affinity` is set. Allowed values: `soft` or `hard`
664 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
666 podAffinityPreset: ""
667 ## @param valkey.podAntiAffinityPreset Valkey pod anti-affinity preset. Ignored if `valkey.affinity` is set. Allowed values: `soft` or `hard`
668 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
670 podAntiAffinityPreset: soft
671 ## Valkey node affinity preset
672 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
675 ## @param valkey.nodeAffinityPreset.type Valkey node affinity preset type. Ignored if `valkey.affinity` is set. Allowed values: `soft` or `hard`
678 ## @param valkey.nodeAffinityPreset.key Valkey node label key to match Ignored if `valkey.affinity` is set.
680 ## key: "kubernetes.io/e2e-az-name"
683 ## @param valkey.nodeAffinityPreset.values Valkey node label values to match. Ignored if `valkey.affinity` is set.
690 ## @param valkey.affinity Affinity settings for Valkey pod assignment
691 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
692 ## Note: valkey.podAffinityPreset, valkey.podAntiAffinityPreset, and valkey.nodeAffinityPreset will be ignored when it's set
695 ## @param valkey.nodeSelector Node labels for Valkey pods assignment
696 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
699 ## @param valkey.tolerations Tolerations for Valkey pods assignment
700 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
703 ## @param valkey.topologySpreadConstraints Pod topology spread constraints for Valkey pod
704 ## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
705 ## The value is evaluated as a template
707 topologySpreadConstraints: []
708## @section Cluster update job parameters
711## Cluster update job settings
714 ## @param updateJob.activeDeadlineSeconds Number of seconds the Job to create the cluster will be waiting for the Nodes to be ready.
716 activeDeadlineSeconds: 600
717 ## @param updateJob.command Container command (using container default if not set)
720 ## @param updateJob.args Container args (using container default if not set)
723 ## @param updateJob.automountServiceAccountToken Mount Service Account token in pod
725 automountServiceAccountToken: false
726 ## @param updateJob.hostAliases Deployment pod host aliases
727 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
730 ## @param updateJob.helmHook Job Helm hook
731 ## https://helm.sh/docs/topics/charts_hooks/#the-available-hooks
733 helmHook: post-upgrade
734 ## @param updateJob.annotations Job annotations
737 ## @param updateJob.podAnnotations Job pod annotations
740 ## @param updateJob.podLabels Pod extra labels
741 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
744 ## @param updateJob.extraEnvVars An array to add extra environment variables
746 ## - name: BEARER_AUTH
750 ## @param updateJob.extraEnvVarsCM ConfigMap containing extra environment variables
753 ## @param updateJob.extraEnvVarsSecret Secret containing extra environment variables
755 extraEnvVarsSecret: ""
756 ## @param updateJob.extraVolumes Extra volumes to add to the deployment
759 ## @param updateJob.extraVolumeMounts Extra volume mounts to add to the container
761 extraVolumeMounts: []
762 ## @param updateJob.initContainers Extra init containers to add to the deployment
765 ## @param updateJob.podAffinityPreset Update job pod affinity preset. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
766 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
768 podAffinityPreset: ""
769 ## @param updateJob.podAntiAffinityPreset Update job pod anti-affinity preset. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
770 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
772 podAntiAffinityPreset: soft
773 ## Update job node affinity preset
774 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
777 ## @param updateJob.nodeAffinityPreset.type Update job node affinity preset type. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
780 ## @param updateJob.nodeAffinityPreset.key Update job node label key to match Ignored if `updateJob.affinity` is set.
782 ## key: "kubernetes.io/e2e-az-name"
785 ## @param updateJob.nodeAffinityPreset.values Update job node label values to match. Ignored if `updateJob.affinity` is set.
792 ## @param updateJob.affinity Affinity for update job pods assignment
793 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
794 ## Note: updateJob.podAffinityPreset, updateJob.podAntiAffinityPreset, and updateJob.nodeAffinityPreset will be ignored when it's set
797 ## @param updateJob.nodeSelector Node labels for update job pods assignment
798 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
801 ## @param updateJob.tolerations Tolerations for update job pods assignment
802 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
805 ## @param updateJob.priorityClassName Priority class name
807 priorityClassName: ""
808 ## Container resource requests and limits
809 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
810 ## We usually recommend not to specify default resources and to leave this as a conscious
811 ## choice for the user. This also increases chances charts run on environments with little
812 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
813 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
814 ## @param updateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if updateJob.resources is set (updateJob.resources is recommended for production).
816 resourcesPreset: "nano"
817 ## @param updateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
828## @section Cluster management parameters
831## Valkey Cluster settings
834 ## @param cluster.init Enable the initialization of the Valkey Cluster
837 ## Number of Valkey nodes to be deployed
840 ## This is total number of nodes including the replicas. Meaning there will be 3 primary and 3 replica
841 ## nodes (as replica count is set to 1 by default, there will be 1 replica per primary node).
842 ## Hence, nodes = numberOfPrimaryNodes + numberOfPrimaryNodes * replicas
844 ## @param cluster.nodes The number of primary nodes should always be >= 3, otherwise cluster creation will fail
847 ## @param cluster.replicas Number of replicas for every primary in the cluster
848 ## Parameter to be passed as --cluster-replicas to the valkey-cli --cluster create
849 ## 1 means that we want a replica for every primary created
852 ## Configuration to access the Valkey Cluster from outside the Kubernetes cluster
855 ## @param cluster.externalAccess.enabled Enable access to the Valkey
858 ## @param cluster.externalAccess.hostMode Set cluster preferred endpoint type as hostname
862 ## @param cluster.externalAccess.service.disableLoadBalancerIP Disable use of `Service.spec.loadBalancerIP`
864 disableLoadBalancerIP: false
865 ## @param cluster.externalAccess.service.loadBalancerIPAnnotaion Name of annotation to specify fixed IP for service in. Disables `Service.spec.loadBalancerIP` if not empty
867 loadBalancerIPAnnotaion: ""
868 ## @param cluster.externalAccess.service.type Type for the services used to expose every Pod
869 ## At this moment only LoadBalancer is supported
872 ## @param cluster.externalAccess.service.port Port for the services used to expose every Pod
875 ## @param cluster.externalAccess.service.loadBalancerIP Array of load balancer IPs for each Valkey node. Length must be the same as cluster.nodes
878 ## @param cluster.externalAccess.service.loadBalancerSourceRanges Service Load Balancer sources
879 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
881 ## loadBalancerSourceRanges:
884 loadBalancerSourceRanges: []
885 ## @param cluster.externalAccess.service.annotations Annotations to add to the services used to expose every Pod of the Valkey Cluster
888 ## This section allows to update the Valkey cluster nodes.
891 ## @param cluster.update.addNodes Boolean to specify if you want to add nodes after the upgrade
892 ## Setting this to true a hook will add nodes to the Valkey cluster after the upgrade. currentNumberOfNodes and currentNumberOfReplicas is required
895 ## @param cluster.update.currentNumberOfNodes Number of currently deployed Valkey nodes
897 currentNumberOfNodes: 6
898 ## @param cluster.update.currentNumberOfReplicas Number of currently deployed Valkey replicas
900 currentNumberOfReplicas: 1
901 ## @param cluster.update.newExternalIPs External IPs obtained from the services for the new nodes to add to the cluster
904## @section Metrics sidecar parameters
907## Prometheus Exporter / Metrics
910 ## @param metrics.enabled Start a side-car prometheus exporter
913 ## @param metrics.image.registry [default: REGISTRY_NAME] Valkey exporter image registry
914 ## @param metrics.image.repository [default: REPOSITORY_NAME/redis-exporter] Valkey exporter image name
915 ## @skip metrics.image.tag Valkey exporter image tag
916 ## @param metrics.image.digest Valkey exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
917 ## @param metrics.image.pullPolicy Valkey exporter image pull policy
918 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
922 repository: chainguard-private/prometheus-redis-exporter-iamguarded
924 digest: sha256:828ee291571b60e0f3164401043f0822bcebe5eff83f2694702c8f4903e21957
925 pullPolicy: IfNotPresent
926 ## Optionally specify an array of imagePullSecrets.
927 ## Secrets must be manually created in the namespace.
928 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
931 ## - myRegistryKeySecretName
934 ## @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).
936 resourcesPreset: "nano"
937 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
946 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
949 ## @param metrics.extraArgs Extra arguments for the binary; possible values [here](https://github.com/oliver006/redis_exporter)
951 ## check-keys: myKey,myOtherKey
954 ## @param metrics.extraEnvVars Array with extra environment variables to add to Valkey exporter
961 ## @param metrics.containerPorts.http Metrics HTTP container port
965 ## @param metrics.podAnnotations [object] Additional annotations for Metrics exporter pod
968 prometheus.io/scrape: "true"
969 prometheus.io/port: "{{ .Values.metrics.containerPorts.http }}"
970 ## @param metrics.podLabels Additional labels for Metrics exporter pod
973 ## Containers' Security Context - All fields other than `enabled` get added to the metrics container's security context
974 ## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
975 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
976 ## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
977 ## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
978 ## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
979 ## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
980 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
981 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
982 ## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
983 ## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
985 containerSecurityContext:
992 readOnlyRootFilesystem: true
993 allowPrivilegeEscalation: false
997 type: "RuntimeDefault"
998 ## Enable this if you're using https://github.com/coreos/prometheus-operator
1001 ## @param metrics.serviceMonitor.enabled If `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1004 ## @param metrics.serviceMonitor.namespace Optional namespace which Prometheus is running in
1007 ## @param metrics.serviceMonitor.interval How frequently to scrape metrics (use by default, falling back to Prometheus' default)
1010 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1011 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1013 ## scrapeTimeout: 10s
1016 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1019 ## prometheus: my-prometheus
1022 ## @param metrics.serviceMonitor.labels ServiceMonitor extra labels
1025 ## @param metrics.serviceMonitor.annotations ServiceMonitor annotations
1028 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1031 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1032 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1035 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1036 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1038 metricRelabelings: []
1039 ## Custom PrometheusRule to be defined
1040 ## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1041 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1042 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
1043 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
1044 ## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
1045 ## @param metrics.prometheusRule.rules Create specified [rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/), check values for an example.
1049 additionalLabels: {}
1051 ## These are just examples rules, please adapt them to your needs.
1052 ## Make sure to constraint the rules to the current postgresql service.
1053 ## - alert: ValkeyDown
1054 ## expr: valkey_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
1059 ## summary: Valkey instance {{ "{{ $instance }}" }} down
1060 ## description: Valkey instance {{ "{{ $instance }}" }} is down.
1061 ## - alert: ValkeyMemoryHigh
1063 ## valkey_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
1065 ## valkey_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
1071 ## summary: Valkey instance {{ "{{ $instance }}" }} is using too much memory
1072 ## description: Valkey instance {{ "{{ $instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
1073 ## - alert: ValkeyKeyEviction
1074 ## expr: increase(valkey_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
1079 ## summary: Valkey instance {{ "{{ $instance }}" }} has evicted keys
1080 ## description: Valkey instance {{ "{{ $instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
1083 ## @param metrics.priorityClassName Metrics exporter pod priorityClassName
1085 priorityClassName: ""
1086 ## @param metrics.service.type Kubernetes Service type (valkey metrics)
1087 ## @param metrics.service.loadBalancerIP Use serviceLoadBalancerIP to request a specific static IP, otherwise leave blank
1088 ## @param metrics.service.annotations Annotations for the services to monitor.
1089 ## @param metrics.service.labels Additional labels for the metrics service
1093 ## @param metrics.service.ports.http Metrics HTTP service port
1097 ## @param metrics.service.clusterIP Service Cluster IP
1105## @section Sysctl Image parameters
1108## Sysctl InitContainer
1109## Used to perform sysctl operation to modify Kernel settings (needed sometimes to avoid warnings)
1112 ## @param sysctlImage.enabled Enable an init container to modify Kernel settings
1115 ## @param sysctlImage.command sysctlImage command to execute
1118 ## @param sysctlImage.registry [default: REGISTRY_NAME] sysctlImage Init container registry
1119 ## @param sysctlImage.repository [default: REPOSITORY_NAME/os-shell] sysctlImage Init container repository
1120 ## @skip sysctlImage.tag sysctlImage Init container tag
1121 ## @param sysctlImage.digest sysctlImage Init container digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1122 ## @param sysctlImage.pullPolicy sysctlImage Init container pull policy
1123 ## @param sysctlImage.pullSecrets Specify docker-registry secret names as an array
1126 repository: chainguard-private/os-shell-iamguarded
1128 digest: sha256:7401ee05d8e0e6a6be960433db429bf05a6ca21be356b99cd87597199fb355a2
1129 pullPolicy: IfNotPresent
1130 ## Optionally specify an array of imagePullSecrets.
1131 ## Secrets must be manually created in the namespace.
1132 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1135 ## - myRegistryKeySecretName
1138 ## @param sysctlImage.mountHostSys Mount the host `/sys` folder to `/host-sys`
1141 ## Containers Security Context
1142 ## @param sysctlImage.containerSecurityContext.enabled Enable Containers' Security Context
1143 ## @param sysctlImage.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1144 ## @param sysctlImage.containerSecurityContext.runAsUser User ID for the containers.
1145 ## @param sysctlImage.containerSecurityContext.privileged Run privileged as privileged
1147 containerSecurityContext:
1152 ## Container resource requests and limits
1153 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1154 ## @param sysctlImage.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if sysctlImage.resources is set (sysctlImage.resources is recommended for production).
1156 resourcesPreset: "nano"
1157 ## @param sysctlImage.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)