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 Global Redis(R) 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 nameOverride String to partially override common.names.fullname
63## @param fullnameOverride String to fully override common.names.fullname
66## @param namespaceOverride String to fully override common.names.namespace
69## @param commonLabels Labels to add to all deployed objects
72## @param commonAnnotations Annotations to add to all deployed objects
75## @param configmapChecksumAnnotations Enable checksum annotations used to trigger rolling updates when ConfigMap(s) change
77configmapChecksumAnnotations: true
78## @param secretChecksumAnnotations Enable checksum annotations used to trigger rolling updates when Secret(s) change
80secretChecksumAnnotations: true
81## @param secretAnnotations Annotations to add to secret
84## @param clusterDomain Kubernetes cluster domain name
86clusterDomain: cluster.local
87## @param extraDeploy Array of extra objects to deploy with the release
90## @param useHostnames Use hostnames internally when announcing replication. If false, the hostname will be resolved to an IP address
93## @param nameResolutionThreshold Failure threshold for internal hostnames resolution
95nameResolutionThreshold: 5
96## @param nameResolutionTimeout Timeout seconds between probes for internal hostnames resolution
98nameResolutionTimeout: 5
99## Enable diagnostic mode in the deployment
102 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
105 ## @param diagnosticMode.command Command to override all containers in the deployment
109 ## @param diagnosticMode.args Args to override all containers in the deployment
113## @section Redis(R) Image parameters
116## Iamguarded Redis(R) image
117## @param image.registry [default: REGISTRY_NAME] Redis(R) image registry
118## @param image.repository [default: REPOSITORY_NAME/redis] Redis(R) image repository
119## @skip image.tag Redis(R) image tag (immutable tags are recommended)
120## @param image.digest Redis(R) image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
121## @param image.pullPolicy Redis(R) image pull policy
122## @param image.pullSecrets Redis(R) image pull secrets
123## @param image.debug Enable image debug mode
127 repository: chainguard-private/redis-server-iamguarded
130 ## Specify a imagePullPolicy
131 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
133 pullPolicy: IfNotPresent
134 ## Optionally specify an array of imagePullSecrets.
135 ## Secrets must be manually created in the namespace.
136 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
139 ## - myRegistryKeySecretName
145## @section Redis(R) common configuration parameters
148## @param architecture Redis(R) architecture. Allowed values: `standalone` or `replication`
150architecture: replication
151## Redis(R) Authentication parameters
154 ## @param auth.enabled Enable password authentication
157 ## @param auth.sentinel Enable authentication on sentinels too
160 ## @param auth.password Redis(R) password
161 ## Defaults to a random 10-character alphanumeric string if not set
164 ## @param auth.existingSecret The name of an existing secret with Redis(R) credentials
165 ## NOTE: When it's set, the previous `auth.password` parameter is ignored
168 ## @param auth.existingSecretPasswordKey Password key to be retrieved from existing secret
169 ## NOTE: ignored unless `auth.existingSecret` parameter is set
171 existingSecretPasswordKey: ""
172 ## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
174 usePasswordFiles: true
175 ## @param auth.usePasswordFileFromSecret Mount password file from secret
177 usePasswordFileFromSecret: true
178 ## Redis ACL restricts connections by limiting commands and key access with auth management.
179 ## ref: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
182 ## @param auth.acl.enabled Enables the support of the Redis ACL system
185 ## @param auth.acl.sentinel Enables the support of the Redis ACL system for Sentinel Nodes
188 ## @param auth.acl.users A list of the configured users in the Redis ACL system
192 ## - username: "my-user"
193 ## password: "mypassword"
199 ## @param auth.acl.userSecret Name of the Secret, containing user credentials for ACL users. Keys must match usernames.
201## @param commonConfiguration [string] Common configuration to be added into the ConfigMap
202## ref: https://redis.io/topics/config
204commonConfiguration: |-
205 # Enable ReJSON y Redisearch
206 loadmodule /opt/iamguarded/redis/lib/redis/modules/redisearch.so
207 loadmodule /opt/iamguarded/redis/lib/redis/modules/rejson.so
208 # Enable AOF https://redis.io/topics/persistence#append-only-file
210 # Disable RDB persistence, AOF persistence already enabled.
212## @param existingConfigmap The name of an existing ConfigMap with your custom configuration for Redis(R) nodes
215## @section Redis(R) master configuration parameters
218 ## @param master.count Number of Redis(R) master instances to deploy (experimental, requires additional configuration)
221 ## @param master.revisionHistoryLimit The number of old history to retain to allow rollback
222 ## NOTE: Explicitly setting this field to 0, will result in cleaning up all the history, breaking ability to rollback
223 revisionHistoryLimit: 10
224 ## @param master.configuration Configuration for Redis(R) master nodes
225 ## ref: https://redis.io/topics/config
228 ## @param master.disableCommands Array with Redis(R) commands to disable on master nodes
229 ## Commands will be completely disabled by renaming each to an empty string.
230 ## ref: https://redis.io/topics/security#disabling-of-specific-commands
235 ## @param master.command Override default container command (useful when using custom images)
238 ## @param master.args Override default container args (useful when using custom images)
241 ## @param master.enableServiceLinks Whether information about services should be injected into pod's environment variable
243 enableServiceLinks: true
244 ## @param master.preExecCmds Additional commands to run prior to starting Redis(R) master
247 ## @param master.extraFlags Array with additional command line flags for Redis(R) master
250 ## - "--maxmemory-policy volatile-ttl"
251 ## - "--repl-backlog-size 1024mb"
254 ## @param master.extraEnvVars Array with extra environment variables to add to Redis(R) master nodes
261 ## @param master.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Redis(R) master nodes
264 ## @param master.extraEnvVarsSecret Name of existing Secret containing extra env vars for Redis(R) master nodes
266 extraEnvVarsSecret: ""
267 ## @param master.containerPorts.redis Container port to open on Redis(R) master nodes
271 ## Configure extra options for Redis(R) containers' liveness and readiness probes
272 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
273 ## @param master.startupProbe.enabled Enable startupProbe on Redis(R) master nodes
274 ## @param master.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
275 ## @param master.startupProbe.periodSeconds Period seconds for startupProbe
276 ## @param master.startupProbe.timeoutSeconds Timeout seconds for startupProbe
277 ## @param master.startupProbe.failureThreshold Failure threshold for startupProbe
278 ## @param master.startupProbe.successThreshold Success threshold for startupProbe
282 initialDelaySeconds: 20
287 ## @param master.livenessProbe.enabled Enable livenessProbe on Redis(R) master nodes
288 ## @param master.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
289 ## @param master.livenessProbe.periodSeconds Period seconds for livenessProbe
290 ## @param master.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
291 ## @param master.livenessProbe.failureThreshold Failure threshold for livenessProbe
292 ## @param master.livenessProbe.successThreshold Success threshold for livenessProbe
296 initialDelaySeconds: 20
301 ## @param master.readinessProbe.enabled Enable readinessProbe on Redis(R) master nodes
302 ## @param master.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
303 ## @param master.readinessProbe.periodSeconds Period seconds for readinessProbe
304 ## @param master.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
305 ## @param master.readinessProbe.failureThreshold Failure threshold for readinessProbe
306 ## @param master.readinessProbe.successThreshold Success threshold for readinessProbe
310 initialDelaySeconds: 20
315 ## @param master.customStartupProbe Custom startupProbe that overrides the default one
317 customStartupProbe: {}
318 ## @param master.customLivenessProbe Custom livenessProbe that overrides the default one
320 customLivenessProbe: {}
321 ## @param master.customReadinessProbe Custom readinessProbe that overrides the default one
323 customReadinessProbe: {}
324 ## Redis(R) master resource requests and limits
325 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
326 ## @param master.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if master.resources is set (master.resources is recommended for production).
328 resourcesPreset: "nano"
329 ## @param master.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
340 ## @param master.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
344 ## Configure Pods Security Context
345 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
346 ## @param master.podSecurityContext.enabled Enabled Redis(R) master pods' Security Context
347 ## @param master.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
348 ## @param master.podSecurityContext.sysctls Set kernel settings using the sysctl interface
349 ## @param master.podSecurityContext.supplementalGroups Set filesystem extra groups
350 ## @param master.podSecurityContext.fsGroup Set Redis(R) master pod's Security Context fsGroup
354 fsGroupChangePolicy: Always
356 supplementalGroups: []
358 ## Configure Container Security Context
359 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
360 ## @param master.containerSecurityContext.enabled Enabled Redis(R) master containers' Security Context
361 ## @param master.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
362 ## @param master.containerSecurityContext.runAsUser Set Redis(R) master containers' Security Context runAsUser
363 ## @param master.containerSecurityContext.runAsGroup Set Redis(R) master containers' Security Context runAsGroup
364 ## @param master.containerSecurityContext.runAsNonRoot Set Redis(R) master containers' Security Context runAsNonRoot
365 ## @param master.containerSecurityContext.allowPrivilegeEscalation Is it possible to escalate Redis(R) pod(s) privileges
366 ## @param master.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
367 ## @param master.containerSecurityContext.seccompProfile.type Set Redis(R) master containers' Security Context seccompProfile
368 ## @param master.containerSecurityContext.capabilities.drop Set Redis(R) master containers' Security Context capabilities to drop
370 containerSecurityContext:
376 allowPrivilegeEscalation: false
377 readOnlyRootFilesystem: true
382 ## @param master.kind Use either Deployment, StatefulSet (default) or DaemonSet
383 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
386 ## @param master.schedulerName Alternate scheduler for Redis(R) master pods
387 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
390 ## @param master.runtimeClassName Name of the runtime class to be used by master pod(s)
393 ## @param master.updateStrategy.type Redis(R) master statefulset strategy type
394 ## @skip master.updateStrategy.rollingUpdate
395 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
399 ## Can be set to RollingUpdate, OnDelete (statefulset), Recreate (deployment)
402 ## @param master.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
405 ## @param master.priorityClassName Redis(R) master pods' priorityClassName
407 priorityClassName: ""
408 ## @param master.automountServiceAccountToken Mount Service Account token in pod
410 automountServiceAccountToken: false
411 ## @param master.hostAliases Redis(R) master pods host aliases
412 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
415 ## @param master.podLabels Extra labels for Redis(R) master pods
416 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
419 ## @param master.podAnnotations Annotations for Redis(R) master pods
420 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
423 ## @param master.shareProcessNamespace Share a single process namespace between all of the containers in Redis(R) master pods
424 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
426 shareProcessNamespace: false
427 ## @param master.podAffinityPreset Pod affinity preset. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
428 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
430 podAffinityPreset: ""
431 ## @param master.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
432 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
434 podAntiAffinityPreset: soft
435 ## Node master.affinity preset
436 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
439 ## @param master.nodeAffinityPreset.type Node affinity preset type. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
442 ## @param master.nodeAffinityPreset.key Node label key to match. Ignored if `master.affinity` is set
445 ## @param master.nodeAffinityPreset.values Node label values to match. Ignored if `master.affinity` is set
452 ## @param master.affinity Affinity for Redis(R) master pods assignment
453 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
454 ## NOTE: `master.podAffinityPreset`, `master.podAntiAffinityPreset`, and `master.nodeAffinityPreset` will be ignored when it's set
457 ## @param master.nodeSelector Node labels for Redis(R) master pods assignment
458 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
461 ## @param master.tolerations Tolerations for Redis(R) master pods assignment
462 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
465 ## @param master.topologySpreadConstraints Spread Constraints for Redis(R) master pod assignment
466 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
468 ## topologySpreadConstraints:
471 ## whenUnsatisfiable: DoNotSchedule
473 topologySpreadConstraints: []
474 ## @param master.dnsPolicy DNS Policy for Redis(R) master pod
475 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
477 ## dnsPolicy: ClusterFirst
480 ## @param master.dnsConfig DNS Configuration for Redis(R) master pod
481 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
487 ## - name: single-request-reopen
490 ## @param master.lifecycleHooks for the Redis(R) master container(s) to automate configuration before or after startup
493 ## @param master.extraVolumes Optionally specify extra list of additional volumes for the Redis(R) master pod(s)
496 ## @param master.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis(R) master container(s)
498 extraVolumeMounts: []
499 ## @param master.sidecars Add additional sidecar containers to the Redis(R) master pod(s)
502 ## - name: your-image-name
504 ## imagePullPolicy: Always
507 ## containerPort: 1234
510 ## @param master.initContainers Add additional init containers to the Redis(R) master pod(s)
511 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
514 ## - name: your-image-name
516 ## imagePullPolicy: Always
517 ## command: ['/bin/bash', '-ec', 'echo "hello world"']
520 ## Persistence parameters
521 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
524 ## @param master.persistence.enabled Enable persistence on Redis(R) master nodes using Persistent Volume Claims
527 ## @param master.persistence.medium Provide a medium for `emptyDir` volumes.
530 ## @param master.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
533 ## @param master.persistence.path The path the volume will be mounted at on Redis(R) master containers
534 ## NOTE: Useful when using different Redis(R) images
537 ## @param master.persistence.subPath The subdirectory of the volume to mount on Redis(R) master containers
538 ## NOTE: Useful in dev environments
541 ## @param master.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Redis(R) master containers
544 ## @param master.persistence.storageClass Persistent Volume storage class
545 ## If defined, storageClassName: <storageClass>
546 ## If set to "-", storageClassName: "", which disables dynamic provisioning
547 ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
550 ## @param master.persistence.accessModes Persistent Volume access modes
554 ## @param master.persistence.size Persistent Volume size
557 ## @param master.persistence.annotations Additional custom annotations for the PVC
560 ## @param master.persistence.labels Additional custom labels for the PVC
563 ## @param master.persistence.selector Additional labels to match for the PVC
570 ## @param master.persistence.dataSource Custom PVC data source
573 ## @param master.persistence.existingClaim Use a existing PVC which must be created manually before bound
574 ## NOTE: requires master.persistence.enabled: true
577 ## persistentVolumeClaimRetentionPolicy
578 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
579 ## @param master.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
580 ## @param master.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
581 ## @param master.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
583 persistentVolumeClaimRetentionPolicy:
587 ## Redis(R) master service parameters
590 ## @param master.service.type Redis(R) master service type
593 ## @param master.service.portNames.redis Redis(R) master service port name
597 ## @param master.service.ports.redis Redis(R) master service port
601 ## @param master.service.nodePorts.redis Node port for Redis(R) master
602 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
603 ## NOTE: choose port between <30000-32767>
607 ## @param master.service.externalTrafficPolicy Redis(R) master service external traffic policy
608 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
610 externalTrafficPolicy: Cluster
611 ## @param master.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
614 ## @param master.service.internalTrafficPolicy Redis(R) master service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
615 ## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
617 internalTrafficPolicy: Cluster
618 ## @param master.service.clusterIP Redis(R) master service Cluster IP
621 ## @param master.service.loadBalancerIP Redis(R) master service Load Balancer IP
622 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
625 ## @param master.service.loadBalancerClass master service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
626 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
628 loadBalancerClass: ""
629 ## @param master.service.loadBalancerSourceRanges Redis(R) master service Load Balancer sources
630 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
632 ## loadBalancerSourceRanges:
635 loadBalancerSourceRanges: []
636 ## @param master.service.externalIPs Redis(R) master service External IPs
637 ## https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
644 ## @param master.service.annotations Additional custom annotations for Redis(R) master service
647 ## @param master.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
648 ## If "ClientIP", consecutive client requests will be directed to the same Pod
649 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
651 sessionAffinity: None
652 ## @param master.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `master.service.sessionAffinity` is `None`
653 ## sessionAffinityConfig:
655 ## timeoutSeconds: 300
657 sessionAffinityConfig: {}
658 ## @param master.terminationGracePeriodSeconds Integer setting the termination grace period for the redis-master pods
660 terminationGracePeriodSeconds: 30
661 ## ServiceAccount configuration
664 ## @param master.serviceAccount.create Specifies whether a ServiceAccount should be created
667 ## @param master.serviceAccount.name The name of the ServiceAccount to use.
668 ## If not set and create is true, a name is generated using the common.names.fullname template
671 ## @param master.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
672 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
674 automountServiceAccountToken: false
675 ## @param master.serviceAccount.annotations Additional custom annotations for the ServiceAccount
678 ## Pod Disruption Budget configuration
679 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
680 ## @param master.pdb.create Enable/disable a Pod Disruption Budget creation
681 ## @param master.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
682 ## @param master.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `master.pdb.minAvailable` and `master.pdb.maxUnavailable` are empty.
688 ## @param master.extraPodSpec Optionally specify extra PodSpec for the Redis(R) master pod(s)
691 ## @param master.annotations Additional custom annotations for Redis(R) Master resource
694## @section Redis(R) replicas configuration parameters
697 ## @param replica.kind Use either DaemonSet or StatefulSet (default)
698 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
701 ## @param replica.replicaCount Number of Redis(R) replicas to deploy
704 ## @param replica.revisionHistoryLimit The number of old history to retain to allow rollback
705 ## NOTE: Explicitly setting this field to 0, will result in cleaning up all the history, breaking ability to rollback
706 revisionHistoryLimit: 10
707 ## @param replica.configuration Configuration for Redis(R) replicas nodes
708 ## ref: https://redis.io/topics/config
711 ## @param replica.disableCommands Array with Redis(R) commands to disable on replicas nodes
712 ## Commands will be completely disabled by renaming each to an empty string.
713 ## ref: https://redis.io/topics/security#disabling-of-specific-commands
718 ## @param replica.command Override default container command (useful when using custom images)
721 ## @param replica.args Override default container args (useful when using custom images)
724 ## @param replica.enableServiceLinks Whether information about services should be injected into pod's environment variable
726 enableServiceLinks: true
727 ## @param replica.preExecCmds Additional commands to run prior to starting Redis(R) replicas
730 ## @param replica.extraFlags Array with additional command line flags for Redis(R) replicas
733 ## - "--maxmemory-policy volatile-ttl"
734 ## - "--repl-backlog-size 1024mb"
737 ## @param replica.extraEnvVars Array with extra environment variables to add to Redis(R) replicas nodes
744 ## @param replica.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Redis(R) replicas nodes
747 ## @param replica.extraEnvVarsSecret Name of existing Secret containing extra env vars for Redis(R) replicas nodes
749 extraEnvVarsSecret: ""
750 ## @param replica.externalMaster.enabled Use external master for bootstrapping
751 ## @param replica.externalMaster.host External master host to bootstrap from
752 ## @param replica.externalMaster.port Port for Redis service external master host
758 ## @param replica.containerPorts.redis Container port to open on Redis(R) replicas nodes
762 ## Configure extra options for Redis(R) containers' liveness and readiness probes
763 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
764 ## @param replica.startupProbe.enabled Enable startupProbe on Redis(R) replicas nodes
765 ## @param replica.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
766 ## @param replica.startupProbe.periodSeconds Period seconds for startupProbe
767 ## @param replica.startupProbe.timeoutSeconds Timeout seconds for startupProbe
768 ## @param replica.startupProbe.failureThreshold Failure threshold for startupProbe
769 ## @param replica.startupProbe.successThreshold Success threshold for startupProbe
773 initialDelaySeconds: 10
778 ## @param replica.livenessProbe.enabled Enable livenessProbe on Redis(R) replicas nodes
779 ## @param replica.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
780 ## @param replica.livenessProbe.periodSeconds Period seconds for livenessProbe
781 ## @param replica.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
782 ## @param replica.livenessProbe.failureThreshold Failure threshold for livenessProbe
783 ## @param replica.livenessProbe.successThreshold Success threshold for livenessProbe
787 initialDelaySeconds: 20
792 ## @param replica.readinessProbe.enabled Enable readinessProbe on Redis(R) replicas nodes
793 ## @param replica.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
794 ## @param replica.readinessProbe.periodSeconds Period seconds for readinessProbe
795 ## @param replica.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
796 ## @param replica.readinessProbe.failureThreshold Failure threshold for readinessProbe
797 ## @param replica.readinessProbe.successThreshold Success threshold for readinessProbe
801 initialDelaySeconds: 20
806 ## @param replica.customStartupProbe Custom startupProbe that overrides the default one
808 customStartupProbe: {}
809 ## @param replica.customLivenessProbe Custom livenessProbe that overrides the default one
811 customLivenessProbe: {}
812 ## @param replica.customReadinessProbe Custom readinessProbe that overrides the default one
814 customReadinessProbe: {}
815 ## Redis(R) replicas resource requests and limits
816 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
817 ## @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).
819 resourcesPreset: "nano"
820 ## @param replica.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
831 ## @param replica.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
835 ## Configure Pods Security Context
836 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
837 ## @param replica.podSecurityContext.enabled Enabled Redis(R) replicas pods' Security Context
838 ## @param replica.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
839 ## @param replica.podSecurityContext.sysctls Set kernel settings using the sysctl interface
840 ## @param replica.podSecurityContext.supplementalGroups Set filesystem extra groups
841 ## @param replica.podSecurityContext.fsGroup Set Redis(R) replicas pod's Security Context fsGroup
845 fsGroupChangePolicy: Always
847 supplementalGroups: []
849 ## Configure Container Security Context
850 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
851 ## @param replica.containerSecurityContext.enabled Enabled Redis(R) replicas containers' Security Context
852 ## @param replica.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
853 ## @param replica.containerSecurityContext.runAsUser Set Redis(R) replicas containers' Security Context runAsUser
854 ## @param replica.containerSecurityContext.runAsGroup Set Redis(R) replicas containers' Security Context runAsGroup
855 ## @param replica.containerSecurityContext.runAsNonRoot Set Redis(R) replicas containers' Security Context runAsNonRoot
856 ## @param replica.containerSecurityContext.allowPrivilegeEscalation Set Redis(R) replicas pod's Security Context allowPrivilegeEscalation
857 ## @param replica.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
858 ## @param replica.containerSecurityContext.seccompProfile.type Set Redis(R) replicas containers' Security Context seccompProfile
859 ## @param replica.containerSecurityContext.capabilities.drop Set Redis(R) replicas containers' Security Context capabilities to drop
861 containerSecurityContext:
867 allowPrivilegeEscalation: false
868 readOnlyRootFilesystem: true
873 ## @param replica.schedulerName Alternate scheduler for Redis(R) replicas pods
874 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
877 ## @param replica.runtimeClassName Name of the runtime class to be used by replica pod(s)
880 ## @param replica.updateStrategy.type Redis(R) replicas statefulset strategy type
881 ## @skip replica.updateStrategy.rollingUpdate
882 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
886 ## Can be set to RollingUpdate, OnDelete (statefulset), Recreate (deployment)
889 ## @param replica.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
892 ## @param replica.priorityClassName Redis(R) replicas pods' priorityClassName
894 priorityClassName: ""
895 ## @param replica.podManagementPolicy podManagementPolicy to manage scaling operation of %%MAIN_CONTAINER_NAME%% pods
896 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
898 podManagementPolicy: ""
899 ## @param replica.automountServiceAccountToken Mount Service Account token in pod
901 automountServiceAccountToken: false
902 ## @param replica.hostAliases Redis(R) replicas pods host aliases
903 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
906 ## @param replica.podLabels Extra labels for Redis(R) replicas pods
907 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
910 ## @param replica.podAnnotations Annotations for Redis(R) replicas pods
911 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
914 ## @param replica.shareProcessNamespace Share a single process namespace between all of the containers in Redis(R) replicas pods
915 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
917 shareProcessNamespace: false
918 ## @param replica.podAffinityPreset Pod affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
919 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
921 podAffinityPreset: ""
922 ## @param replica.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
923 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
925 podAntiAffinityPreset: soft
926 ## Node affinity preset
927 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
930 ## @param replica.nodeAffinityPreset.type Node affinity preset type. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
933 ## @param replica.nodeAffinityPreset.key Node label key to match. Ignored if `replica.affinity` is set
936 ## @param replica.nodeAffinityPreset.values Node label values to match. Ignored if `replica.affinity` is set
943 ## @param replica.affinity Affinity for Redis(R) replicas pods assignment
944 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
945 ## NOTE: `replica.podAffinityPreset`, `replica.podAntiAffinityPreset`, and `replica.nodeAffinityPreset` will be ignored when it's set
948 ## @param replica.nodeSelector Node labels for Redis(R) replicas pods assignment
949 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
952 ## @param replica.tolerations Tolerations for Redis(R) replicas pods assignment
953 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
956 ## @param replica.topologySpreadConstraints Spread Constraints for Redis(R) replicas pod assignment
957 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
959 ## topologySpreadConstraints:
962 ## whenUnsatisfiable: DoNotSchedule
964 topologySpreadConstraints: []
965 ## @param replica.dnsPolicy DNS Policy for Redis(R) replica pods
966 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
968 ## dnsPolicy: ClusterFirst
971 ## @param replica.dnsConfig DNS Configuration for Redis(R) replica pods
972 ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
978 ## - name: single-request-reopen
981 ## @param replica.lifecycleHooks for the Redis(R) replica container(s) to automate configuration before or after startup
984 ## @param replica.extraVolumes Optionally specify extra list of additional volumes for the Redis(R) replicas pod(s)
987 ## @param replica.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis(R) replicas container(s)
989 extraVolumeMounts: []
990 ## @param replica.sidecars Add additional sidecar containers to the Redis(R) replicas pod(s)
993 ## - name: your-image-name
995 ## imagePullPolicy: Always
998 ## containerPort: 1234
1001 ## @param replica.initContainers Add additional init containers to the Redis(R) replicas pod(s)
1002 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
1005 ## - name: your-image-name
1006 ## image: your-image
1007 ## imagePullPolicy: Always
1008 ## command: ['/bin/bash', '-c', 'echo "hello world"']
1011 ## Persistence Parameters
1012 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1015 ## @param replica.persistence.enabled Enable persistence on Redis(R) replicas nodes using Persistent Volume Claims
1018 ## @param replica.persistence.medium Provide a medium for `emptyDir` volumes.
1021 ## @param replica.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
1024 ## @param replica.persistence.path The path the volume will be mounted at on Redis(R) replicas containers
1025 ## NOTE: Useful when using different Redis(R) images
1028 ## @param replica.persistence.subPath The subdirectory of the volume to mount on Redis(R) replicas containers
1029 ## NOTE: Useful in dev environments
1032 ## @param replica.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Redis(R) replicas containers
1035 ## @param replica.persistence.storageClass Persistent Volume storage class
1036 ## If defined, storageClassName: <storageClass>
1037 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1038 ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
1041 ## @param replica.persistence.accessModes Persistent Volume access modes
1045 ## @param replica.persistence.size Persistent Volume size
1048 ## @param replica.persistence.annotations Additional custom annotations for the PVC
1051 ## @param replica.persistence.labels Additional custom labels for the PVC
1054 ## @param replica.persistence.selector Additional labels to match for the PVC
1061 ## @param replica.persistence.dataSource Custom PVC data source
1064 ## @param replica.persistence.existingClaim Use a existing PVC which must be created manually before bound
1065 ## NOTE: requires replica.persistence.enabled: true
1068 ## persistentVolumeClaimRetentionPolicy
1069 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1070 ## @param replica.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1071 ## @param replica.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1072 ## @param replica.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1074 persistentVolumeClaimRetentionPolicy:
1078 ## Redis(R) replicas service parameters
1081 ## @param replica.service.type Redis(R) replicas service type
1084 ## @param replica.service.ports.redis Redis(R) replicas service port
1088 ## @param replica.service.nodePorts.redis Node port for Redis(R) replicas
1089 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1090 ## NOTE: choose port between <30000-32767>
1094 ## @param replica.service.externalTrafficPolicy Redis(R) replicas service external traffic policy
1095 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1097 externalTrafficPolicy: Cluster
1098 ## @param replica.service.internalTrafficPolicy Redis(R) replicas service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
1099 ## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
1101 internalTrafficPolicy: Cluster
1102 ## @param replica.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1105 ## @param replica.service.clusterIP Redis(R) replicas service Cluster IP
1108 ## @param replica.service.loadBalancerIP Redis(R) replicas service Load Balancer IP
1109 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1112 ## @param replica.service.loadBalancerClass replicas service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1113 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1115 loadBalancerClass: ""
1116 ## @param replica.service.loadBalancerSourceRanges Redis(R) replicas service Load Balancer sources
1117 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1119 ## loadBalancerSourceRanges:
1122 loadBalancerSourceRanges: []
1123 ## @param replica.service.annotations Additional custom annotations for Redis(R) replicas service
1126 ## @param replica.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1127 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1128 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1130 sessionAffinity: None
1131 ## @param replica.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `replica.service.sessionAffinity` is `None`
1132 ## sessionAffinityConfig:
1134 ## timeoutSeconds: 300
1136 sessionAffinityConfig: {}
1137 ## @param replica.terminationGracePeriodSeconds Integer setting the termination grace period for the redis-replicas pods
1139 terminationGracePeriodSeconds: 30
1140 ## Autoscaling configuration
1143 ## @param replica.autoscaling.enabled Enable replica autoscaling settings
1146 ## @param replica.autoscaling.minReplicas Minimum replicas for the pod autoscaling
1149 ## @param replica.autoscaling.maxReplicas Maximum replicas for the pod autoscaling
1152 ## @param replica.autoscaling.targetCPU Percentage of CPU to consider when autoscaling
1155 ## @param replica.autoscaling.targetMemory Percentage of Memory to consider when autoscaling
1158 ## ServiceAccount configuration
1161 ## @param replica.serviceAccount.create Specifies whether a ServiceAccount should be created
1164 ## @param replica.serviceAccount.name The name of the ServiceAccount to use.
1165 ## If not set and create is true, a name is generated using the common.names.fullname template
1168 ## @param replica.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
1169 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
1171 automountServiceAccountToken: false
1172 ## @param replica.serviceAccount.annotations Additional custom annotations for the ServiceAccount
1175 ## Pod Disruption Budget configuration
1176 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
1177 ## @param replica.pdb.create Enable/disable a Pod Disruption Budget creation
1178 ## @param replica.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
1179 ## @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.
1185 ## @param replica.extraPodSpec Optionally specify extra PodSpec for the Redis(R) replicas pod(s)
1188 ## @param replica.annotations Additional custom annotations for Redis(R) replicas resource
1191## @section Redis(R) Sentinel configuration parameters
1195 ## @param sentinel.enabled Use Redis(R) Sentinel on Redis(R) pods.
1196 ## IMPORTANT: this will disable the master and replicas services and
1197 ## create a single Redis(R) service exposing both the Redis and Sentinel ports
1200 ## Iamguarded Redis(R) Sentinel image version
1201 ## @param sentinel.image.registry [default: REGISTRY_NAME] Redis(R) Sentinel image registry
1202 ## @param sentinel.image.repository [default: REPOSITORY_NAME/redis-sentinel] Redis(R) Sentinel image repository
1203 ## @skip sentinel.image.tag Redis(R) Sentinel image tag (immutable tags are recommended)
1204 ## @param sentinel.image.digest Redis(R) Sentinel image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1205 ## @param sentinel.image.pullPolicy Redis(R) Sentinel image pull policy
1206 ## @param sentinel.image.pullSecrets Redis(R) Sentinel image pull secrets
1207 ## @param sentinel.image.debug Enable image debug mode
1211 repository: chainguard-private/redis-sentinel-iamguarded
1214 ## Specify a imagePullPolicy
1215 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1217 pullPolicy: IfNotPresent
1218 ## Optionally specify an array of imagePullSecrets.
1219 ## Secrets must be manually created in the namespace.
1220 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1223 ## - myRegistryKeySecretName
1226 ## Enable debug mode
1229 ## @param sentinel.annotations Additional custom annotations for Redis(R) Sentinel resource
1232 ## @param sentinel.masterSet Master set name
1235 ## @param sentinel.quorum Sentinel Quorum
1238 ## @param sentinel.getMasterTimeout Amount of time to allow before get_sentinel_master_info() times out.
1240 getMasterTimeout: 90
1241 ## @param sentinel.automateClusterRecovery Automate cluster recovery in cases where the last replica is not considered a good replica and Sentinel won't automatically failover to it.
1242 ## This also prevents any new replica from starting until the last remaining replica is elected as master to guarantee that it is the one to be elected by Sentinel, and not a newly started replica with no data.
1243 ## NOTE: This feature requires a "downAfterMilliseconds" value less or equal to 2000.
1245 automateClusterRecovery: false
1246 ## @param sentinel.redisShutdownWaitFailover Whether the Redis(R) master container waits for the failover at shutdown (in addition to the Redis(R) Sentinel container).
1248 redisShutdownWaitFailover: true
1249 ## Sentinel timing restrictions
1250 ## @param sentinel.downAfterMilliseconds Timeout for detecting a Redis(R) node is down
1251 ## @param sentinel.failoverTimeout Timeout for performing a election failover
1253 downAfterMilliseconds: 60000
1254 failoverTimeout: 180000
1255 ## @param sentinel.parallelSyncs Number of replicas that can be reconfigured in parallel to use the new master after a failover
1258 ## @param sentinel.replicaSyncCheck Wait for data full sync on replicas before marking them as ready (experimental)
1260 replicaSyncCheck: false
1261 ## @param sentinel.configuration Configuration for Redis(R) Sentinel nodes
1262 ## ref: https://redis.io/topics/sentinel
1265 ## @param sentinel.command Override default container command (useful when using custom images)
1268 ## @param sentinel.args Override default container args (useful when using custom images)
1271 ## @param sentinel.enableServiceLinks Whether information about services should be injected into pod's environment variable
1273 enableServiceLinks: true
1274 ## @param sentinel.preExecCmds Additional commands to run prior to starting Redis(R) Sentinel
1277 ## @param sentinel.extraEnvVars Array with extra environment variables to add to Redis(R) Sentinel nodes
1284 ## @param sentinel.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Redis(R) Sentinel nodes
1287 ## @param sentinel.extraEnvVarsSecret Name of existing Secret containing extra env vars for Redis(R) Sentinel nodes
1289 extraEnvVarsSecret: ""
1290 ## @param sentinel.externalMaster.enabled Use external master for bootstrapping
1291 ## @param sentinel.externalMaster.host External master host to bootstrap from
1292 ## @param sentinel.externalMaster.port Port for Redis service external master host
1298 ## @param sentinel.containerPorts.sentinel Container port to open on Redis(R) Sentinel nodes
1302 ## Configure extra options for Redis(R) containers' liveness and readiness probes
1303 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1304 ## @param sentinel.startupProbe.enabled Enable startupProbe on Redis(R) Sentinel nodes
1305 ## @param sentinel.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1306 ## @param sentinel.startupProbe.periodSeconds Period seconds for startupProbe
1307 ## @param sentinel.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1308 ## @param sentinel.startupProbe.failureThreshold Failure threshold for startupProbe
1309 ## @param sentinel.startupProbe.successThreshold Success threshold for startupProbe
1313 initialDelaySeconds: 10
1317 failureThreshold: 22
1318 ## @param sentinel.livenessProbe.enabled Enable livenessProbe on Redis(R) Sentinel nodes
1319 ## @param sentinel.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1320 ## @param sentinel.livenessProbe.periodSeconds Period seconds for livenessProbe
1321 ## @param sentinel.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1322 ## @param sentinel.livenessProbe.failureThreshold Failure threshold for livenessProbe
1323 ## @param sentinel.livenessProbe.successThreshold Success threshold for livenessProbe
1327 initialDelaySeconds: 20
1332 ## @param sentinel.readinessProbe.enabled Enable readinessProbe on Redis(R) Sentinel nodes
1333 ## @param sentinel.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1334 ## @param sentinel.readinessProbe.periodSeconds Period seconds for readinessProbe
1335 ## @param sentinel.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1336 ## @param sentinel.readinessProbe.failureThreshold Failure threshold for readinessProbe
1337 ## @param sentinel.readinessProbe.successThreshold Success threshold for readinessProbe
1341 initialDelaySeconds: 20
1346 ## @param sentinel.customStartupProbe Custom startupProbe that overrides the default one
1348 customStartupProbe: {}
1349 ## @param sentinel.customLivenessProbe Custom livenessProbe that overrides the default one
1351 customLivenessProbe: {}
1352 ## @param sentinel.customReadinessProbe Custom readinessProbe that overrides the default one
1354 customReadinessProbe: {}
1355 ## Persistence parameters
1356 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1359 ## @param sentinel.persistence.enabled Enable persistence on Redis(R) sentinel nodes using Persistent Volume Claims (Experimental)
1362 ## @param sentinel.persistence.storageClass Persistent Volume storage class
1363 ## If defined, storageClassName: <storageClass>
1364 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1365 ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
1368 ## @param sentinel.persistence.accessModes Persistent Volume access modes
1372 ## @param sentinel.persistence.size Persistent Volume size
1375 ## @param sentinel.persistence.annotations Additional custom annotations for the PVC
1378 ## @param sentinel.persistence.labels Additional custom labels for the PVC
1381 ## @param sentinel.persistence.selector Additional labels to match for the PVC
1388 ## @param sentinel.persistence.dataSource Custom PVC data source
1391 ## @param sentinel.persistence.medium Provide a medium for `emptyDir` volumes.
1394 ## @param sentinel.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
1397 ## persistentVolumeClaimRetentionPolicy
1398 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1399 ## @param sentinel.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1400 ## @param sentinel.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1401 ## @param sentinel.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1403 persistentVolumeClaimRetentionPolicy:
1407 ## Redis(R) Sentinel resource requests and limits
1408 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1409 ## @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).
1411 resourcesPreset: "nano"
1412 ## @param sentinel.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1423 ## @param sentinel.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1427 ## Configure Container Security Context
1428 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1429 ## @param sentinel.containerSecurityContext.enabled Enabled Redis(R) Sentinel containers' Security Context
1430 ## @param sentinel.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1431 ## @param sentinel.containerSecurityContext.runAsUser Set Redis(R) Sentinel containers' Security Context runAsUser
1432 ## @param sentinel.containerSecurityContext.runAsGroup Set Redis(R) Sentinel containers' Security Context runAsGroup
1433 ## @param sentinel.containerSecurityContext.runAsNonRoot Set Redis(R) Sentinel containers' Security Context runAsNonRoot
1434 ## @param sentinel.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1435 ## @param sentinel.containerSecurityContext.allowPrivilegeEscalation Set Redis(R) Sentinel containers' Security Context allowPrivilegeEscalation
1436 ## @param sentinel.containerSecurityContext.seccompProfile.type Set Redis(R) Sentinel containers' Security Context seccompProfile
1437 ## @param sentinel.containerSecurityContext.capabilities.drop Set Redis(R) Sentinel containers' Security Context capabilities to drop
1439 containerSecurityContext:
1445 allowPrivilegeEscalation: false
1446 readOnlyRootFilesystem: true
1448 type: RuntimeDefault
1451 ## @param sentinel.lifecycleHooks for the Redis(R) sentinel container(s) to automate configuration before or after startup
1454 ## @param sentinel.extraVolumes Optionally specify extra list of additional volumes for the Redis(R) Sentinel
1457 ## @param sentinel.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis(R) Sentinel container(s)
1459 extraVolumeMounts: []
1460 ## Redis(R) Sentinel service parameters
1461 ## Note: values passed in this section also configure the master service, unless the sentinel.masterService is explicitly overridden.
1463 ## @param sentinel.service.type Redis(R) Sentinel service type
1466 ## @param sentinel.service.ports.redis Redis(R) service port for Redis(R)
1467 ## @param sentinel.service.ports.sentinel Redis(R) service port for Redis(R) Sentinel
1472 ## @param sentinel.service.nodePorts.redis Node port for Redis(R)
1473 ## @param sentinel.service.nodePorts.sentinel Node port for Sentinel
1474 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1475 ## NOTE: choose port between <30000-32767>
1476 ## NOTE: By leaving these values blank, they will be generated by ports-configmap
1477 ## If setting manually, please leave at least replica.replicaCount + 1 in between sentinel.service.nodePorts.redis and sentinel.service.nodePorts.sentinel to take into account the ports that will be created while incrementing that base port
1482 ## @param sentinel.service.externalTrafficPolicy Redis(R) Sentinel service external traffic policy
1483 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1485 externalTrafficPolicy: Cluster
1486 ## @param sentinel.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1489 ## @param sentinel.service.clusterIP Redis(R) Sentinel service Cluster IP
1492 ## @param sentinel.service.createMaster Enable master service pointing to the current master (experimental)
1493 ## NOTE: rbac.create need to be set to true
1496 ## @param sentinel.service.loadBalancerIP Redis(R) Sentinel service Load Balancer IP
1497 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1500 ## @param sentinel.service.loadBalancerClass sentinel service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1501 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1503 loadBalancerClass: ""
1504 ## @param sentinel.service.loadBalancerSourceRanges Redis(R) Sentinel service Load Balancer sources
1505 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1507 ## loadBalancerSourceRanges:
1510 loadBalancerSourceRanges: []
1511 ## @param sentinel.service.annotations Additional custom annotations for Redis(R) Sentinel service
1514 ## @param sentinel.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1515 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1516 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1518 sessionAffinity: None
1519 ## @param sentinel.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `sentinel.service.sessionAffinity` is `None`
1520 ## sessionAffinityConfig:
1522 ## timeoutSeconds: 300
1524 sessionAffinityConfig: {}
1525 ## Headless service properties
1528 ## @param sentinel.service.headless.annotations Annotations for the headless service.
1531 ## @param sentinel.service.headless.extraPorts Optionally specify extra ports to expose for the headless service.
1534 ## - name: my-custom-port
1537 ## targetPort: 12345
1540 ## Redis(R) master service parameters
1543 ## @param sentinel.masterService.enabled Enable master service pointing to the current master (experimental)
1544 ## NOTE: rbac.create need to be set to true
1547 ## @param sentinel.masterService.type Redis(R) Sentinel master service type
1550 ## @param sentinel.masterService.ports.redis Redis(R) service port for Redis(R)
1554 ## @param sentinel.masterService.nodePorts.redis Node port for Redis(R)
1555 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1556 ## NOTE: choose port between <30000-32767>
1557 ## NOTE: By leaving these values blank, they will be generated by ports-configmap
1558 ## If setting manually, please leave at least replica.replicaCount + 1 in between sentinel.service.nodePorts.redis and sentinel.service.nodePorts.sentinel to take into account the ports that will be created while incrementing that base port
1562 ## @param sentinel.masterService.externalTrafficPolicy Redis(R) master service external traffic policy
1563 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1565 externalTrafficPolicy: ""
1566 ## @param sentinel.masterService.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1569 ## @param sentinel.masterService.clusterIP Redis(R) master service Cluster IP
1572 ## @param sentinel.masterService.loadBalancerIP Redis(R) master service Load Balancer IP
1573 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1576 ## @param sentinel.masterService.loadBalancerClass master service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1577 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1579 loadBalancerClass: ""
1580 ## @param sentinel.masterService.loadBalancerSourceRanges Redis(R) master service Load Balancer sources
1581 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1583 ## loadBalancerSourceRanges:
1586 loadBalancerSourceRanges: []
1587 ## @param sentinel.masterService.annotations Additional custom annotations for Redis(R) master service
1590 ## @param sentinel.masterService.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1591 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1592 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1594 sessionAffinity: None
1595 ## @param sentinel.masterService.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `sentinel.masterService.sessionAffinity` is `None`
1596 ## sessionAffinityConfig:
1598 ## timeoutSeconds: 300
1600 sessionAffinityConfig: {}
1601 ## @param sentinel.terminationGracePeriodSeconds Integer setting the termination grace period for the redis-node pods
1603 terminationGracePeriodSeconds: 30
1604 ## @param sentinel.extraPodSpec Optionally specify extra PodSpec for the Redis(R) Sentinel pod(s)
1608 ## @param sentinel.externalAccess.enabled Enable external access to the Redis
1612 ## @param sentinel.externalAccess.service.type Type for the services used to expose every Pod
1613 ## At this moment only LoadBalancer is supported
1616 ## @param sentinel.externalAccess.service.redisPort Port for the services used to expose redis-server
1619 ## @param sentinel.externalAccess.service.sentinelPort Port for the services used to expose redis-sentinel
1622 ## @param sentinel.externalAccess.service.loadBalancerIPs Array of load balancer IPs for each Redis(R) node. Length must be the same as sentinel.replicaCount
1625 ## @param sentinel.externalAccess.service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1626 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1628 loadBalancerClass: ""
1629 ## @param sentinel.externalAccess.service.loadBalancerSourceRanges Service Load Balancer sources
1630 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1632 ## loadBalancerSourceRanges:
1635 loadBalancerSourceRanges: []
1636 ## @param sentinel.externalAccess.service.annotations Annotations to add to the services used to expose every Pod of the Redis(R) Cluster
1639 ## @param sentinel.externalAccess.service.loadBalancerIPAnnotation Name of annotation to specify fixed IP for the LoadBalancer service
1641 loadBalancerIPAnnotation: ""
1642## @section Other Parameters
1644## @param serviceBindings.enabled Create secret for service binding (Experimental)
1645## Ref: https://servicebinding.io/service-provider/
1649## Network Policy configuration
1650## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1653 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
1656 ## @param networkPolicy.allowExternal Don't require client label for connections
1657 ## When set to false, only pods with the correct client label will have network access to the ports
1658 ## Redis(R) is listening on. When true, Redis(R) will accept connections from any source
1659 ## (with the correct destination port).
1662 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1664 allowExternalEgress: true
1665 ## @param networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy
1675 ## - matchExpressions:
1682 ## @param networkPolicy.extraEgress Add extra egress rules to the NetworkPolicy
1692 ## - matchExpressions:
1699 ## @param networkPolicy.ingressNSMatchLabels Labels to match to allow traffic from other namespaces
1700 ## @param networkPolicy.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces
1702 ingressNSMatchLabels: {}
1703 ingressNSPodMatchLabels: {}
1705 ## @param networkPolicy.metrics.allowExternal Don't require client label for connections for metrics endpoint
1706 ## When set to false, only pods with the correct client label will have network access to the metrics port
1709 ## @param networkPolicy.metrics.ingressNSMatchLabels Labels to match to allow traffic from other namespaces to metrics endpoint
1710 ## @param networkPolicy.metrics.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces to metrics endpoint
1712 ingressNSMatchLabels: {}
1713 ingressNSPodMatchLabels: {}
1714## PodSecurityPolicy configuration
1715## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1718 ## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1721 ## @param podSecurityPolicy.enabled Enable PodSecurityPolicy's RBAC rules
1724## RBAC configuration
1727 ## @param rbac.create Specifies whether RBAC resources should be created
1730 ## @param rbac.rules Custom RBAC rules to set
1742## ServiceAccount configuration
1745 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
1748 ## @param serviceAccount.name The name of the ServiceAccount to use.
1749 ## If not set and create is true, a name is generated using the common.names.fullname template
1752 ## @param serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
1753 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
1755 automountServiceAccountToken: false
1756 ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1759## Redis(R) Pod Disruption Budget configuration
1760## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1761## @param pdb DEPRECATED Please use `master.pdb` and `replica.pdb` values instead
1767 ## @param tls.enabled Enable TLS traffic
1770 ## @param tls.authClients Require clients to authenticate
1773 ## @param tls.autoGenerated Enable autogenerated certificates
1775 autoGenerated: false
1776 ## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
1779 ## @param tls.certificatesSecret DEPRECATED. Use existingSecret instead.
1781 certificatesSecret: ""
1782 ## @param tls.certFilename Certificate filename
1785 ## @param tls.certKeyFilename Certificate Key filename
1788 ## @param tls.certCAFilename CA Certificate filename
1791 ## @param tls.dhParamsFilename File containing DH params (in order to support DH based ciphers)
1793 dhParamsFilename: ""
1794## @section Metrics Parameters
1797 ## @param metrics.enabled Start a sidecar prometheus exporter to expose Redis(R) metrics
1800 ## Iamguarded Redis(R) Exporter image
1801 ## @param metrics.image.registry [default: REGISTRY_NAME] Redis(R) Exporter image registry
1802 ## @param metrics.image.repository [default: REPOSITORY_NAME/redis-exporter] Redis(R) Exporter image repository
1803 ## @skip metrics.image.tag Redis(R) Exporter image tag (immutable tags are recommended)
1804 ## @param metrics.image.digest Redis(R) Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1805 ## @param metrics.image.pullPolicy Redis(R) Exporter image pull policy
1806 ## @param metrics.image.pullSecrets Redis(R) Exporter image pull secrets
1810 repository: chainguard-private/prometheus-redis-exporter-iamguarded
1813 pullPolicy: IfNotPresent
1814 ## Optionally specify an array of imagePullSecrets.
1815 ## Secrets must be manually created in the namespace.
1816 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1819 ## - myRegistryKeySecretName
1822 ## @param metrics.containerPorts.http Metrics HTTP container port
1826 ## Configure extra options for Redis(R) containers' liveness, readiness & startup probes
1827 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
1828 ## @param metrics.startupProbe.enabled Enable startupProbe on Redis(R) replicas nodes
1829 ## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1830 ## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1831 ## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1832 ## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1833 ## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1837 initialDelaySeconds: 10
1842 ## @param metrics.livenessProbe.enabled Enable livenessProbe on Redis(R) replicas nodes
1843 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1844 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1845 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1846 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1847 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1851 initialDelaySeconds: 10
1856 ## @param metrics.readinessProbe.enabled Enable readinessProbe on Redis(R) replicas nodes
1857 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1858 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1859 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1860 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1861 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1865 initialDelaySeconds: 5
1870 ## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1872 customStartupProbe: {}
1873 ## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1875 customLivenessProbe: {}
1876 ## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1878 customReadinessProbe: {}
1879 ## @param metrics.command Override default metrics container init command (useful when using custom images)
1882 ## @param metrics.redisTargetHost A way to specify an alternative Redis(R) hostname
1883 ## Useful for certificate CN/SAN matching
1885 redisTargetHost: "localhost"
1886 ## @param metrics.extraArgs Extra arguments for Redis(R) exporter, for example:
1889 ## check-keys: myKey,myOtherKey
1892 ## @param metrics.extraEnvVars Array with extra environment variables to add to Redis(R) exporter
1899 ## Configure Container Security Context
1900 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1901 ## @param metrics.containerSecurityContext.enabled Enabled Redis(R) exporter containers' Security Context
1902 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1903 ## @param metrics.containerSecurityContext.runAsUser Set Redis(R) exporter containers' Security Context runAsUser
1904 ## @param metrics.containerSecurityContext.runAsGroup Set Redis(R) exporter containers' Security Context runAsGroup
1905 ## @param metrics.containerSecurityContext.runAsNonRoot Set Redis(R) exporter containers' Security Context runAsNonRoot
1906 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set Redis(R) exporter containers' Security Context allowPrivilegeEscalation
1907 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1908 ## @param metrics.containerSecurityContext.seccompProfile.type Set Redis(R) exporter containers' Security Context seccompProfile
1909 ## @param metrics.containerSecurityContext.capabilities.drop Set Redis(R) exporter containers' Security Context capabilities to drop
1911 containerSecurityContext:
1917 allowPrivilegeEscalation: false
1918 readOnlyRootFilesystem: true
1920 type: RuntimeDefault
1923 ## @param metrics.extraVolumes Optionally specify extra list of additional volumes for the Redis(R) metrics sidecar
1926 ## @param metrics.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis(R) metrics sidecar
1928 extraVolumeMounts: []
1929 ## Redis(R) exporter resource requests and limits
1930 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1931 ## @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).
1933 resourcesPreset: "nano"
1934 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1945 ## @param metrics.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1946 ## @param metrics.fips.golang Configure Golang FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1951 ## @param metrics.podLabels Extra labels for Redis(R) exporter pods
1952 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1955 ## @param metrics.podAnnotations [object] Annotations for Redis(R) exporter pods
1956 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1959 prometheus.io/scrape: "true"
1960 prometheus.io/port: "9121"
1961 ## Redis(R) exporter service parameters
1964 ## @param metrics.service.enabled Create Service resource(s) for scraping metrics using PrometheusOperator ServiceMonitor, can be disabled when using a PodMonitor
1967 ## @param metrics.service.type Redis(R) exporter service type
1970 ## @param metrics.service.ports.http Redis(R) exporter service port
1974 ## @param metrics.service.externalTrafficPolicy Redis(R) exporter service external traffic policy
1975 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1977 externalTrafficPolicy: Cluster
1978 ## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1981 ## @param metrics.service.loadBalancerIP Redis(R) exporter service Load Balancer IP
1982 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1985 ## @param metrics.service.loadBalancerClass exporter service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1986 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1988 loadBalancerClass: ""
1989 ## @param metrics.service.loadBalancerSourceRanges Redis(R) exporter service Load Balancer sources
1990 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1992 ## loadBalancerSourceRanges:
1995 loadBalancerSourceRanges: []
1996 ## @param metrics.service.annotations Additional custom annotations for Redis(R) exporter service
1999 ## @param metrics.service.clusterIP Redis(R) exporter service Cluster IP
2002 ## Prometheus Service Monitor
2003 ## ref: https://github.com/coreos/prometheus-operator
2004 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
2007 ## @param metrics.serviceMonitor.port the service port to scrape metrics from
2010 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor resource(s) for scraping metrics using PrometheusOperator
2013 ## @param metrics.serviceMonitor.namespace The namespace in which the ServiceMonitor will be created
2016 ## @param metrics.serviceMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
2019 ## @param metrics.serviceMonitor.interval The interval at which metrics should be scraped
2022 ## @param metrics.serviceMonitor.scrapeTimeout The timeout after which the scrape is ended
2025 ## @param metrics.serviceMonitor.relabelings Metrics RelabelConfigs to apply to samples before scraping.
2028 ## @skip metrics.serviceMonitor.relabellings DEPRECATED: Use `metrics.serviceMonitor.relabelings` instead.
2031 ## @param metrics.serviceMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
2033 metricRelabelings: []
2034 ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
2037 ## @param metrics.serviceMonitor.additionalLabels Additional labels that can be used so ServiceMonitor resource(s) can be discovered by Prometheus
2039 additionalLabels: {}
2040 ## @param metrics.serviceMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
2043 ## @param metrics.serviceMonitor.sampleLimit Limit of how many samples should be scraped from every Pod
2046 ## @param metrics.serviceMonitor.targetLimit Limit of how many targets should be scraped
2049 ## @param metrics.serviceMonitor.additionalEndpoints Additional endpoints to scrape (e.g sentinel)
2051 additionalEndpoints: []
2052 # uncomment in order to scrape sentinel metrics, also to in order distinguish between Sentinel and Redis container metrics
2053 # add metricRelabelings with label like app=redis to main redis pod-monitor port
2056 # port: "http-metrics"
2058 # target: ["localhost:26379"]
2059 # metricRelabelings:
2060 # - targetLabel: "app"
2061 # replacement: "sentinel"
2062 ## Prometheus Pod Monitor
2063 ## ref: https://github.com/coreos/prometheus-operator
2064 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#podmonitor
2067 ## @param metrics.podMonitor.port the pod port to scrape metrics from
2070 ## @param metrics.podMonitor.enabled Create PodMonitor resource(s) for scraping metrics using PrometheusOperator
2073 ## @param metrics.podMonitor.namespace The namespace in which the PodMonitor will be created
2076 ## @param metrics.podMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
2079 ## @param metrics.podMonitor.interval The interval at which metrics should be scraped
2082 ## @param metrics.podMonitor.scrapeTimeout The timeout after which the scrape is ended
2085 ## @param metrics.podMonitor.relabelings Metrics RelabelConfigs to apply to samples before scraping.
2088 ## @skip metrics.podMonitor.relabellings DEPRECATED: Use `metrics.podMonitor.relabelings` instead.
2091 ## @param metrics.podMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
2093 metricRelabelings: []
2094 # - targetLabel: "app"
2095 # replacement: "redis"
2096 ## @param metrics.podMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
2099 ## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitor resource(s) can be discovered by Prometheus
2101 additionalLabels: {}
2102 ## @param metrics.podMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
2105 ## @param metrics.podMonitor.sampleLimit Limit of how many samples should be scraped from every Pod
2108 ## @param metrics.podMonitor.targetLimit Limit of how many targets should be scraped
2111 ## @param metrics.podMonitor.additionalEndpoints Additional endpoints to scrape (e.g sentinel)
2113 additionalEndpoints: []
2118 # target: ["localhost:26379"]
2119 # metricRelabelings:
2120 # - targetLabel: "app"
2121 # replacement: "sentinel"
2122 ## Custom PrometheusRule to be defined
2123 ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
2126 ## @param metrics.prometheusRule.enabled Create a custom prometheusRule Resource for scraping metrics using PrometheusOperator
2129 ## @param metrics.prometheusRule.namespace The namespace in which the prometheusRule will be created
2132 ## @param metrics.prometheusRule.additionalLabels Additional labels for the prometheusRule
2134 additionalLabels: {}
2135 ## @param metrics.prometheusRule.rules Custom Prometheus rules
2138 ## - alert: RedisDown
2139 ## expr: redis_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
2144 ## summary: Redis(R) instance {{ "{{ $labels.instance }}" }} down
2145 ## description: Redis(R) instance {{ "{{ $labels.instance }}" }} is down
2146 ## - alert: RedisMemoryHigh
2148 ## redis_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
2150 ## redis_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
2156 ## summary: Redis(R) instance {{ "{{ $labels.instance }}" }} is using too much memory
2158 ## Redis(R) instance {{ "{{ $labels.instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
2159 ## - alert: RedisKeyEviction
2161 ## increase(redis_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
2166 ## summary: Redis(R) instance {{ "{{ $labels.instance }}" }} has evicted keys
2168 ## Redis(R) instance {{ "{{ $labels.instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
2171## @section Init Container Parameters
2174## 'volumePermissions' init container parameters
2175## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
2176## based on the *podSecurityContext/*containerSecurityContext parameters
2179 ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
2182 ## OS Shell + Utility image
2183 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
2184 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
2185 ## @skip volumePermissions.image.tag OS Shell + Utility image tag (immutable tags are recommended)
2186 ## @param volumePermissions.image.digest OS Shell + Utility image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2187 ## @param volumePermissions.image.pullPolicy OS Shell + Utility image pull policy
2188 ## @param volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets
2192 repository: chainguard-private/os-shell-iamguarded
2195 pullPolicy: IfNotPresent
2196 ## Optionally specify an array of imagePullSecrets.
2197 ## Secrets must be manually created in the namespace.
2198 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2201 ## - myRegistryKeySecretName
2204 ## Init container's resource requests and limits
2205 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2206 ## @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).
2208 resourcesPreset: "nano"
2209 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2220 ## @param volumePermissions.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2224 ## Init container Container Security Context
2225 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2226 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2227 ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
2228 ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
2229 ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
2230 ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
2232 containerSecurityContext:
2235 ## @param volumePermissions.extraEnvVars Array with extra environment variables to add to volume permissions init container.
2242## Kubectl InitContainer
2243## used by Sentinel to update the isMaster label on the Redis(TM) pods
2246 ## Iamguarded Kubectl image version
2247 ## @param kubectl.image.registry [default: REGISTRY_NAME] Kubectl image registry
2248 ## @param kubectl.image.repository [default: REPOSITORY_NAME/kubectl] Kubectl image repository
2249 ## @skip kubectl.image.tag Kubectl image tag (immutable tags are recommended), by default, using the current version
2250 ## @param kubectl.image.digest Kubectl image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2251 ## @param kubectl.image.pullPolicy Kubectl image pull policy
2252 ## @param kubectl.image.pullSecrets Kubectl pull secrets
2256 repository: chainguard-private/kubectl-iamguarded
2259 ## Specify a imagePullPolicy
2260 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
2262 pullPolicy: IfNotPresent
2263 ## Optionally specify an array of imagePullSecrets.
2264 ## Secrets must be manually created in the namespace.
2265 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2268 ## - myRegistryKeySecretName
2271 ## @param kubectl.command kubectl command to execute
2273 command: ["/opt/iamguarded/scripts/kubectl-scripts/update-master-label.sh"]
2274 ## Configure Container Security Context
2275 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
2276 ## @param kubectl.containerSecurityContext.enabled Enabled kubectl containers' Security Context
2277 ## @param kubectl.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2278 ## @param kubectl.containerSecurityContext.runAsUser Set kubectl containers' Security Context runAsUser
2279 ## @param kubectl.containerSecurityContext.runAsGroup Set kubectl containers' Security Context runAsGroup
2280 ## @param kubectl.containerSecurityContext.runAsNonRoot Set kubectl containers' Security Context runAsNonRoot
2281 ## @param kubectl.containerSecurityContext.allowPrivilegeEscalation Set kubectl containers' Security Context allowPrivilegeEscalation
2282 ## @param kubectl.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
2283 ## @param kubectl.containerSecurityContext.seccompProfile.type Set kubectl containers' Security Context seccompProfile
2284 ## @param kubectl.containerSecurityContext.capabilities.drop Set kubectl containers' Security Context capabilities to drop
2286 containerSecurityContext:
2292 allowPrivilegeEscalation: false
2293 readOnlyRootFilesystem: true
2295 type: RuntimeDefault
2298 ## Iamguarded Kubectl resource requests and limits
2299 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2300 ## @param kubectl.resources.limits The resources limits for the kubectl containers
2301 ## @param kubectl.resources.requests The requested resources for the kubectl containers
2306 ## @param kubectl.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2307 ## @param kubectl.fips.golang Configure Golang FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2312## init-sysctl container parameters
2313## used to perform sysctl operation to modify Kernel settings (needed sometimes to avoid warnings)
2316 ## @param sysctl.enabled Enable init container to modify Kernel settings
2319 ## OS Shell + Utility image
2320 ## @param sysctl.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
2321 ## @param sysctl.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
2322 ## @skip sysctl.image.tag OS Shell + Utility image tag (immutable tags are recommended)
2323 ## @param sysctl.image.digest OS Shell + Utility image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2324 ## @param sysctl.image.pullPolicy OS Shell + Utility image pull policy
2325 ## @param sysctl.image.pullSecrets OS Shell + Utility image pull secrets
2329 repository: chainguard-private/os-shell-iamguarded
2332 pullPolicy: IfNotPresent
2333 ## Optionally specify an array of imagePullSecrets.
2334 ## Secrets must be manually created in the namespace.
2335 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2338 ## - myRegistryKeySecretName
2341 ## @param sysctl.command Override default init-sysctl container command (useful when using custom images)
2344 ## @param sysctl.mountHostSys Mount the host `/sys` folder to `/host-sys`
2347 ## Init container's resource requests and limits
2348 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2349 ## @param sysctl.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if sysctl.resources is set (sysctl.resources is recommended for production).
2351 resourcesPreset: "nano"
2352 ## @param sysctl.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2363 ## @param sysctl.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2367## @section useExternalDNS Parameters
2369## @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.
2370## @param useExternalDNS.additionalAnnotations Extra annotations to be utilized when `external-dns` is enabled.
2371## @param useExternalDNS.annotationKey The annotation key utilized when `external-dns` is enabled. Setting this to `false` will disable annotations.
2372## @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.
2377 annotationKey: external-dns.alpha.kubernetes.io/
2378 additionalAnnotations: {}