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.redis.password Redis® 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 Redis(R) 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 namespaceOverride String to fully override common.names.namespace template
62## @param clusterDomain Kubernetes Cluster Domain
64clusterDomain: cluster.local
65## @param commonAnnotations Annotations to add to all deployed objects
68## @param commonLabels Labels to add to all deployed objects
71## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
74## Enable diagnostic mode in the deployment
77 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
80 ## @param diagnosticMode.command Command to override all containers in the deployment
84 ## @param diagnosticMode.args Args to override all containers in the deployment
88## Iamguarded Redis® image version
89## ref: https://hub.docker.com/r/iamguarded/redis/tags/
90## @param image.registry [default: REGISTRY_NAME] Redis® cluster image registry
91## @param image.repository [default: REPOSITORY_NAME/redis-cluster] Redis® cluster image repository
92## @skip image.tag Redis® cluster image tag (immutable tags are recommended)
93## @param image.digest Redis® cluster image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
94## @param image.pullPolicy Redis® cluster image pull policy
95## @param image.pullSecrets Specify docker-registry secret names as an array
96## @param image.debug Enable image debug mode
100 repository: chainguard-private/redis-cluster-iamguarded
103 ## Specify a imagePullPolicy
104 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
106 pullPolicy: IfNotPresent
107 ## Optionally specify an array of imagePullSecrets.
108 ## Secrets must be manually created in the namespace.
109 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
112 ## - myRegistryKeySecretName
118## Network Policy configuration
119## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
122 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
125 ## @param networkPolicy.allowExternal The Policy model to apply
126 ## When set to false, only pods with the correct client label will have network access to the ports Redis(R) Cluster is
127 ## listening on. When true, Redis(R) Cluster will accept connections from any source (with the correct destination port).
130 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
132 allowExternalEgress: true
133 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
143 ## - matchExpressions:
150 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
160 ## - matchExpressions:
167 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
168 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
170 ingressNSMatchLabels: {}
171 ingressNSPodMatchLabels: {}
173 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
176 ## @param serviceAccount.name The name of the ServiceAccount to create
177 ## If not set and create is true, a name is generated using the fullname template
180 ## @param serviceAccount.annotations Annotations for Cassandra Service Account
183 ## @param serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
185 automountServiceAccountToken: false
187 ## @param rbac.create Specifies whether RBAC resources should be created
191 ## @param rbac.role.rules Rules to create. It follows the role specification
196 ## - podsecuritypolicies
200 ## - gce.unprivileged
203## Redis® pod Security Context
204## @param podSecurityContext.enabled Enable Redis® pod Security Context
205## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
206## @param podSecurityContext.supplementalGroups Set filesystem extra groups
207## @param podSecurityContext.fsGroup Group ID for the pods
208## @param podSecurityContext.sysctls Set namespaced sysctls for the pods
212 fsGroupChangePolicy: Always
213 supplementalGroups: []
215 ## Uncomment the setting below to increase the net.core.somaxconn value
218 ## - name: net.core.somaxconn
222## @param podDisruptionBudget DEPRECATED please use pdb instead
223## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions
225podDisruptionBudget: {}
226## Pod Disruption Budget configuration
227## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
230 ## @param pdb.create Created a PodDisruptionBudget
233 ## @param pdb.minAvailable Min number of pods that must still be available 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 ## @param pdb.maxUnavailable Max number of pods that can be unavailable after the eviction.
238 ## 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
241## Containers Security Context
242## @param containerSecurityContext.enabled Enabled containers' Security Context
243## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
244## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
245## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
246## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
247## @param containerSecurityContext.privileged Set container's Security Context privileged
248## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
249## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
250## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
251## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
253containerSecurityContext:
260 readOnlyRootFilesystem: true
261 allowPrivilegeEscalation: false
265 type: "RuntimeDefault"
266## @param usePassword Use password authentication
269## @param password Redis® password (ignored if existingSecret set)
270## Defaults to a random 10-character alphanumeric string if not set and usePassword is true
271## ref: https://github.com/iamguarded/containers/tree/main/iamguarded/redis#setting-the-server-password-on-first-run
274## @param existingSecret Name of existing secret object (for password authentication)
277## @param existingSecretPasswordKey Name of key containing password to be retrieved from the existing secret
279existingSecretPasswordKey: ""
280## @param usePasswordFiles Mount passwords as files instead of environment variables
282usePasswordFiles: true
287 ## @param tls.enabled Enable TLS support for replication traffic
290 ## @param tls.authClients Require clients to authenticate or not
293 ## @param tls.autoGenerated Generate automatically self-signed TLS certificates
296 ## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
299 ## @param tls.certificatesSecret DEPRECATED. Use tls.existingSecret instead
301 certificatesSecret: ""
302 ## @param tls.certFilename Certificate filename
305 ## @param tls.certKeyFilename Certificate key filename
308 ## @param tls.certCAFilename CA Certificate filename
311 ## @param tls.dhParamsFilename File containing DH params (in order to support DH based ciphers)
314## Redis® Service properties for standalone mode.
317 ## @param service.ports.redis Kubernetes Redis service port
321 ## Node ports to expose
322 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
323 ## @param service.nodePorts.redis Node port for Redis
327 ## @param service.extraPorts Extra ports to expose in the service (normally used with the `sidecar` value)
330 ## @param service.annotations Provide any additional annotations which may be required.
331 ## This can be used to set the LoadBalancer service type to internal only.
332 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
335 ## @param service.labels Additional labels for redis service
338 ## @param service.type Service type for default redis service
339 ## Setting this to LoadBalancer may require corresponding service annotations for loadbalancer creation to succeed.
340 ## Currently supported types are ClusterIP (default) and LoadBalancer
343 ## @param service.clusterIP Service Cluster IP
348 ## @param service.loadBalancerIP Load balancer IP if `service.type` is `LoadBalancer`
349 ## If service.type is LoadBalancer, request a specific static IP address if supported by the cloud provider, otherwise leave blank
352 ## @param service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
353 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
355 loadBalancerClass: ""
356 ## @param service.loadBalancerSourceRanges Service Load Balancer sources
357 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
359 ## loadBalancerSourceRanges:
362 loadBalancerSourceRanges: []
363 ## @param service.externalTrafficPolicy Service external traffic policy
364 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
366 externalTrafficPolicy: Cluster
367 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
368 ## If "ClientIP", consecutive client requests will be directed to the same Pod
369 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
371 sessionAffinity: None
372 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
373 ## sessionAffinityConfig:
375 ## timeoutSeconds: 300
377 sessionAffinityConfig: {}
378 ## Headless service properties
381 ## @param service.headless.annotations Annotations for the headless service.
384## Enable persistence using Persistent Volume Claims
385## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
388 ## @param persistence.enabled Enable persistence on Redis®
389 ## If enabled, nodes are using Persistent Volume Claims
390 ## If disabled, an emptyDir volume is used. This is not recommended.
391 ## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/redis-cluster#persistence
394 ## @param persistence.path Path to mount the volume at, to use other images Redis® images.
396 path: /iamguarded/redis/data
397 ## @param persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
400 ## @param persistence.storageClass Storage class of backing PVC
401 ## If defined, storageClassName: <storageClass>
402 ## If set to "-", storageClassName: "", which disables dynamic provisioning
403 ## If undefined (the default) or set to null, no storageClassName spec is
404 ## set, choosing the default provisioner. (gp2 on AWS, standard on
405 ## GKE, AWS & OpenStack)
408 ## @param persistence.annotations Persistent Volume Claim annotations
411 ## @param persistence.labels Persistent Volume Claim labels
414 ## @param persistence.accessModes Persistent Volume Access Modes
418 ## @param persistence.size Size of data volume
421 ## @param persistence.matchLabels Persistent Volume selectors
422 ## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
425 ## @param persistence.matchExpressions matchExpressions Persistent Volume selectors
428## persistentVolumeClaimRetentionPolicy
429## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
430## @param persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
431## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
432## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
433persistentVolumeClaimRetentionPolicy:
437## Init containers parameters:
438## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
441 ## @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)
444 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
445 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
446 ## @skip volumePermissions.image.tag Init container volume-permissions image tag
447 ## @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
448 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
449 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
453 repository: chainguard-private/os-shell-iamguarded
456 pullPolicy: IfNotPresent
457 ## Optionally specify an array of imagePullSecrets.
458 ## Secrets must be manually created in the namespace.
459 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
462 ## - myRegistryKeySecretName
465 ## Containers Security Context
466 ## @param volumePermissions.containerSecurityContext.enabled Enable Containers' Security Context
467 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
468 ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the containers.
469 ## @param volumePermissions.containerSecurityContext.privileged Run container as privileged
471 containerSecurityContext:
476 ## Container resource requests and limits
477 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
478 ## @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).
479 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
481 resourcesPreset: "nano"
482 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
493## @param serviceBindings.enabled Create secret for service binding (Experimental)
494## Ref: https://servicebinding.io/service-provider/
498## PodSecurityPolicy configuration
499## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
500## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
504## @section Redis® statefulset parameters
507 ## @param redis.command Redis® entrypoint string. The command `redis-server` is executed if this is not provided
510 ## @param redis.args Arguments for the provided command if needed
513 ## @param redis.updateStrategy.type Argo Workflows statefulset strategy type
514 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
518 ## Can be set to RollingUpdate or OnDelete
521 ## @param redis.updateStrategy.rollingUpdate.partition Partition update strategy
522 ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
526 ## @param redis.podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
527 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
529 podManagementPolicy: Parallel
530 ## @param redis.automountServiceAccountToken Mount Service Account token in pod
532 automountServiceAccountToken: false
533 ## @param redis.hostAliases Deployment pod host aliases
534 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
537 ## @param redis.hostNetwork Host networking requested for this pod. Use the host's network namespace.
538 ## https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podspec-v1-core
541 ## @param redis.useAOFPersistence Whether to use AOF Persistence mode or not
542 ## It is strongly recommended to use this type when dealing with clusters
543 ## ref: https://redis.io/topics/persistence#append-only-file
544 ## ref: https://redis.io/topics/cluster-tutorial#creating-and-using-a-redis-cluster
546 useAOFPersistence: "yes"
547 ## @param redis.containerPorts.redis Redis® port
548 ## @param redis.containerPorts.bus The busPort should be obtained adding 10000 to the redisPort. By default: 10000 + 6379 = 16379
553 ## @param redis.lifecycleHooks LifecycleHook to set additional configuration before or after startup. Evaluated as a template
556 ## @param redis.extraVolumes Extra volumes to add to the deployment
559 ## @param redis.extraVolumeMounts Extra volume mounts to add to the container
561 extraVolumeMounts: []
562 ## @param redis.customLivenessProbe Override default liveness probe
564 customLivenessProbe: {}
565 ## @param redis.customReadinessProbe Override default readiness probe
567 customReadinessProbe: {}
568 ## @param redis.customStartupProbe Custom startupProbe that overrides the default one
570 customStartupProbe: {}
571 ## @param redis.initContainers Extra init containers to add to the deployment
574 ## @param redis.sidecars Extra sidecar containers to add to the deployment
577 ## @param redis.podLabels Additional labels for Redis® pod
578 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
581 ## @param redis.priorityClassName Redis® Master pod priorityClassName
583 priorityClassName: ""
584 ## @param redis.defaultConfigOverride Optional default Redis® configuration for the nodes
585 ## If not set, the default Redis configuration from the chart is used
586 ## ref: https://redis.io/topics/config
588 defaultConfigOverride: ""
589 ## @param redis.configmap Additional Redis® configuration for the nodes
590 ## ref: https://redis.io/topics/config
593 ## @param redis.extraEnvVars An array to add extra environment variables
595 ## - name: BEARER_AUTH
599 ## @param redis.extraEnvVarsCM ConfigMap with extra environment variables
602 ## @param redis.extraEnvVarsSecret Secret with extra environment variables
604 extraEnvVarsSecret: ""
605 ## @param redis.podAnnotations Redis® additional annotations
606 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
609 ## Redis® resource requests and limits
610 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
611 ## @param redis.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if redis.resources is set (redis.resources is recommended for production).
612 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
614 resourcesPreset: "nano"
615 ## @param redis.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
626 ## @param redis.schedulerName Use an alternate scheduler, e.g. "stork".
627 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
630 ## @param redis.shareProcessNamespace Enable shared process namespace in a pod.
631 ## If set to false (default), each container will run in separate namespace, redis will have PID=1.
632 ## If set to true, the /pause will run as init process and will reap any zombie PIDs,
633 ## for example, generated by a custom exec probe running longer than a probe timeoutSeconds.
634 ## Enable this only if customLivenessProbe or customReadinessProbe is used and zombie PIDs are accumulating.
635 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
637 shareProcessNamespace: false
638 ## @param redis.terminationGracePeriodSeconds Set custom gracefull termination period for redis container.
639 ## If not set the kubernetes default will be applied.
640 ## Customize it based on your workload. Huge redis with high load may wants more than default time to dump
641 ## their data before complete termination.
642 ## Ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
644 terminationGracePeriodSeconds: 30
645 ## Configure extra options for Redis® liveness probes
646 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
647 ## @param redis.livenessProbe.enabled Enable livenessProbe
648 ## @param redis.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
649 ## @param redis.livenessProbe.periodSeconds Period seconds for livenessProbe
650 ## @param redis.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
651 ## @param redis.livenessProbe.failureThreshold Failure threshold for livenessProbe
652 ## @param redis.livenessProbe.successThreshold Success threshold for livenessProbe
656 initialDelaySeconds: 5
661 ## Configure extra options for Redis® readiness probes
662 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
663 ## @param redis.readinessProbe.enabled Enable readinessProbe
664 ## @param redis.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
665 ## @param redis.readinessProbe.periodSeconds Period seconds for readinessProbe
666 ## @param redis.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
667 ## @param redis.readinessProbe.failureThreshold Failure threshold for readinessProbe
668 ## @param redis.readinessProbe.successThreshold Success threshold for readinessProbe
672 initialDelaySeconds: 5
677 ## @param redis.startupProbe.enabled Enable startupProbe
678 ## @param redis.startupProbe.path Path to check for startupProbe
679 ## @param redis.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
680 ## @param redis.startupProbe.periodSeconds Period seconds for startupProbe
681 ## @param redis.startupProbe.timeoutSeconds Timeout seconds for startupProbe
682 ## @param redis.startupProbe.failureThreshold Failure threshold for startupProbe
683 ## @param redis.startupProbe.successThreshold Success threshold for startupProbe
688 initialDelaySeconds: 300
693 ## @param redis.podAffinityPreset Redis® pod affinity preset. Ignored if `redis.affinity` is set. Allowed values: `soft` or `hard`
694 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
696 podAffinityPreset: ""
697 ## @param redis.podAntiAffinityPreset Redis® pod anti-affinity preset. Ignored if `redis.affinity` is set. Allowed values: `soft` or `hard`
698 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
700 podAntiAffinityPreset: soft
701 ## Redis® node affinity preset
702 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
705 ## @param redis.nodeAffinityPreset.type Redis® node affinity preset type. Ignored if `redis.affinity` is set. Allowed values: `soft` or `hard`
708 ## @param redis.nodeAffinityPreset.key Redis® node label key to match Ignored if `redis.affinity` is set.
710 ## key: "kubernetes.io/e2e-az-name"
713 ## @param redis.nodeAffinityPreset.values Redis® node label values to match. Ignored if `redis.affinity` is set.
720 ## @param redis.affinity Affinity settings for Redis® pod assignment
721 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
722 ## Note: redis.podAffinityPreset, redis.podAntiAffinityPreset, and redis.nodeAffinityPreset will be ignored when it's set
725 ## @param redis.nodeSelector Node labels for Redis® pods assignment
726 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
729 ## @param redis.tolerations Tolerations for Redis® pods assignment
730 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
733 ## @param redis.topologySpreadConstraints Pod topology spread constraints for Redis® pod
734 ## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
735 ## The value is evaluated as a template
737 topologySpreadConstraints: []
738## @section Cluster update job parameters
741## Cluster update job settings
744 ## @param updateJob.activeDeadlineSeconds Number of seconds the Job to create the cluster will be waiting for the Nodes to be ready.
746 activeDeadlineSeconds: 600
747 ## @param updateJob.command Container command (using container default if not set)
750 ## @param updateJob.args Container args (using container default if not set)
753 ## @param updateJob.automountServiceAccountToken Mount Service Account token in pod
755 automountServiceAccountToken: false
756 ## @param updateJob.hostAliases Deployment pod host aliases
757 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
760 ## @param updateJob.helmHook Job Helm hook
761 ## https://helm.sh/docs/topics/charts_hooks/#the-available-hooks
763 helmHook: post-upgrade
764 ## @param updateJob.annotations Job annotations
767 ## @param updateJob.podAnnotations Job pod annotations
770 ## @param updateJob.podLabels Pod extra labels
771 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
774 ## @param updateJob.extraEnvVars An array to add extra environment variables
776 ## - name: BEARER_AUTH
780 ## @param updateJob.extraEnvVarsCM ConfigMap containing extra environment variables
783 ## @param updateJob.extraEnvVarsSecret Secret containing extra environment variables
785 extraEnvVarsSecret: ""
786 ## @param updateJob.extraVolumes Extra volumes to add to the deployment
789 ## @param updateJob.extraVolumeMounts Extra volume mounts to add to the container
791 extraVolumeMounts: []
792 ## @param updateJob.initContainers Extra init containers to add to the deployment
795 ## @param updateJob.podAffinityPreset Update job pod affinity preset. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
796 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
798 podAffinityPreset: ""
799 ## @param updateJob.podAntiAffinityPreset Update job pod anti-affinity preset. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
800 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
802 podAntiAffinityPreset: soft
803 ## Update job node affinity preset
804 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
807 ## @param updateJob.nodeAffinityPreset.type Update job node affinity preset type. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
810 ## @param updateJob.nodeAffinityPreset.key Update job node label key to match Ignored if `updateJob.affinity` is set.
812 ## key: "kubernetes.io/e2e-az-name"
815 ## @param updateJob.nodeAffinityPreset.values Update job node label values to match. Ignored if `updateJob.affinity` is set.
822 ## @param updateJob.affinity Affinity for update job pods assignment
823 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
824 ## Note: updateJob.podAffinityPreset, updateJob.podAntiAffinityPreset, and updateJob.nodeAffinityPreset will be ignored when it's set
827 ## @param updateJob.nodeSelector Node labels for update job pods assignment
828 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
831 ## @param updateJob.tolerations Tolerations for update job pods assignment
832 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
835 ## @param updateJob.priorityClassName Priority class name
837 priorityClassName: ""
838 ## Container resource requests and limits
839 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
840 ## We usually recommend not to specify default resources and to leave this as a conscious
841 ## choice for the user. This also increases chances charts run on environments with little
842 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
843 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
844 ## @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).
845 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
847 resourcesPreset: "nano"
848 ## @param updateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
859## @section Cluster management parameters
862## Redis(R) Cluster settings
865 ## @param cluster.init Enable the initialization of the Redis(R) Cluster
868 ## Number of Redis® nodes to be deployed
871 ## This is total number of nodes including the replicas. Meaning there will be 3 master and 3 replica
872 ## nodes (as replica count is set to 1 by default, there will be 1 replica per master node).
873 ## Hence, nodes = numberOfMasterNodes + numberOfMasterNodes * replicas
875 ## @param cluster.nodes The number of master nodes should always be >= 3, otherwise cluster creation will fail
878 ## @param cluster.replicas Number of replicas for every master in the cluster
879 ## Parameter to be passed as --cluster-replicas to the redis-cli --cluster create
880 ## 1 means that we want a replica for every master created
883 ## @param cluster.busPortProtectedMode Refuse to start a cluster node whose bus port is unauthenticated (Redis 8.12+)
884 ## Redis 8.12 and later refuse to start a cluster node when tls.enabled is false, unless this is
885 ## set to false. Set it to false only when the cluster bus port is reachable by trusted hosts only,
886 ## for example with networkPolicy.allowExternal=false. Prefer tls.enabled=true.
887 ## Ignored by Redis versions older than 8.12.
888 ## ref: https://github.com/redis/redis/pull/15722
890 busPortProtectedMode: true
891 ## Configuration to access the Redis(R) Cluster from outside the Kubernetes cluster
894 ## @param cluster.externalAccess.enabled Enable access to the Redis
897 ## @param cluster.externalAccess.hostMode Set cluster preferred endpoint type as hostname
898 ## ref: https://github.com/redis/redis/pull/9530
902 ## @param cluster.externalAccess.service.disableLoadBalancerIP Disable use of `Service.spec.loadBalancerIP`
904 disableLoadBalancerIP: false
905 ## @param cluster.externalAccess.service.loadBalancerIPAnnotaion Name of annotation to specify fixed IP for service in. Disables `Service.spec.loadBalancerIP` if not empty
907 loadBalancerIPAnnotaion: ""
908 ## @param cluster.externalAccess.service.type Type for the services used to expose every Pod
909 ## At this moment only LoadBalancer is supported
912 ## @param cluster.externalAccess.service.port Port for the services used to expose every Pod
915 ## @param cluster.externalAccess.service.loadBalancerIP Array of load balancer IPs for each Redis® node. Length must be the same as cluster.nodes
918 ## @param cluster.externalAccess.service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
919 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
921 loadBalancerClass: ""
922 ## @param cluster.externalAccess.service.loadBalancerSourceRanges Service Load Balancer sources
923 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
925 ## loadBalancerSourceRanges:
928 loadBalancerSourceRanges: []
929 ## @param cluster.externalAccess.service.annotations Annotations to add to the services used to expose every Pod of the Redis(R) Cluster
932 ## This section allows to update the Redis® cluster nodes.
935 ## @param cluster.update.addNodes Boolean to specify if you want to add nodes after the upgrade
936 ## Setting this to true a hook will add nodes to the Redis® cluster after the upgrade. currentNumberOfNodes and currentNumberOfReplicas is required
939 ## @param cluster.update.currentNumberOfNodes Number of currently deployed Redis® nodes
941 currentNumberOfNodes: 6
942 ## @param cluster.update.currentNumberOfReplicas Number of currently deployed Redis® replicas
944 currentNumberOfReplicas: 1
945 ## @param cluster.update.newExternalIPs External IPs obtained from the services for the new nodes to add to the cluster
948## @section Metrics sidecar parameters
951## Prometheus Exporter / Metrics
954 ## @param metrics.enabled Start a side-car prometheus exporter
957 ## @param metrics.image.registry [default: REGISTRY_NAME] Redis® exporter image registry
958 ## @param metrics.image.repository [default: REPOSITORY_NAME/redis-exporter] Redis® exporter image name
959 ## @skip metrics.image.tag Redis® exporter image tag
960 ## @param metrics.image.digest Redis® exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
961 ## @param metrics.image.pullPolicy Redis® exporter image pull policy
962 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
966 repository: chainguard-private/prometheus-redis-exporter-iamguarded
969 pullPolicy: IfNotPresent
970 ## Optionally specify an array of imagePullSecrets.
971 ## Secrets must be manually created in the namespace.
972 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
975 ## - myRegistryKeySecretName
978 ## @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).
979 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
981 resourcesPreset: "nano"
982 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
991 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
994 ## @param metrics.extraArgs Extra arguments for the binary; possible values [here](https://github.com/oliver006/redis_exporter)
996 ## check-keys: myKey,myOtherKey
999 ## @param metrics.extraEnvVars Array with extra environment variables to add to Redis® exporter
1006 ## @param metrics.containerPorts.http Metrics HTTP container port
1010 ## @param metrics.podAnnotations [object] Additional annotations for Metrics exporter pod
1013 prometheus.io/scrape: "true"
1014 prometheus.io/port: "9121"
1015 ## @param metrics.podLabels Additional labels for Metrics exporter pod
1018 ## Containers' Security Context - All fields other than `enabled` get added to the metrics container's security context
1019 ## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1020 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1021 ## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1022 ## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1023 ## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1024 ## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1025 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1026 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1027 ## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1028 ## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1030 containerSecurityContext:
1037 readOnlyRootFilesystem: true
1038 allowPrivilegeEscalation: false
1042 type: "RuntimeDefault"
1043 ## Enable this if you're using https://github.com/coreos/prometheus-operator
1046 ## @param metrics.serviceMonitor.enabled If `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1049 ## @param metrics.serviceMonitor.namespace Optional namespace which Prometheus is running in
1052 ## @param metrics.serviceMonitor.interval How frequently to scrape metrics (use by default, falling back to Prometheus' default)
1055 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1056 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1058 ## scrapeTimeout: 10s
1061 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1062 ## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/prometheus-operator#prometheus-configuration
1065 ## prometheus: my-prometheus
1068 ## @param metrics.serviceMonitor.labels ServiceMonitor extra labels
1071 ## @param metrics.serviceMonitor.annotations ServiceMonitor annotations
1074 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1077 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1078 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1081 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1082 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1084 metricRelabelings: []
1085 ## Custom PrometheusRule to be defined
1086 ## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1087 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1088 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
1089 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
1090 ## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
1091 ## @param metrics.prometheusRule.rules Create specified [rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/), check values for an example.
1095 additionalLabels: {}
1097 ## These are just examples rules, please adapt them to your needs.
1098 ## Make sure to constraint the rules to the current postgresql service.
1099 ## - alert: RedisDown
1100 ## expr: redis_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
1105 ## summary: Redis® instance {{ "{{ $instance }}" }} down
1106 ## description: Redis® instance {{ "{{ $instance }}" }} is down.
1107 ## - alert: RedisMemoryHigh
1109 ## redis_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
1111 ## redis_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
1117 ## summary: Redis® instance {{ "{{ $instance }}" }} is using too much memory
1118 ## description: Redis® instance {{ "{{ $instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
1119 ## - alert: RedisKeyEviction
1120 ## expr: increase(redis_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
1125 ## summary: Redis® instance {{ "{{ $instance }}" }} has evicted keys
1126 ## description: Redis® instance {{ "{{ $instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
1129 ## @param metrics.priorityClassName Metrics exporter pod priorityClassName
1131 priorityClassName: ""
1132 ## @param metrics.service.type Kubernetes Service type (redis metrics)
1133 ## @param metrics.service.loadBalancerIP Use serviceLoadBalancerIP to request a specific static IP, otherwise leave blank
1134 ## @param metrics.service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1135 ## @param metrics.service.annotations Annotations for the services to monitor.
1136 ## @param metrics.service.labels Additional labels for the metrics service
1141 ## @param metrics.service.ports.http Metrics HTTP service port
1144 ## @param metrics.service.ports.appProtocol Metrics service appProtocol
1147 ## @param metrics.service.clusterIP Service Cluster IP
1153 loadBalancerClass: ""
1156## @section Sysctl Image parameters
1159## Sysctl InitContainer
1160## Used to perform sysctl operation to modify Kernel settings (needed sometimes to avoid warnings)
1163 ## @param sysctlImage.enabled Enable an init container to modify Kernel settings
1166 ## @param sysctlImage.command sysctlImage command to execute
1169 ## @param sysctlImage.registry [default: REGISTRY_NAME] sysctlImage Init container registry
1170 ## @param sysctlImage.repository [default: REPOSITORY_NAME/os-shell] sysctlImage Init container repository
1171 ## @skip sysctlImage.tag sysctlImage Init container tag
1172 ## @param sysctlImage.digest sysctlImage Init container digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1173 ## @param sysctlImage.pullPolicy sysctlImage Init container pull policy
1174 ## @param sysctlImage.pullSecrets Specify docker-registry secret names as an array
1177 repository: chainguard-private/os-shell-iamguarded
1180 pullPolicy: IfNotPresent
1181 ## Optionally specify an array of imagePullSecrets.
1182 ## Secrets must be manually created in the namespace.
1183 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1186 ## - myRegistryKeySecretName
1189 ## @param sysctlImage.mountHostSys Mount the host `/sys` folder to `/host-sys`
1192 ## Containers Security Context
1193 ## @param sysctlImage.containerSecurityContext.enabled Enable Containers' Security Context
1194 ## @param sysctlImage.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1195 ## @param sysctlImage.containerSecurityContext.runAsUser User ID for the containers.
1196 ## @param sysctlImage.containerSecurityContext.privileged Run privileged as privileged
1198 containerSecurityContext:
1203 ## Container resource requests and limits
1204 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1205 ## @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).
1206 ## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1208 resourcesPreset: "nano"
1209 ## @param sysctlImage.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)