DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
valkey logoHELM

valkey

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
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
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
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
14
##
15
16
## @param global.imageRegistry Global Docker image registry
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
## @param global.imagePullSecrets Global Docker registry secret names as an array
19
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20
## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
21
## @param global.valkey.password Global Valkey password (overrides `auth.password`)
22
## @param global.defaultFips Default value for the FIPS configuration (allowed values: '', restricted, relaxed, off). Can be overridden by the 'fips' object
23
##
24
global:
25
imageRegistry: ""
26
useImageTags: false
27
## Example:
28
## imagePullSecrets:
29
## - myRegistryKeySecretName
30
##
31
imagePullSecrets: []
32
defaultStorageClass: ""
33
storageClass: ""
34
## Security parameters
35
##
36
security:
37
## @param global.security.allowInsecureImages Allows skipping image verification
38
allowInsecureImages: false
39
valkey:
40
password: ""
41
## Compatibility adaptations for Kubernetes platforms
42
##
43
compatibility:
44
## Compatibility adaptations for Openshift
45
##
46
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)
48
##
49
adaptSecurityContext: auto
50
## Configure FIPS mode: '', 'restricted', 'relaxed', 'off'
51
##
52
defaultFips: restricted
53
org: ""
54
## @section Common parameters
55
##
56
57
## @param kubeVersion Override Kubernetes version
58
##
59
kubeVersion: ""
60
## @param apiVersions Override Kubernetes API versions reported by .Capabilities
61
##
62
apiVersions: []
63
## @param nameOverride String to partially override common.names.fullname
64
##
65
nameOverride: ""
66
## @param fullnameOverride String to fully override common.names.fullname
67
##
68
fullnameOverride: ""
69
## @param namespaceOverride String to fully override common.names.namespace
70
##
71
namespaceOverride: ""
72
## @param commonLabels Labels to add to all deployed objects
73
##
74
commonLabels: {}
75
## @param commonAnnotations Annotations to add to all deployed objects
76
##
77
commonAnnotations: {}
78
## @param secretAnnotations Annotations to add to secret
79
##
80
secretAnnotations: {}
81
## @param clusterDomain Kubernetes cluster domain name
82
##
83
clusterDomain: cluster.local
84
## @param extraDeploy Array of extra objects to deploy with the release
85
##
86
extraDeploy: []
87
## @param useHostnames Use hostnames internally when announcing replication. If false, the hostname will be resolved to an IP address
88
##
89
useHostnames: true
90
## @param nameResolutionThreshold Failure threshold for internal hostnames resolution
91
##
92
nameResolutionThreshold: 5
93
## @param nameResolutionTimeout Timeout seconds between probes for internal hostnames resolution
94
##
95
nameResolutionTimeout: 5
96
## Enable diagnostic mode in the deployment
97
##
98
diagnosticMode:
99
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
100
##
101
enabled: false
102
## @param diagnosticMode.command Command to override all containers in the deployment
103
##
104
command:
105
- sleep
106
## @param diagnosticMode.args Args to override all containers in the deployment
107
##
108
args:
109
- infinity
110
## @section Valkey Image parameters
111
##
112
113
## Iamguarded Valkey image
114
## @param image.registry [default: REGISTRY_NAME] Valkey image registry
115
## @param image.repository [default: REPOSITORY_NAME/valkey] Valkey image repository
116
## @skip image.tag Valkey image tag (immutable tags are recommended)
117
## @param image.digest Valkey image digest in the way sha256:aa... Please note this parameter, if set, will override the tag
118
## @param image.pullPolicy Valkey image pull policy
119
## @param image.pullSecrets Valkey image pull secrets
120
## @param image.debug Enable image debug mode
121
##
122
image:
123
registry: cgr.dev
124
repository: chainguard-private/valkey-iamguarded
125
tag: 9.1.4
126
digest: sha256:fe1079be97888b5063bf139c8a4496b33461607a35647d40aec08e829f3ef7e6
127
## Specify a imagePullPolicy
128
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
129
##
130
pullPolicy: IfNotPresent
131
## Optionally, specify an array of imagePullSecrets.
132
## Secrets must be manually created in the namespace.
133
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
134
## Example:
135
## pullSecrets:
136
## - myRegistryKeySecretName
137
##
138
pullSecrets: []
139
## Enable debug mode
140
##
141
debug: false
142
## @section Valkey common configuration parameters
143
##
144
145
## @param architecture Valkey architecture. Allowed values: `standalone` or `replication`
146
##
147
architecture: replication
148
## @param fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
149
##
150
fips:
151
openssl: ""
152
## Valkey Authentication parameters
153
##
154
auth:
155
## @param auth.enabled Enable password authentication
156
##
157
enabled: true
158
## @param auth.sentinel Enable password authentication on sentinels too
159
##
160
sentinel: true
161
## @param auth.password Valkey password
162
## Defaults to a random 10-character alphanumeric string if not set
163
##
164
password: ""
165
## @param auth.existingSecret The name of an existing secret with Valkey credentials
166
## NOTE: When it's set, the previous `auth.password` parameter is ignored
167
##
168
existingSecret: ""
169
## @param auth.existingSecretPasswordKey Password key to be retrieved from existing secret
170
## NOTE: ignored unless `auth.existingSecret` parameter is set
171
##
172
existingSecretPasswordKey: ""
173
## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
174
##
175
usePasswordFiles: true
176
## @param auth.usePasswordFileFromSecret Mount password file from secret
177
##
178
usePasswordFileFromSecret: true
179
## @param commonConfiguration [string] Common configuration to be added into the ConfigMap
180
## ref: https://valkey.io/topics/valkey-conf/
181
##
182
commonConfiguration: |-
183
# Enable AOF https://valkey.io/docs/topics/persistence.html
184
appendonly yes
185
# Disable RDB persistence, AOF persistence already enabled.
186
save ""
187
## @param existingConfigmap The name of an existing ConfigMap with your custom configuration for Valkey nodes
188
##
189
existingConfigmap: ""
190
## @section Valkey primary configuration parameters
191
##
192
primary:
193
## @param primary.replicaCount Number of Valkey primary instances to deploy (experimental, requires additional configuration)
194
##
195
replicaCount: 1
196
## @param primary.configuration Configuration for Valkey primary nodes
197
## ref: https://valkey.io/topics/config
198
##
199
configuration: ""
200
## @param primary.disableCommands Array with Valkey commands to disable on primary nodes
201
## Commands will be completely disabled by renaming each to an empty string.
202
## ref: https://valkey.io/topics/security#disabling-of-specific-commands
203
##
204
disableCommands:
205
- FLUSHDB
206
- FLUSHALL
207
## @param primary.command Override default container command (useful when using custom images)
208
##
209
command: []
210
## @param primary.args Override default container args (useful when using custom images)
211
##
212
args: []
213
## @param primary.enableServiceLinks Whether information about services should be injected into pod's environment variable
214
##
215
enableServiceLinks: true
216
## @param primary.preExecCmds Additional commands to run prior to starting Valkey primary
217
##
218
preExecCmds: []
219
## @param primary.extraFlags Array with additional command line flags for Valkey primary
220
## Example:
221
## extraFlags:
222
## - "--maxmemory-policy volatile-ttl"
223
## - "--repl-backlog-size 1024mb"
224
##
225
extraFlags: []
226
## @param primary.extraEnvVars Array with extra environment variables to add to Valkey primary nodes
227
## Example:
228
## extraEnvVars:
229
## - name: FOO
230
## value: "bar"
231
##
232
extraEnvVars: []
233
## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Valkey primary nodes
234
##
235
extraEnvVarsCM: ""
236
## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for Valkey primary nodes
237
##
238
extraEnvVarsSecret: ""
239
## @param primary.containerPorts.valkey Container port to open on Valkey primary nodes
240
##
241
containerPorts:
242
valkey: 6379
243
## Configure extra options for Valkey containers' liveness and readiness probes
244
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
245
## @param primary.startupProbe.enabled Enable startupProbe on Valkey primary nodes
246
## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
247
## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
248
## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
249
## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
250
## @param primary.startupProbe.successThreshold Success threshold for startupProbe
251
##
252
startupProbe:
253
enabled: false
254
initialDelaySeconds: 20
255
periodSeconds: 5
256
timeoutSeconds: 5
257
successThreshold: 1
258
failureThreshold: 5
259
## @param primary.livenessProbe.enabled Enable livenessProbe on Valkey primary nodes
260
## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
261
## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
262
## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
263
## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
264
## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
265
##
266
livenessProbe:
267
enabled: true
268
initialDelaySeconds: 20
269
periodSeconds: 5
270
timeoutSeconds: 5
271
successThreshold: 1
272
failureThreshold: 5
273
## @param primary.readinessProbe.enabled Enable readinessProbe on Valkey primary nodes
274
## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
275
## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
276
## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
277
## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
278
## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
279
##
280
readinessProbe:
281
enabled: true
282
initialDelaySeconds: 20
283
periodSeconds: 5
284
timeoutSeconds: 1
285
successThreshold: 1
286
failureThreshold: 5
287
## @param primary.customStartupProbe Custom startupProbe that overrides the default one
288
##
289
customStartupProbe: {}
290
## @param primary.customLivenessProbe Custom livenessProbe that overrides the default one
291
##
292
customLivenessProbe: {}
293
## @param primary.customReadinessProbe Custom readinessProbe that overrides the default one
294
##
295
customReadinessProbe: {}
296
## Valkey primary resource requests and limits
297
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
298
## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
299
##
300
resourcesPreset: "nano"
301
## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
302
## Example:
303
## resources:
304
## requests:
305
## cpu: 2
306
## memory: 512Mi
307
## limits:
308
## cpu: 3
309
## memory: 1024Mi
310
##
311
resources: {}
312
## Configure Pods Security Context
313
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
314
## @param primary.podSecurityContext.enabled Enable Valkey primary pods' Security Context
315
## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
316
## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
317
## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
318
## @param primary.podSecurityContext.fsGroup Set Valkey primary pod's Security Context fsGroup
319
##
320
podSecurityContext:
321
enabled: true
322
fsGroupChangePolicy: Always
323
sysctls: []
324
supplementalGroups: []
325
fsGroup: 1001
326
## Configure Container Security Context
327
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
328
## @param primary.containerSecurityContext.enabled Enable Valkey primary containers' Security Context
329
## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
330
## @param primary.containerSecurityContext.runAsUser Set Valkey primary containers' Security Context runAsUser
331
## @param primary.containerSecurityContext.runAsGroup Set Valkey primary containers' Security Context runAsGroup
332
## @param primary.containerSecurityContext.runAsNonRoot Set Valkey primary containers' Security Context runAsNonRoot
333
## @param primary.containerSecurityContext.allowPrivilegeEscalation Is it possible to escalate Valkey pod(s) privileges
334
## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
335
## @param primary.containerSecurityContext.seccompProfile.type Set Valkey primary containers' Security Context seccompProfile
336
## @param primary.containerSecurityContext.capabilities.drop Set Valkey primary containers' Security Context capabilities to drop
337
##
338
containerSecurityContext:
339
enabled: true
340
seLinuxOptions: {}
341
runAsUser: 1001
342
runAsGroup: 1001
343
runAsNonRoot: true
344
allowPrivilegeEscalation: false
345
readOnlyRootFilesystem: true
346
seccompProfile:
347
type: RuntimeDefault
348
capabilities:
349
drop: ["ALL"]
350
## @param primary.kind Use either Deployment, StatefulSet (default) or DaemonSet
351
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
352
##
353
kind: StatefulSet
354
## @param primary.schedulerName Alternate scheduler for Valkey primary pods
355
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
356
##
357
schedulerName: ""
358
## @param primary.updateStrategy.type Valkey primary statefulset strategy type
359
## @skip primary.updateStrategy.rollingUpdate
360
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
361
##
362
updateStrategy:
363
## StrategyType
364
## Can be set to RollingUpdate, OnDelete (statefulset), Recreate (deployment)
365
##
366
type: RollingUpdate
367
## @param primary.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
368
##
369
minReadySeconds: 0
370
## @param primary.priorityClassName Valkey primary pods' priorityClassName
371
##
372
priorityClassName: ""
373
## @param primary.automountServiceAccountToken Mount Service Account token in pod
374
##
375
automountServiceAccountToken: false
376
## @param primary.hostAliases Valkey primary pods host aliases
377
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
378
##
379
hostAliases: []
380
## @param primary.runtimeClassName Name of the runtime class to be used by pod(s)
381
## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
382
##
383
runtimeClassName: ""
384
## @param primary.podLabels Extra labels for Valkey primary pods
385
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
386
##
387
podLabels: {}
388
## @param primary.podAnnotations Annotations for Valkey primary pods
389
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
390
##
391
podAnnotations: {}
392
## @param primary.shareProcessNamespace Share a single process namespace between all of the containers in Valkey primary pods
393
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
394
##
395
shareProcessNamespace: false
396
## @param primary.podAffinityPreset Pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
397
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
398
##
399
podAffinityPreset: ""
400
## @param primary.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
401
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
402
##
403
podAntiAffinityPreset: soft
404
## Node primary.affinity preset
405
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
406
##
407
nodeAffinityPreset:
408
## @param primary.nodeAffinityPreset.type Node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
409
##
410
type: ""
411
## @param primary.nodeAffinityPreset.key Node label key to match. Ignored if `primary.affinity` is set
412
##
413
key: ""
414
## @param primary.nodeAffinityPreset.values Node label values to match. Ignored if `primary.affinity` is set
415
## Example:
416
## values:
417
## - e2e-az1
418
## - e2e-az2
419
##
420
values: []
421
## @param primary.affinity Affinity for Valkey primary pods assignment
422
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
423
## NOTE: `primary.podAffinityPreset`, `primary.podAntiAffinityPreset`, and `primary.nodeAffinityPreset` will be ignored when it's set
424
##
425
affinity: {}
426
## @param primary.nodeSelector Node labels for Valkey primary pods assignment
427
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
428
##
429
nodeSelector: {}
430
## @param primary.tolerations Tolerations for Valkey primary pods assignment
431
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
432
##
433
tolerations: []
434
## @param primary.topologySpreadConstraints Spread Constraints for Valkey primary pod assignment
435
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
436
## Example:
437
## topologySpreadConstraints:
438
## - maxSkew: 1
439
## topologyKey: node
440
## whenUnsatisfiable: DoNotSchedule
441
##
442
topologySpreadConstraints: []
443
## @param primary.dnsPolicy DNS Policy for Valkey primary pod
444
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
445
## Example:
446
## dnsPolicy: ClusterFirst
447
##
448
dnsPolicy: ""
449
## @param primary.dnsConfig DNS Configuration for Valkey primary pod
450
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
451
## Example:
452
## dnsConfig:
453
## options:
454
## - name: ndots
455
## value: "4"
456
## - name: single-request-reopen
457
##
458
dnsConfig: {}
459
## @param primary.lifecycleHooks for the Valkey primary container(s) to automate configuration before or after startup
460
##
461
lifecycleHooks: {}
462
## @param primary.extraVolumes Optionally, specify extra list of additional volumes for the Valkey primary pod(s)
463
##
464
extraVolumes: []
465
## @param primary.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey primary container(s)
466
##
467
extraVolumeMounts: []
468
## @param primary.sidecars Add additional sidecar containers to the Valkey primary pod(s)
469
## Example:
470
## sidecars:
471
## - name: your-image-name
472
## image: your-image
473
## imagePullPolicy: Always
474
## ports:
475
## - name: portname
476
## containerPort: 1234
477
##
478
sidecars: []
479
## @param primary.initContainers Add additional init containers to the Valkey primary pod(s)
480
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
481
## Example:
482
## initContainers:
483
## - name: your-image-name
484
## image: your-image
485
## imagePullPolicy: Always
486
## command: ['sh', '-c', 'echo "hello world"']
487
##
488
initContainers: []
489
## Persistence parameters
490
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
491
##
492
persistence:
493
## @param primary.persistence.enabled Enable persistence on Valkey primary nodes using Persistent Volume Claims
494
##
495
enabled: true
496
## @param primary.persistence.medium Provide a medium for `emptyDir` volumes.
497
##
498
medium: ""
499
## @param primary.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
500
##
501
sizeLimit: ""
502
## @param primary.persistence.path The path the volume will be mounted at on Valkey primary containers
503
## NOTE: Useful when using different Valkey images
504
##
505
path: /data
506
## @param primary.persistence.subPath The subdirectory of the volume to mount on Valkey primary containers
507
## NOTE: Useful in dev environments
508
##
509
subPath: ""
510
## @param primary.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Valkey primary containers
511
##
512
subPathExpr: ""
513
## @param primary.persistence.storageClass Persistent Volume storage class
514
## If defined, storageClassName: <storageClass>
515
## If set to "-", storageClassName: "", which disables dynamic provisioning
516
## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
517
##
518
storageClass: ""
519
## @param primary.persistence.accessModes Persistent Volume access modes
520
##
521
accessModes:
522
- ReadWriteOnce
523
## @param primary.persistence.size Persistent Volume size
524
##
525
size: 8Gi
526
## @param primary.persistence.annotations Additional custom annotations for the PVC
527
##
528
annotations: {}
529
## @param primary.persistence.labels Additional custom labels for the PVC
530
##
531
labels: {}
532
## @param primary.persistence.selector Additional labels to match for the PVC
533
## Example:
534
## selector:
535
## matchLabels:
536
## app: my-app
537
##
538
selector: {}
539
## @param primary.persistence.dataSource Custom PVC data source
540
##
541
dataSource: {}
542
## @param primary.persistence.existingClaim Use an existing PVC which must be created manually before bound
543
## NOTE: requires primary.persistence.enabled: true
544
##
545
existingClaim: ""
546
## persistentVolumeClaimRetentionPolicy
547
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
548
## @param primary.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
549
## @param primary.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
550
## @param primary.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
551
##
552
persistentVolumeClaimRetentionPolicy:
553
enabled: false
554
whenScaled: Retain
555
whenDeleted: Retain
556
## Valkey primary service parameters
557
##
558
service:
559
## @param primary.service.type Valkey primary service type
560
##
561
type: ClusterIP
562
## @param primary.service.ports.valkey Valkey primary service port
563
##
564
ports:
565
valkey: 6379
566
## @param primary.service.nodePorts.valkey Node port for Valkey primary
567
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
568
## NOTE: choose port between <30000-32767>
569
##
570
nodePorts:
571
valkey: ""
572
## @param primary.service.externalTrafficPolicy Valkey primary service external traffic policy
573
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
574
##
575
externalTrafficPolicy: Cluster
576
## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
577
##
578
extraPorts: []
579
## @param primary.service.internalTrafficPolicy Valkey primary service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
580
## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
581
##
582
internalTrafficPolicy: Cluster
583
## @param primary.service.clusterIP Valkey primary service Cluster IP
584
##
585
clusterIP: ""
586
## @param primary.service.loadBalancerIP Valkey primary service Load Balancer IP
587
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
588
##
589
loadBalancerIP: ""
590
## @param primary.service.loadBalancerClass primary service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
591
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
592
##
593
loadBalancerClass: ""
594
## @param primary.service.loadBalancerSourceRanges Valkey primary service Load Balancer sources
595
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
596
## Example:
597
## loadBalancerSourceRanges:
598
## - 10.10.10.0/24
599
##
600
loadBalancerSourceRanges: []
601
## @param primary.service.externalIPs Valkey primary service External IPs
602
## https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
603
## Example:
604
## externalIPs:
605
## - 10.10.10.1
606
## - 201.22.30.1
607
##
608
externalIPs: []
609
## @param primary.service.annotations Additional custom annotations for Valkey primary service
610
##
611
annotations: {}
612
## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
613
## If "ClientIP", consecutive client requests will be directed to the same Pod
614
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
615
##
616
sessionAffinity: None
617
## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `primary.service.sessionAffinity` is `None`
618
## sessionAffinityConfig:
619
## clientIP:
620
## timeoutSeconds: 300
621
##
622
sessionAffinityConfig: {}
623
## @param primary.terminationGracePeriodSeconds Integer setting the termination grace period for the valkey-primary pods
624
##
625
terminationGracePeriodSeconds: 30
626
## ServiceAccount configuration
627
##
628
serviceAccount:
629
## @param primary.serviceAccount.create Specifies whether a ServiceAccount should be created
630
##
631
create: true
632
## @param primary.serviceAccount.name The name of the ServiceAccount to use.
633
## If not set and create is true, a name is generated using the common.names.fullname template
634
##
635
name: ""
636
## @param primary.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
637
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
638
##
639
automountServiceAccountToken: false
640
## @param primary.serviceAccount.annotations Additional custom annotations for the ServiceAccount
641
##
642
annotations: {}
643
## Pod Disruption Budget configuration
644
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
645
## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation
646
## @param primary.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
647
## @param primary.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `primary.pdb.minAvailable` and `primary.pdb.maxUnavailable` are empty.
648
##
649
pdb:
650
create: true
651
minAvailable: ""
652
maxUnavailable: ""
653
## @section Valkey replicas configuration parameters
654
##
655
replica:
656
## @param replica.kind Use either DaemonSet or StatefulSet (default)
657
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
658
##
659
kind: StatefulSet
660
## @param replica.replicaCount Number of Valkey replicas to deploy
661
##
662
replicaCount: 3
663
## @param replica.configuration Configuration for Valkey replicas nodes
664
## ref: https://valkey.io/topics/config
665
##
666
configuration: ""
667
## @param replica.disableCommands Array with Valkey commands to disable on replicas nodes
668
## Commands will be completely disabled by renaming each to an empty string.
669
## ref: https://valkey.io/topics/security#disabling-of-specific-commands
670
##
671
disableCommands:
672
- FLUSHDB
673
- FLUSHALL
674
## @param replica.command Override default container command (useful when using custom images)
675
##
676
command: []
677
## @param replica.args Override default container args (useful when using custom images)
678
##
679
args: []
680
## @param replica.enableServiceLinks Whether information about services should be injected into pod's environment variable
681
##
682
enableServiceLinks: true
683
## @param replica.preExecCmds Additional commands to run prior to starting Valkey replicas
684
##
685
preExecCmds: []
686
## @param replica.extraFlags Array with additional command line flags for Valkey replicas
687
## Example:
688
## extraFlags:
689
## - "--maxmemory-policy volatile-ttl"
690
## - "--repl-backlog-size 1024mb"
691
##
692
extraFlags: []
693
## @param replica.extraEnvVars Array with extra environment variables to add to Valkey replicas nodes
694
## Example:
695
## extraEnvVars:
696
## - name: FOO
697
## value: "bar"
698
##
699
extraEnvVars: []
700
## @param replica.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Valkey replicas nodes
701
##
702
extraEnvVarsCM: ""
703
## @param replica.extraEnvVarsSecret Name of existing Secret containing extra env vars for Valkey replicas nodes
704
##
705
extraEnvVarsSecret: ""
706
## @param replica.externalPrimary.enabled Use external primary for bootstrapping
707
## @param replica.externalPrimary.host External primary host to bootstrap from
708
## @param replica.externalPrimary.port Port for Valkey service external primary host
709
##
710
externalPrimary:
711
enabled: false
712
host: ""
713
port: 6379
714
## @param replica.containerPorts.valkey Container port to open on Valkey replicas nodes
715
##
716
containerPorts:
717
valkey: 6379
718
## Configure extra options for Valkey containers' liveness and readiness probes
719
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
720
## @param replica.startupProbe.enabled Enable startupProbe on Valkey replicas nodes
721
## @param replica.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
722
## @param replica.startupProbe.periodSeconds Period seconds for startupProbe
723
## @param replica.startupProbe.timeoutSeconds Timeout seconds for startupProbe
724
## @param replica.startupProbe.failureThreshold Failure threshold for startupProbe
725
## @param replica.startupProbe.successThreshold Success threshold for startupProbe
726
##
727
startupProbe:
728
enabled: true
729
initialDelaySeconds: 10
730
periodSeconds: 10
731
timeoutSeconds: 5
732
successThreshold: 1
733
failureThreshold: 22
734
## @param replica.livenessProbe.enabled Enable livenessProbe on Valkey replicas nodes
735
## @param replica.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
736
## @param replica.livenessProbe.periodSeconds Period seconds for livenessProbe
737
## @param replica.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
738
## @param replica.livenessProbe.failureThreshold Failure threshold for livenessProbe
739
## @param replica.livenessProbe.successThreshold Success threshold for livenessProbe
740
##
741
livenessProbe:
742
enabled: true
743
initialDelaySeconds: 20
744
periodSeconds: 5
745
timeoutSeconds: 5
746
successThreshold: 1
747
failureThreshold: 5
748
## @param replica.readinessProbe.enabled Enable readinessProbe on Valkey replicas nodes
749
## @param replica.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
750
## @param replica.readinessProbe.periodSeconds Period seconds for readinessProbe
751
## @param replica.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
752
## @param replica.readinessProbe.failureThreshold Failure threshold for readinessProbe
753
## @param replica.readinessProbe.successThreshold Success threshold for readinessProbe
754
##
755
readinessProbe:
756
enabled: true
757
initialDelaySeconds: 20
758
periodSeconds: 5
759
timeoutSeconds: 1
760
successThreshold: 1
761
failureThreshold: 5
762
## @param replica.customStartupProbe Custom startupProbe that overrides the default one
763
##
764
customStartupProbe: {}
765
## @param replica.customLivenessProbe Custom livenessProbe that overrides the default one
766
##
767
customLivenessProbe: {}
768
## @param replica.customReadinessProbe Custom readinessProbe that overrides the default one
769
##
770
customReadinessProbe: {}
771
## Valkey replicas resource requests and limits
772
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
773
## @param replica.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if replica.resources is set (replica.resources is recommended for production).
774
##
775
resourcesPreset: "nano"
776
## @param replica.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
777
## Example:
778
## resources:
779
## requests:
780
## cpu: 2
781
## memory: 512Mi
782
## limits:
783
## cpu: 3
784
## memory: 1024Mi
785
##
786
resources: {}
787
## Configure Pods Security Context
788
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
789
## @param replica.podSecurityContext.enabled Enable Valkey replicas pods' Security Context
790
## @param replica.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
791
## @param replica.podSecurityContext.sysctls Set kernel settings using the sysctl interface
792
## @param replica.podSecurityContext.supplementalGroups Set filesystem extra groups
793
## @param replica.podSecurityContext.fsGroup Set Valkey replicas pod's Security Context fsGroup
794
##
795
podSecurityContext:
796
enabled: true
797
fsGroupChangePolicy: Always
798
sysctls: []
799
supplementalGroups: []
800
fsGroup: 1001
801
## Configure Container Security Context
802
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
803
## @param replica.containerSecurityContext.enabled Enable Valkey replicas containers' Security Context
804
## @param replica.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
805
## @param replica.containerSecurityContext.runAsUser Set Valkey replicas containers' Security Context runAsUser
806
## @param replica.containerSecurityContext.runAsGroup Set Valkey replicas containers' Security Context runAsGroup
807
## @param replica.containerSecurityContext.runAsNonRoot Set Valkey replicas containers' Security Context runAsNonRoot
808
## @param replica.containerSecurityContext.allowPrivilegeEscalation Set Valkey replicas pod's Security Context allowPrivilegeEscalation
809
## @param replica.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
810
## @param replica.containerSecurityContext.seccompProfile.type Set Valkey replicas containers' Security Context seccompProfile
811
## @param replica.containerSecurityContext.capabilities.drop Set Valkey replicas containers' Security Context capabilities to drop
812
##
813
containerSecurityContext:
814
enabled: true
815
seLinuxOptions: {}
816
runAsUser: 1001
817
runAsGroup: 1001
818
runAsNonRoot: true
819
allowPrivilegeEscalation: false
820
readOnlyRootFilesystem: true
821
seccompProfile:
822
type: RuntimeDefault
823
capabilities:
824
drop: ["ALL"]
825
## @param replica.schedulerName Alternate scheduler for Valkey replicas pods
826
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
827
##
828
schedulerName: ""
829
## @param replica.runtimeClassName Name of the runtime class to be used by replica pod(s)
830
##
831
runtimeClassName: ""
832
## @param replica.updateStrategy.type Valkey replicas statefulset strategy type
833
## @skip replica.updateStrategy.rollingUpdate
834
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
835
##
836
updateStrategy:
837
## StrategyType
838
## Can be set to RollingUpdate, OnDelete (statefulset), Recreate (deployment)
839
##
840
type: RollingUpdate
841
## @param replica.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
842
##
843
minReadySeconds: 0
844
## @param replica.priorityClassName Valkey replicas pods' priorityClassName
845
##
846
priorityClassName: ""
847
## @param replica.podManagementPolicy podManagementPolicy to manage scaling operation of %%MAIN_CONTAINER_NAME%% pods
848
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
849
##
850
podManagementPolicy: ""
851
## @param replica.automountServiceAccountToken Mount Service Account token in pod
852
##
853
automountServiceAccountToken: false
854
## @param replica.hostAliases Valkey replicas pods host aliases
855
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
856
##
857
hostAliases: []
858
## @param replica.podLabels Extra labels for Valkey replicas pods
859
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
860
##
861
podLabels: {}
862
## @param replica.podAnnotations Annotations for Valkey replicas pods
863
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
864
##
865
podAnnotations: {}
866
## @param replica.shareProcessNamespace Share a single process namespace between all of the containers in Valkey replicas pods
867
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
868
##
869
shareProcessNamespace: false
870
## @param replica.podAffinityPreset Pod affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
871
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
872
##
873
podAffinityPreset: ""
874
## @param replica.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
875
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
876
##
877
podAntiAffinityPreset: soft
878
## Node affinity preset
879
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
880
##
881
nodeAffinityPreset:
882
## @param replica.nodeAffinityPreset.type Node affinity preset type. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
883
##
884
type: ""
885
## @param replica.nodeAffinityPreset.key Node label key to match. Ignored if `replica.affinity` is set
886
##
887
key: ""
888
## @param replica.nodeAffinityPreset.values Node label values to match. Ignored if `replica.affinity` is set
889
## Example:
890
## values:
891
## - e2e-az1
892
## - e2e-az2
893
##
894
values: []
895
## @param replica.affinity Affinity for Valkey replicas pods assignment
896
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
897
## NOTE: `replica.podAffinityPreset`, `replica.podAntiAffinityPreset`, and `replica.nodeAffinityPreset` will be ignored when it's set
898
##
899
affinity: {}
900
## @param replica.nodeSelector Node labels for Valkey replicas pods assignment
901
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
902
##
903
nodeSelector: {}
904
## @param replica.tolerations Tolerations for Valkey replicas pods assignment
905
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
906
##
907
tolerations: []
908
## @param replica.topologySpreadConstraints Spread Constraints for Valkey replicas pod assignment
909
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
910
## Example:
911
## topologySpreadConstraints:
912
## - maxSkew: 1
913
## topologyKey: node
914
## whenUnsatisfiable: DoNotSchedule
915
##
916
topologySpreadConstraints: []
917
## @param replica.dnsPolicy DNS Policy for Valkey replica pods
918
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
919
## Example:
920
## dnsPolicy: ClusterFirst
921
##
922
dnsPolicy: ""
923
## @param replica.dnsConfig DNS Configuration for Valkey replica pods
924
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
925
## Example:
926
## dnsConfig:
927
## options:
928
## - name: ndots
929
## value: "4"
930
## - name: single-request-reopen
931
##
932
dnsConfig: {}
933
## @param replica.lifecycleHooks for the Valkey replica container(s) to automate configuration before or after startup
934
##
935
lifecycleHooks: {}
936
## @param replica.extraVolumes Optionally, specify an extra list of additional volumes for the Valkey replicas pod(s)
937
##
938
extraVolumes: []
939
## @param replica.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey replicas container(s)
940
##
941
extraVolumeMounts: []
942
## @param replica.sidecars Add additional sidecar containers to the Valkey replicas pod(s)
943
## Example:
944
## sidecars:
945
## - name: your-image-name
946
## image: your-image
947
## imagePullPolicy: Always
948
## ports:
949
## - name: portname
950
## containerPort: 1234
951
##
952
sidecars: []
953
## @param replica.initContainers Add additional init containers to the Valkey replicas pod(s)
954
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
955
## Example:
956
## initContainers:
957
## - name: your-image-name
958
## image: your-image
959
## imagePullPolicy: Always
960
## command: ['sh', '-c', 'echo "hello world"']
961
##
962
initContainers: []
963
## Persistence Parameters
964
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
965
##
966
persistence:
967
## @param replica.persistence.enabled Enable persistence on Valkey replicas nodes using Persistent Volume Claims
968
##
969
enabled: true
970
## @param replica.persistence.medium Provide a medium for `emptyDir` volumes.
971
##
972
medium: ""
973
## @param replica.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
974
##
975
sizeLimit: ""
976
## @param replica.persistence.path The path the volume will be mounted at on Valkey replicas containers
977
## NOTE: Useful when using different Valkey images
978
##
979
path: /data
980
## @param replica.persistence.subPath The subdirectory of the volume to mount on Valkey replicas containers
981
## NOTE: Useful in dev environments
982
##
983
subPath: ""
984
## @param replica.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Valkey replicas containers
985
##
986
subPathExpr: ""
987
## @param replica.persistence.storageClass Persistent Volume storage class
988
## If defined, storageClassName: <storageClass>
989
## If set to "-", storageClassName: "", which disables dynamic provisioning
990
## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
991
##
992
storageClass: ""
993
## @param replica.persistence.accessModes Persistent Volume access modes
994
##
995
accessModes:
996
- ReadWriteOnce
997
## @param replica.persistence.size Persistent Volume size
998
##
999
size: 8Gi
1000
## @param replica.persistence.annotations Additional custom annotations for the PVC
1001
##
1002
annotations: {}
1003
## @param replica.persistence.labels Additional custom labels for the PVC
1004
##
1005
labels: {}
1006
## @param replica.persistence.selector Additional labels to match for the PVC
1007
## Example:
1008
## selector:
1009
## matchLabels:
1010
## app: my-app
1011
##
1012
selector: {}
1013
## @param replica.persistence.dataSource Custom PVC data source
1014
##
1015
dataSource: {}
1016
## @param replica.persistence.existingClaim Use an existing PVC which must be created manually before bound
1017
## NOTE: requires replica.persistence.enabled: true
1018
##
1019
existingClaim: ""
1020
## persistentVolumeClaimRetentionPolicy
1021
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1022
## @param replica.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1023
## @param replica.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1024
## @param replica.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1025
##
1026
persistentVolumeClaimRetentionPolicy:
1027
enabled: false
1028
whenScaled: Retain
1029
whenDeleted: Retain
1030
## Valkey replicas service parameters
1031
##
1032
service:
1033
## @param replica.service.type Valkey replicas service type
1034
##
1035
type: ClusterIP
1036
## @param replica.service.ports.valkey Valkey replicas service port
1037
##
1038
ports:
1039
valkey: 6379
1040
## @param replica.service.nodePorts.valkey Node port for Valkey replicas
1041
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1042
## NOTE: choose port between <30000-32767>
1043
##
1044
nodePorts:
1045
valkey: ""
1046
## @param replica.service.externalTrafficPolicy Valkey replicas service external traffic policy
1047
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1048
##
1049
externalTrafficPolicy: Cluster
1050
## @param replica.service.internalTrafficPolicy Valkey replicas service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
1051
## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
1052
##
1053
internalTrafficPolicy: Cluster
1054
## @param replica.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1055
##
1056
extraPorts: []
1057
## @param replica.service.clusterIP Valkey replicas service Cluster IP
1058
##
1059
clusterIP: ""
1060
## @param replica.service.loadBalancerIP Valkey replicas service Load Balancer IP
1061
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1062
##
1063
loadBalancerIP: ""
1064
## @param replica.service.loadBalancerClass replicas service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1065
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1066
##
1067
loadBalancerClass: ""
1068
## @param replica.service.loadBalancerSourceRanges Valkey replicas service Load Balancer sources
1069
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1070
## Example:
1071
## loadBalancerSourceRanges:
1072
## - 10.10.10.0/24
1073
##
1074
loadBalancerSourceRanges: []
1075
## @param replica.service.annotations Additional custom annotations for Valkey replicas service
1076
##
1077
annotations: {}
1078
## @param replica.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1079
## If "ClientIP", consecutive client requests will be directed to the same Pod
1080
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1081
##
1082
sessionAffinity: None
1083
## @param replica.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `replica.service.sessionAffinity` is `None`
1084
## Example:
1085
## sessionAffinityConfig:
1086
## clientIP:
1087
## timeoutSeconds: 300
1088
##
1089
sessionAffinityConfig: {}
1090
## @param replica.terminationGracePeriodSeconds Integer setting the termination grace period for the valkey-replicas pods
1091
##
1092
terminationGracePeriodSeconds: 30
1093
## @section Autoscaling
1094
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
1095
##
1096
autoscaling:
1097
vpa:
1098
## @param replica.autoscaling.vpa.enabled Enable VPA
1099
##
1100
enabled: false
1101
## @param replica.autoscaling.vpa.annotations Annotations for VPA resource
1102
##
1103
annotations: {}
1104
## @param replica.autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
1105
##
1106
controlledResources: []
1107
## @param replica.autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
1108
## Example:
1109
## maxAllowed:
1110
## cpu: 200m
1111
## memory: 100Mi
1112
##
1113
maxAllowed: {}
1114
## @param replica.autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
1115
## Example:
1116
## maxAllowed:
1117
## cpu: 200m
1118
## memory: 100Mi
1119
##
1120
minAllowed: {}
1121
## @section VPA update policy
1122
##
1123
updatePolicy:
1124
## @param replica.autoscaling.vpa.updatePolicy.updateMode Autoscaling update policy Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod
1125
## Possible values are "Off", "Initial", "Recreate", and "Auto".
1126
##
1127
updateMode: Auto
1128
hpa:
1129
## @param replica.autoscaling.hpa.enabled Enable HPA
1130
##
1131
enabled: false
1132
## @param replica.autoscaling.hpa.minReplicas Minimum number of replicas
1133
##
1134
minReplicas: ""
1135
## @param replica.autoscaling.hpa.maxReplicas Maximum number of replicas
1136
##
1137
maxReplicas: ""
1138
## @param replica.autoscaling.hpa.targetCPU Target CPU utilization percentage
1139
##
1140
targetCPU: ""
1141
## @param replica.autoscaling.hpa.targetMemory Target Memory utilization percentage
1142
##
1143
targetMemory: ""
1144
## ServiceAccount configuration
1145
##
1146
serviceAccount:
1147
## @param replica.serviceAccount.create Specifies whether a ServiceAccount should be created
1148
##
1149
create: true
1150
## @param replica.serviceAccount.name The name of the ServiceAccount to use.
1151
## If not set and create is true, a name is generated using the common.names.fullname template
1152
##
1153
name: ""
1154
## @param replica.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
1155
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
1156
##
1157
automountServiceAccountToken: false
1158
## @param replica.serviceAccount.annotations Additional custom annotations for the ServiceAccount
1159
##
1160
annotations: {}
1161
## Pod Disruption Budget configuration
1162
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
1163
## @param replica.pdb.create Enable/disable a Pod Disruption Budget creation
1164
## @param replica.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
1165
## @param replica.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `replica.pdb.minAvailable` and `replica.pdb.maxUnavailable` are empty.
1166
##
1167
pdb:
1168
create: true
1169
minAvailable: ""
1170
maxUnavailable: ""
1171
## @section Valkey Sentinel configuration parameters
1172
##
1173
sentinel:
1174
## @param sentinel.enabled Use Valkey Sentinel on Valkey pods.
1175
## IMPORTANT: this will disable the primary and replicas services and
1176
## create a single Valkey service exposing both the Valkey and Sentinel ports
1177
##
1178
enabled: false
1179
## Iamguarded Valkey Sentinel image version
1180
## @param sentinel.image.registry [default: REGISTRY_NAME] Valkey Sentinel image registry
1181
## @param sentinel.image.repository [default: REPOSITORY_NAME/valkey-sentinel] Valkey Sentinel image repository
1182
## @skip sentinel.image.tag Valkey Sentinel image tag (immutable tags are recommended)
1183
## @param sentinel.image.digest Valkey Sentinel image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1184
## @param sentinel.image.pullPolicy Valkey Sentinel image pull policy
1185
## @param sentinel.image.pullSecrets Valkey Sentinel image pull secrets
1186
## @param sentinel.image.debug Enable image debug mode
1187
##
1188
image:
1189
registry: cgr.dev
1190
repository: chainguard-private/valkey-sentinel-iamguarded
1191
tag: 9.1.4
1192
digest: sha256:691278d3dd368179737a37cf0a275f002ea748ed076c3abd2c27b68dd2691f22
1193
## Specify a imagePullPolicy
1194
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1195
##
1196
pullPolicy: IfNotPresent
1197
## Optionally, specify an array of imagePullSecrets.
1198
## Secrets must be manually created in the namespace.
1199
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1200
## Example:
1201
## pullSecrets:
1202
## - myRegistryKeySecretName
1203
##
1204
pullSecrets: []
1205
## Enable debug mode
1206
##
1207
debug: false
1208
## @param sentinel.annotations Additional custom annotations for Valkey Sentinel resource
1209
##
1210
annotations: {}
1211
## @param sentinel.primarySet Primary set name
1212
##
1213
primarySet: myprimary
1214
## @param sentinel.quorum Sentinel Quorum
1215
##
1216
quorum: 2
1217
## @param sentinel.getPrimaryTimeout Amount of time to allow before get_sentinel_primary_info() times out.
1218
##
1219
getPrimaryTimeout: 90
1220
## @param sentinel.automateClusterRecovery Automate cluster recovery in cases where the last replica is not considered a good replica and Sentinel won't automatically fail over to it.
1221
## This also prevents any new replica from starting until the last remaining replica is elected as primary to guarantee that it is the one to be elected by Sentinel, and not a newly started replica with no data.
1222
## NOTE: This feature requires a "downAfterMilliseconds" value less or equal to 2000.
1223
##
1224
automateClusterRecovery: false
1225
## @param sentinel.valkeyShutdownWaitFailover Whether the Valkey primary container waits for the failover at shutdown (in addition to the Valkey Sentinel container).
1226
##
1227
valkeyShutdownWaitFailover: true
1228
## Sentinel timing restrictions
1229
## @param sentinel.downAfterMilliseconds Timeout for detecting a Valkey node is down
1230
## @param sentinel.failoverTimeout Timeout for performing the election failover
1231
##
1232
downAfterMilliseconds: 60000
1233
failoverTimeout: 180000
1234
## @param sentinel.parallelSyncs Number of replicas that can be reconfigured in parallel to use the new primary after the failover
1235
##
1236
parallelSyncs: 1
1237
## @param sentinel.replicaSyncCheck Wait for data full sync on replicas before marking them as ready (experimental)
1238
##
1239
replicaSyncCheck: false
1240
## @param sentinel.configuration Configuration for Valkey Sentinel nodes
1241
## ref: https://valkey.io/topics/sentinel
1242
##
1243
configuration: ""
1244
## @param sentinel.command Override default container command (useful when using custom images)
1245
##
1246
command: []
1247
## @param sentinel.args Override default container args (useful when using custom images)
1248
##
1249
args: []
1250
## @param sentinel.enableServiceLinks Whether information about services should be injected into pod's environment variable
1251
##
1252
enableServiceLinks: true
1253
## @param sentinel.preExecCmds Additional commands to run prior to starting Valkey Sentinel
1254
##
1255
preExecCmds: []
1256
## @param sentinel.extraEnvVars Array with extra environment variables to add to Valkey Sentinel nodes
1257
## Example:
1258
## extraEnvVars:
1259
## - name: FOO
1260
## value: "bar"
1261
##
1262
extraEnvVars: []
1263
## @param sentinel.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Valkey Sentinel nodes
1264
##
1265
extraEnvVarsCM: ""
1266
## @param sentinel.extraEnvVarsSecret Name of existing Secret containing extra env vars for Valkey Sentinel nodes
1267
##
1268
extraEnvVarsSecret: ""
1269
## @param sentinel.externalPrimary.enabled Use external primary for bootstrapping
1270
## @param sentinel.externalPrimary.host External primary host to bootstrap from
1271
## @param sentinel.externalPrimary.port Port for Valkey service external primary host
1272
##
1273
externalPrimary:
1274
enabled: false
1275
host: ""
1276
port: 6379
1277
## @param sentinel.containerPorts.sentinel Container port to open on Valkey Sentinel nodes
1278
##
1279
containerPorts:
1280
sentinel: 26379
1281
## Configure extra options for Valkey containers' liveness and readiness probes
1282
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1283
## @param sentinel.startupProbe.enabled Enable startupProbe on Valkey Sentinel nodes
1284
## @param sentinel.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1285
## @param sentinel.startupProbe.periodSeconds Period seconds for startupProbe
1286
## @param sentinel.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1287
## @param sentinel.startupProbe.failureThreshold Failure threshold for startupProbe
1288
## @param sentinel.startupProbe.successThreshold Success threshold for startupProbe
1289
##
1290
startupProbe:
1291
enabled: true
1292
initialDelaySeconds: 10
1293
periodSeconds: 10
1294
timeoutSeconds: 5
1295
successThreshold: 1
1296
failureThreshold: 22
1297
## @param sentinel.livenessProbe.enabled Enable livenessProbe on Valkey Sentinel nodes
1298
## @param sentinel.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1299
## @param sentinel.livenessProbe.periodSeconds Period seconds for livenessProbe
1300
## @param sentinel.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1301
## @param sentinel.livenessProbe.failureThreshold Failure threshold for livenessProbe
1302
## @param sentinel.livenessProbe.successThreshold Success threshold for livenessProbe
1303
##
1304
livenessProbe:
1305
enabled: true
1306
initialDelaySeconds: 20
1307
periodSeconds: 10
1308
timeoutSeconds: 5
1309
successThreshold: 1
1310
failureThreshold: 6
1311
## @param sentinel.readinessProbe.enabled Enable readinessProbe on Valkey Sentinel nodes
1312
## @param sentinel.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1313
## @param sentinel.readinessProbe.periodSeconds Period seconds for readinessProbe
1314
## @param sentinel.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1315
## @param sentinel.readinessProbe.failureThreshold Failure threshold for readinessProbe
1316
## @param sentinel.readinessProbe.successThreshold Success threshold for readinessProbe
1317
##
1318
readinessProbe:
1319
enabled: true
1320
initialDelaySeconds: 20
1321
periodSeconds: 5
1322
timeoutSeconds: 1
1323
successThreshold: 1
1324
failureThreshold: 6
1325
## @param sentinel.customStartupProbe Custom startupProbe that overrides the default one
1326
##
1327
customStartupProbe: {}
1328
## @param sentinel.customLivenessProbe Custom livenessProbe that overrides the default one
1329
##
1330
customLivenessProbe: {}
1331
## @param sentinel.customReadinessProbe Custom readinessProbe that overrides the default one
1332
##
1333
customReadinessProbe: {}
1334
## Persistence parameters
1335
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1336
##
1337
persistence:
1338
## @param sentinel.persistence.enabled Enable persistence on Valkey sentinel nodes using Persistent Volume Claims (Experimental)
1339
##
1340
enabled: false
1341
## @param sentinel.persistence.storageClass Persistent Volume storage class
1342
## If defined, storageClassName: <storageClass>
1343
## If set to "-", storageClassName: "", which disables dynamic provisioning
1344
## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
1345
##
1346
storageClass: ""
1347
## @param sentinel.persistence.accessModes Persistent Volume access modes
1348
##
1349
accessModes:
1350
- ReadWriteOnce
1351
## @param sentinel.persistence.size Persistent Volume size
1352
##
1353
size: 100Mi
1354
## @param sentinel.persistence.annotations Additional custom annotations for the PVC
1355
##
1356
annotations: {}
1357
## @param sentinel.persistence.labels Additional custom labels for the PVC
1358
##
1359
labels: {}
1360
## @param sentinel.persistence.selector Additional labels to match for the PVC
1361
## Example:
1362
## selector:
1363
## matchLabels:
1364
## app: my-app
1365
##
1366
selector: {}
1367
## @param sentinel.persistence.dataSource Custom PVC data source
1368
##
1369
dataSource: {}
1370
## @param sentinel.persistence.medium Provide a medium for `emptyDir` volumes.
1371
##
1372
medium: ""
1373
## @param sentinel.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
1374
##
1375
sizeLimit: ""
1376
## persistentVolumeClaimRetentionPolicy
1377
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1378
## @param sentinel.persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
1379
## @param sentinel.persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1380
## @param sentinel.persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1381
##
1382
persistentVolumeClaimRetentionPolicy:
1383
enabled: false
1384
whenScaled: Retain
1385
whenDeleted: Retain
1386
## Valkey Sentinel resource requests and limits
1387
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1388
## @param sentinel.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if sentinel.resources is set (sentinel.resources is recommended for production).
1389
##
1390
resourcesPreset: "nano"
1391
## @param sentinel.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1392
## Example:
1393
## resources:
1394
## requests:
1395
## cpu: 2
1396
## memory: 512Mi
1397
## limits:
1398
## cpu: 3
1399
## memory: 1024Mi
1400
##
1401
resources: {}
1402
## @param sentinel.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1403
##
1404
fips:
1405
openssl: ""
1406
##
1407
## Configure Container Security Context
1408
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1409
## @param sentinel.containerSecurityContext.enabled Enable Valkey Sentinel containers' Security Context
1410
## @param sentinel.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1411
## @param sentinel.containerSecurityContext.runAsUser Set Valkey Sentinel containers' Security Context runAsUser
1412
## @param sentinel.containerSecurityContext.runAsGroup Set Valkey Sentinel containers' Security Context runAsGroup
1413
## @param sentinel.containerSecurityContext.runAsNonRoot Set Valkey Sentinel containers' Security Context runAsNonRoot
1414
## @param sentinel.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1415
## @param sentinel.containerSecurityContext.allowPrivilegeEscalation Set Valkey Sentinel containers' Security Context allowPrivilegeEscalation
1416
## @param sentinel.containerSecurityContext.seccompProfile.type Set Valkey Sentinel containers' Security Context seccompProfile
1417
## @param sentinel.containerSecurityContext.capabilities.drop Set Valkey Sentinel containers' Security Context capabilities to drop
1418
##
1419
containerSecurityContext:
1420
enabled: true
1421
seLinuxOptions: {}
1422
runAsUser: 1001
1423
runAsGroup: 1001
1424
runAsNonRoot: true
1425
allowPrivilegeEscalation: false
1426
readOnlyRootFilesystem: true
1427
seccompProfile:
1428
type: RuntimeDefault
1429
capabilities:
1430
drop: ["ALL"]
1431
## @param sentinel.lifecycleHooks for the Valkey sentinel container(s) to automate configuration before or after startup
1432
##
1433
lifecycleHooks: {}
1434
## @param sentinel.extraVolumes Optionally, specify extra list of additional volumes for the Valkey Sentinel
1435
##
1436
extraVolumes: []
1437
## @param sentinel.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey Sentinel container(s)
1438
##
1439
extraVolumeMounts: []
1440
## Valkey Sentinel service parameters
1441
##
1442
service:
1443
## @param sentinel.service.type Valkey Sentinel service type
1444
##
1445
type: ClusterIP
1446
## @param sentinel.service.ports.valkey Valkey service port for Valkey
1447
## @param sentinel.service.ports.sentinel Valkey service port for Valkey Sentinel
1448
##
1449
ports:
1450
valkey: 6379
1451
sentinel: 26379
1452
## @param sentinel.service.nodePorts.valkey Node port for Valkey
1453
## @param sentinel.service.nodePorts.sentinel Node port for Sentinel
1454
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1455
## NOTE: choose port between <30000-32767>
1456
## NOTE: By leaving these values blank, they will be generated by ports-configmap
1457
## If setting manually, please leave at least replica.replicaCount + 1 in between sentinel.service.nodePorts.valkey and sentinel.service.nodePorts.sentinel to take into account the ports that will be created while incrementing that base port
1458
##
1459
nodePorts:
1460
valkey: ""
1461
sentinel: ""
1462
## @param sentinel.service.externalTrafficPolicy Valkey Sentinel service external traffic policy
1463
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1464
##
1465
externalTrafficPolicy: Cluster
1466
## @param sentinel.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1467
##
1468
extraPorts: []
1469
## @param sentinel.service.clusterIP Valkey Sentinel service Cluster IP
1470
##
1471
clusterIP: ""
1472
## @param sentinel.service.createPrimary Enable primary service pointing to the current primary (experimental)
1473
## NOTE: rbac.create need to be set to true
1474
##
1475
createPrimary: false
1476
## @param sentinel.service.loadBalancerIP Valkey Sentinel service Load Balancer IP
1477
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1478
##
1479
loadBalancerIP: ""
1480
## @param sentinel.service.loadBalancerClass sentinel service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1481
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1482
##
1483
loadBalancerClass: ""
1484
## @param sentinel.service.loadBalancerSourceRanges Valkey Sentinel service Load Balancer sources
1485
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1486
## Example:
1487
## loadBalancerSourceRanges:
1488
## - 10.10.10.0/24
1489
##
1490
loadBalancerSourceRanges: []
1491
## @param sentinel.service.annotations Additional custom annotations for Valkey Sentinel service
1492
##
1493
annotations: {}
1494
## @param sentinel.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1495
## If "ClientIP", consecutive client requests will be directed to the same Pod
1496
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1497
##
1498
sessionAffinity: None
1499
## @param sentinel.service.sessionAffinityConfig Additional settings for the sessionAffinity. Ignored if `sentinel.service.sessionAffinity` is `None`
1500
## Example:
1501
## sessionAffinityConfig:
1502
## clientIP:
1503
## timeoutSeconds: 300
1504
##
1505
sessionAffinityConfig: {}
1506
## Headless service properties
1507
##
1508
headless:
1509
## @param sentinel.service.headless.annotations Annotations for the headless service.
1510
##
1511
annotations: {}
1512
## @param sentinel.terminationGracePeriodSeconds Integer setting the termination grace period for the valkey-node pods
1513
##
1514
terminationGracePeriodSeconds: 30
1515
## @section Other Parameters
1516
##
1517
1518
## @param serviceBindings.enabled Create secret for service binding (Experimental)
1519
## Ref: https://servicebinding.io/service-provider/
1520
##
1521
serviceBindings:
1522
enabled: false
1523
## Network Policy configuration
1524
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1525
##
1526
networkPolicy:
1527
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
1528
##
1529
enabled: true
1530
## @param networkPolicy.allowExternal Don't require client label for connections
1531
## When set to false, only pods with the correct client label will have network access to the ports
1532
## Valkey is listening on. When true, Valkey will accept connections from any source
1533
## (with the correct destination port).
1534
##
1535
allowExternal: true
1536
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1537
##
1538
allowExternalEgress: true
1539
## @param networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy
1540
## Example:
1541
## extraIngress:
1542
## - ports:
1543
## - port: 1234
1544
## from:
1545
## - podSelector:
1546
## - matchLabels:
1547
## - role: frontend
1548
## - podSelector:
1549
## - matchExpressions:
1550
## - key: role
1551
## operator: In
1552
## values:
1553
## - frontend
1554
##
1555
extraIngress: []
1556
## @param networkPolicy.extraEgress Add extra egress rules to the NetworkPolicy
1557
## Example:
1558
## extraEgress:
1559
## - ports:
1560
## - port: 1234
1561
## to:
1562
## - podSelector:
1563
## - matchLabels:
1564
## - role: frontend
1565
## - podSelector:
1566
## - matchExpressions:
1567
## - key: role
1568
## operator: In
1569
## values:
1570
## - frontend
1571
##
1572
extraEgress: []
1573
## @param networkPolicy.ingressNSMatchLabels Labels to match to allow traffic from other namespaces
1574
## @param networkPolicy.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces
1575
##
1576
ingressNSMatchLabels: {}
1577
ingressNSPodMatchLabels: {}
1578
metrics:
1579
## @param networkPolicy.metrics.allowExternal Don't require client label for connections for metrics endpoint
1580
## When set to false, only pods with the correct client label will have network access to the metrics port
1581
##
1582
allowExternal: true
1583
## @param networkPolicy.metrics.ingressNSMatchLabels Labels to match to allow traffic from other namespaces to metrics endpoint
1584
## @param networkPolicy.metrics.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces to metrics endpoint
1585
##
1586
ingressNSMatchLabels: {}
1587
ingressNSPodMatchLabels: {}
1588
## PodSecurityPolicy configuration
1589
## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
1590
##
1591
podSecurityPolicy:
1592
## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
1593
##
1594
create: false
1595
## @param podSecurityPolicy.enabled Enable PodSecurityPolicy's RBAC rules
1596
##
1597
enabled: false
1598
## RBAC configuration
1599
##
1600
rbac:
1601
## @param rbac.create Specifies whether RBAC resources should be created
1602
##
1603
create: false
1604
## @param rbac.rules Custom RBAC rules to set
1605
## Example:
1606
## rules:
1607
## - apiGroups:
1608
## - ""
1609
## resources:
1610
## - pods
1611
## verbs:
1612
## - get
1613
## - list
1614
##
1615
rules: []
1616
## ServiceAccount configuration
1617
##
1618
serviceAccount:
1619
## @param serviceAccount.create Specifies whether a ServiceAccount should be created
1620
##
1621
create: true
1622
## @param serviceAccount.name The name of the ServiceAccount to use.
1623
## If not set and create is true, a name is generated using the common.names.fullname template
1624
##
1625
name: ""
1626
## @param serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
1627
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
1628
##
1629
automountServiceAccountToken: false
1630
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
1631
##
1632
annotations: {}
1633
## Redis&reg; Pod Disruption Budget configuration
1634
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1635
## @param pdb DEPRECATED Please use `primary.pdb` and `replica.pdb` values instead
1636
##
1637
pdb: {}
1638
## TLS configuration
1639
##
1640
tls:
1641
## @param tls.enabled Enable TLS traffic
1642
##
1643
enabled: false
1644
## @param tls.authClients Require clients to authenticate
1645
##
1646
authClients: true
1647
## @param tls.autoGenerated Enable autogenerated certificates
1648
##
1649
autoGenerated: false
1650
## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
1651
##
1652
existingSecret: ""
1653
## @param tls.certFilename Certificate filename
1654
##
1655
certFilename: ""
1656
## @param tls.certKeyFilename Certificate Key filename
1657
##
1658
certKeyFilename: ""
1659
## @param tls.certCAFilename CA Certificate filename
1660
##
1661
certCAFilename: ""
1662
## @param tls.dhParamsFilename File containing DH params (to support DH-based ciphers)
1663
##
1664
dhParamsFilename: ""
1665
## @section Metrics Parameters
1666
##
1667
metrics:
1668
## @param metrics.enabled Start a sidecar Prometheus Exporter to expose Valkey metrics
1669
##
1670
enabled: false
1671
## Iamguarded Redis(R) Exporter image
1672
## @param metrics.image.registry [default: REGISTRY_NAME] Redis(R) Exporter image registry
1673
## @param metrics.image.repository [default: REPOSITORY_NAME/redis-exporter] Redis(R) Exporter image repository
1674
## @skip metrics.image.tag Redis(R) Exporter image tag (immutable tags are recommended)
1675
## @param metrics.image.digest Redis(R) Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1676
## @param metrics.image.pullPolicy Redis(R) Exporter image pull policy
1677
## @param metrics.image.pullSecrets Redis(R) Exporter image pull secrets
1678
##
1679
image:
1680
registry: cgr.dev
1681
repository: chainguard-private/prometheus-redis-exporter-iamguarded
1682
tag: 1.99.0
1683
digest: sha256:828ee291571b60e0f3164401043f0822bcebe5eff83f2694702c8f4903e21957
1684
pullPolicy: IfNotPresent
1685
## Optionally, specify an array of imagePullSecrets.
1686
## Secrets must be manually created in the namespace.
1687
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1688
## Example:
1689
## pullSecrets:
1690
## - myRegistryKeySecretName
1691
##
1692
pullSecrets: []
1693
## @param metrics.containerPorts.http Metrics HTTP container port
1694
##
1695
containerPorts:
1696
http: 9121
1697
## Configure extra options for Valkey containers' liveness, readiness & startup probes
1698
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
1699
## @param metrics.startupProbe.enabled Enable startupProbe on Valkey replicas nodes
1700
## @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1701
## @param metrics.startupProbe.periodSeconds Period seconds for startupProbe
1702
## @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1703
## @param metrics.startupProbe.failureThreshold Failure threshold for startupProbe
1704
## @param metrics.startupProbe.successThreshold Success threshold for startupProbe
1705
##
1706
startupProbe:
1707
enabled: false
1708
initialDelaySeconds: 10
1709
periodSeconds: 10
1710
timeoutSeconds: 5
1711
successThreshold: 1
1712
failureThreshold: 5
1713
## @param metrics.livenessProbe.enabled Enable livenessProbe on Valkey replicas nodes
1714
## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1715
## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1716
## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1717
## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1718
## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1719
##
1720
livenessProbe:
1721
enabled: true
1722
initialDelaySeconds: 10
1723
periodSeconds: 10
1724
timeoutSeconds: 5
1725
successThreshold: 1
1726
failureThreshold: 5
1727
## @param metrics.readinessProbe.enabled Enable readinessProbe on Valkey replicas nodes
1728
## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1729
## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1730
## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1731
## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1732
## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1733
##
1734
readinessProbe:
1735
enabled: true
1736
initialDelaySeconds: 5
1737
periodSeconds: 10
1738
timeoutSeconds: 1
1739
successThreshold: 1
1740
failureThreshold: 3
1741
## @param metrics.customStartupProbe Custom startupProbe that overrides the default one
1742
##
1743
customStartupProbe: {}
1744
## @param metrics.customLivenessProbe Custom livenessProbe that overrides the default one
1745
##
1746
customLivenessProbe: {}
1747
## @param metrics.customReadinessProbe Custom readinessProbe that overrides the default one
1748
##
1749
customReadinessProbe: {}
1750
## @param metrics.command Override default metrics container init command (useful when using custom images)
1751
##
1752
command: []
1753
## @param metrics.valkeyTargetHost A way to specify an alternative Valkey hostname
1754
## Useful for certificate CN/SAN matching
1755
##
1756
valkeyTargetHost: "localhost"
1757
## @param metrics.extraArgs Extra arguments for Redis(R) Exporter
1758
## Example:
1759
## extraArgs:
1760
## check-keys: myKey,myOtherKey
1761
##
1762
extraArgs: {}
1763
## @param metrics.extraEnvVars Array with extra environment variables to add to Redis(R) Exporter
1764
## Example:
1765
## extraEnvVars:
1766
## - name: FOO
1767
## value: "bar"
1768
##
1769
extraEnvVars: []
1770
## Configure Container Security Context
1771
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1772
## @param metrics.containerSecurityContext.enabled Enable Redis(R) Exporter containers' Security Context
1773
## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1774
## @param metrics.containerSecurityContext.runAsUser Set Redis(R) Exporter containers' Security Context runAsUser
1775
## @param metrics.containerSecurityContext.runAsGroup Set Redis(R) Exporter containers' Security Context runAsGroup
1776
## @param metrics.containerSecurityContext.runAsNonRoot Set Redis(R) Exporter containers' Security Context runAsNonRoot
1777
## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set Redis(R) Exporter containers' Security Context allowPrivilegeEscalation
1778
## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
1779
## @param metrics.containerSecurityContext.seccompProfile.type Set Redis(R) Exporter containers' Security Context seccompProfile
1780
## @param metrics.containerSecurityContext.capabilities.drop Set Redis(R) Exporter containers' Security Context capabilities to drop
1781
##
1782
containerSecurityContext:
1783
enabled: true
1784
seLinuxOptions: {}
1785
runAsUser: 1001
1786
runAsGroup: 1001
1787
runAsNonRoot: true
1788
allowPrivilegeEscalation: false
1789
readOnlyRootFilesystem: true
1790
seccompProfile:
1791
type: RuntimeDefault
1792
capabilities:
1793
drop: ["ALL"]
1794
## @param metrics.extraVolumes Optionally, specify extra list of additional volumes for the Valkey metrics sidecar
1795
##
1796
extraVolumes: []
1797
## @param metrics.extraVolumeMounts Optionally, specify extra list of additional volumeMounts for the Valkey metrics sidecar
1798
##
1799
extraVolumeMounts: []
1800
## Redis(R) Exporter resource requests and limits
1801
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1802
## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1803
##
1804
resourcesPreset: "nano"
1805
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1806
## Example:
1807
## resources:
1808
## requests:
1809
## cpu: 2
1810
## memory: 512Mi
1811
## limits:
1812
## cpu: 3
1813
## memory: 1024Mi
1814
##
1815
resources: {}
1816
## @param metrics.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1817
## @param metrics.fips.golang Configure Golang FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
1818
##
1819
fips:
1820
openssl: ""
1821
golang: restricted
1822
##
1823
## @param metrics.podLabels Extra labels for Redis(R) Exporter pods
1824
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1825
##
1826
podLabels: {}
1827
## @param metrics.podAnnotations [object] Annotations for Redis(R) Exporter pods
1828
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1829
##
1830
podAnnotations:
1831
prometheus.io/scrape: "true"
1832
prometheus.io/port: "9121"
1833
## Redis(R) Exporter service parameters
1834
##
1835
service:
1836
## @param metrics.service.enabled Create Service resource(s) for scraping metrics using PrometheusOperator ServiceMonitor, can be disabled when using a PodMonitor
1837
##
1838
enabled: true
1839
## @param metrics.service.type Redis(R) Exporter service type
1840
##
1841
type: ClusterIP
1842
## @param metrics.service.ports.http Redis(R) Exporter service port
1843
##
1844
ports:
1845
http: 9121
1846
## @param metrics.service.externalTrafficPolicy Redis(R) Exporter service external traffic policy
1847
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1848
##
1849
externalTrafficPolicy: Cluster
1850
## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1851
##
1852
extraPorts: []
1853
## @param metrics.service.loadBalancerIP Redis(R) Exporter service Load Balancer IP
1854
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1855
##
1856
loadBalancerIP: ""
1857
## @param metrics.service.loadBalancerClass Exporter service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1858
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1859
##
1860
loadBalancerClass: ""
1861
## @param metrics.service.loadBalancerSourceRanges Redis(R) Exporter service Load Balancer sources
1862
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1863
## Example:
1864
## loadBalancerSourceRanges:
1865
## - 10.10.10.0/24
1866
##
1867
loadBalancerSourceRanges: []
1868
## @param metrics.service.annotations Additional custom annotations for Redis(R) Exporter service
1869
##
1870
annotations: {}
1871
## @param metrics.service.clusterIP Redis(R) Exporter service Cluster IP
1872
##
1873
clusterIP: ""
1874
## Prometheus Service Monitor
1875
## ref: https://github.com/coreos/prometheus-operator
1876
## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1877
##
1878
serviceMonitor:
1879
## @param metrics.serviceMonitor.port the service port to scrape metrics from
1880
##
1881
port: http-metrics
1882
## @param metrics.serviceMonitor.enabled Create ServiceMonitor resource(s) for scraping metrics using PrometheusOperator
1883
##
1884
enabled: false
1885
## @param metrics.serviceMonitor.namespace The namespace in which the ServiceMonitor will be created
1886
##
1887
namespace: ""
1888
## @param metrics.serviceMonitor.interval The interval at which metrics should be scraped
1889
##
1890
interval: 30s
1891
## @param metrics.serviceMonitor.scrapeTimeout The timeout after which the scrape is ended
1892
##
1893
scrapeTimeout: ""
1894
## @param metrics.serviceMonitor.relabelings Metrics RelabelConfigs to apply to samples before scraping.
1895
##
1896
relabelings: []
1897
## @param metrics.serviceMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
1898
##
1899
metricRelabelings: []
1900
## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1901
##
1902
honorLabels: false
1903
## @param metrics.serviceMonitor.additionalLabels Additional labels that can be used so ServiceMonitor resource(s) can be discovered by Prometheus
1904
##
1905
additionalLabels: {}
1906
## @param metrics.serviceMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
1907
##
1908
podTargetLabels: []
1909
## @param metrics.serviceMonitor.sampleLimit Limit of how many samples should be scraped from every Pod
1910
##
1911
sampleLimit: false
1912
## @param metrics.serviceMonitor.targetLimit Limit of how many targets should be scraped
1913
##
1914
targetLimit: false
1915
## @param metrics.serviceMonitor.additionalEndpoints Additional endpoints to scrape (e.g., sentinel)
1916
## Example to scrape sentinel metrics, also to in order distinguish between Sentinel and Valkey container metrics
1917
## add metricRelabelings with label like app=valkey to main valkey pod-monitor port:
1918
## additionalEndpoints:
1919
## - interval: "30s"
1920
## path: "/scrape"
1921
## port: "metrics"
1922
## params:
1923
## target: ["localhost:26379"]
1924
## metricRelabelings:
1925
## - targetLabel: "app"
1926
## replacement: "sentinel"
1927
##
1928
additionalEndpoints: []
1929
## Prometheus Pod Monitor
1930
## ref: https://github.com/coreos/prometheus-operator
1931
## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#podmonitor
1932
##
1933
podMonitor:
1934
## @param metrics.podMonitor.port the pod port to scrape metrics from
1935
##
1936
port: metrics
1937
## @param metrics.podMonitor.enabled Create PodMonitor resource(s) for scraping metrics using PrometheusOperator
1938
##
1939
enabled: false
1940
## @param metrics.podMonitor.namespace The namespace in which the PodMonitor will be created
1941
##
1942
namespace: ""
1943
## @param metrics.podMonitor.interval The interval at which metrics should be scraped
1944
##
1945
interval: 30s
1946
## @param metrics.podMonitor.scrapeTimeout The timeout after which the scrape is ended
1947
##
1948
scrapeTimeout: ""
1949
## @param metrics.podMonitor.relabelings Metrics RelabelConfigs to apply to samples before scraping.
1950
##
1951
relabelings: []
1952
## @param metrics.podMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
1953
## Example:
1954
## metricRelabelings:
1955
## - targetLabel: "app"
1956
## replacement: "valkey"
1957
##
1958
metricRelabelings: []
1959
## @param metrics.podMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
1960
##
1961
honorLabels: false
1962
## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitor resource(s) can be discovered by Prometheus
1963
##
1964
additionalLabels: {}
1965
## @param metrics.podMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
1966
##
1967
podTargetLabels: []
1968
## @param metrics.podMonitor.sampleLimit Limit of how many samples should be scraped from every Pod
1969
##
1970
sampleLimit: false
1971
## @param metrics.podMonitor.targetLimit Limit of how many targets should be scraped
1972
##
1973
targetLimit: false
1974
## @param metrics.podMonitor.additionalEndpoints Additional endpoints to scrape (e.g., sentinel)
1975
## Example:
1976
## additionalEndpoints:
1977
## - interval: "30s"
1978
## path: "/scrape"
1979
## port: "metrics"
1980
## params:
1981
## target: ["localhost:26379"]
1982
## metricRelabelings:
1983
## - targetLabel: "app"
1984
## replacement: "sentinel"
1985
##
1986
additionalEndpoints: []
1987
## Custom PrometheusRule to be defined
1988
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1989
##
1990
prometheusRule:
1991
## @param metrics.prometheusRule.enabled Create a custom prometheusRule Resource for scraping metrics using PrometheusOperator
1992
##
1993
enabled: false
1994
## @param metrics.prometheusRule.namespace The namespace in which the prometheusRule will be created
1995
##
1996
namespace: ""
1997
## @param metrics.prometheusRule.additionalLabels Additional labels for the prometheusRule
1998
##
1999
additionalLabels: {}
2000
## @param metrics.prometheusRule.rules Custom Prometheus rules
2001
## Example:
2002
## rules:
2003
## - alert: ValkeyDown
2004
## expr: valkey_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
2005
## for: 2m
2006
## labels:
2007
## severity: error
2008
## annotations:
2009
## summary: Valkey instance {{ "{{ $labels.instance }}" }} down
2010
## description: Valkey instance {{ "{{ $labels.instance }}" }} is down
2011
## - alert: ValkeyMemoryHigh
2012
## expr: >
2013
## valkey_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
2014
## /
2015
## valkey_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
2016
## > 90
2017
## for: 2m
2018
## labels:
2019
## severity: error
2020
## annotations:
2021
## summary: Valkey instance {{ "{{ $labels.instance }}" }} is using too much memory
2022
## description: |
2023
## Valkey instance {{ "{{ $labels.instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
2024
## - alert: ValkeyKeyEviction
2025
## expr: |
2026
## increase(valkey_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
2027
## for: 1s
2028
## labels:
2029
## severity: error
2030
## annotations:
2031
## summary: Valkey instance {{ "{{ $labels.instance }}" }} has evicted keys
2032
## description: |
2033
## Valkey instance {{ "{{ $labels.instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
2034
##
2035
rules: []
2036
## @section Init Container Parameters
2037
##
2038
2039
## 'volumePermissions' init container parameters
2040
## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
2041
## based on the *podSecurityContext/*containerSecurityContext parameters
2042
##
2043
volumePermissions:
2044
## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
2045
##
2046
enabled: false
2047
## OS Shell + Utility image
2048
## @param volumePermissions.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
2049
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
2050
## @skip volumePermissions.image.tag OS Shell + Utility image tag (immutable tags are recommended)
2051
## @param volumePermissions.image.digest OS Shell + Utility image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2052
## @param volumePermissions.image.pullPolicy OS Shell + Utility image pull policy
2053
## @param volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets
2054
##
2055
image:
2056
registry: cgr.dev
2057
repository: chainguard-private/os-shell-iamguarded
2058
tag: 1.0.0
2059
digest: sha256:7401ee05d8e0e6a6be960433db429bf05a6ca21be356b99cd87597199fb355a2
2060
pullPolicy: IfNotPresent
2061
## Optionally, specify an array of imagePullSecrets.
2062
## Secrets must be manually created in the namespace.
2063
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2064
## Example:
2065
## pullSecrets:
2066
## - myRegistryKeySecretName
2067
##
2068
pullSecrets: []
2069
## Init container's resource requests and limits
2070
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2071
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
2072
##
2073
resourcesPreset: "nano"
2074
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
2075
## Example:
2076
## resources:
2077
## requests:
2078
## cpu: 2
2079
## memory: 512Mi
2080
## limits:
2081
## cpu: 3
2082
## memory: 1024Mi
2083
##
2084
resources: {}
2085
## @param volumePermissions.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2086
##
2087
fips:
2088
openssl: ""
2089
##
2090
## Init container Security Context
2091
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
2092
## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2093
## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
2094
## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
2095
## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
2096
## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
2097
##
2098
containerSecurityContext:
2099
seLinuxOptions: {}
2100
runAsUser: 0
2101
## Kubectl InitContainer
2102
## used by Sentinel to update the isPrimary label on the Valkey(TM) pods
2103
##
2104
kubectl:
2105
## Iamguarded Kubectl image version
2106
## @param kubectl.image.registry [default: REGISTRY_NAME] Kubectl image registry
2107
## @param kubectl.image.repository [default: REPOSITORY_NAME/kubectl] Kubectl image repository
2108
## @skip kubectl.image.tag Kubectl image tag (immutable tags are recommended), by default, using the current version
2109
## @param kubectl.image.digest Kubectl image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
2110
## @param kubectl.image.pullPolicy Kubectl image pull policy
2111
## @param kubectl.image.pullSecrets Kubectl pull secrets
2112
##
2113
image:
2114
registry: cgr.dev
2115
repository: chainguard-private/kubectl-iamguarded
2116
tag: 1.37.3
2117
digest: sha256:ca17a106ef9da6832aa3e992bbf0b3957def6c4ca50c12f583083e8a2affe902
2118
## Specify a imagePullPolicy
2119
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
2120
##
2121
pullPolicy: IfNotPresent
2122
## Optionally, specify an array of imagePullSecrets.
2123
## Secrets must be manually created in the namespace.
2124
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
2125
## Example:
2126
## pullSecrets:
2127
## - myRegistryKeySecretName
2128
##
2129
pullSecrets: []
2130
## @param kubectl.command kubectl command to execute
2131
##
2132
command: ["/opt/iamguarded/scripts/kubectl-scripts/update-primary-label.sh"]
2133
## Configure Container Security Context
2134
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
2135
## @param kubectl.containerSecurityContext.enabled Enable kubectl containers' Security Context
2136
## @param kubectl.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
2137
## @param kubectl.containerSecurityContext.runAsUser Set kubectl containers' Security Context runAsUser
2138
## @param kubectl.containerSecurityContext.runAsGroup Set kubectl containers' Security Context runAsGroup
2139
## @param kubectl.containerSecurityContext.runAsNonRoot Set kubectl containers' Security Context runAsNonRoot
2140
## @param kubectl.containerSecurityContext.allowPrivilegeEscalation Set kubectl containers' Security Context allowPrivilegeEscalation
2141
## @param kubectl.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context read-only root filesystem
2142
## @param kubectl.containerSecurityContext.seccompProfile.type Set kubectl containers' Security Context seccompProfile
2143
## @param kubectl.containerSecurityContext.capabilities.drop Set kubectl containers' Security Context capabilities to drop
2144
##
2145
containerSecurityContext:
2146
enabled: true
2147
seLinuxOptions: {}
2148
runAsUser: 1001
2149
runAsGroup: 1001
2150
runAsNonRoot: true
2151
allowPrivilegeEscalation: false
2152
readOnlyRootFilesystem: true
2153
seccompProfile:
2154
type: RuntimeDefault
2155
capabilities:
2156
drop: ["ALL"]
2157
## Iamguarded Kubectl resource requests and limits
2158
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
2159
## @param kubectl.resources.limits The resources limits for the kubectl containers
2160
## @param kubectl.resources.requests The requested resources for the kubectl containers
2161
##
2162
resources:
2163
limits: {}
2164
requests: {}
2165
## @param kubectl.fips.openssl Configure OpenSSL FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2166
## @param kubectl.fips.golang Configure Golang FIPS mode: '', 'restricted', 'relaxed', 'off'. If empty (""), 'global.defaultFips' would be used
2167
##
2168
fips:
2169
openssl: ""
2170
golang: relaxed
2171
##
2172
## @section useExternalDNS Parameters
2173
##
2174
## @param useExternalDNS.enabled Enable various syntax that would enable external-dns to work. Note this requires a working installation of `external-dns` to be usable.
2175
## @param useExternalDNS.additionalAnnotations Extra annotations to be utilized when `external-dns` is enabled.
2176
## @param useExternalDNS.annotationKey The annotation key utilized when `external-dns` is enabled. Setting this to `false` will disable annotations.
2177
## @param useExternalDNS.suffix The DNS suffix utilized when `external-dns` is enabled. Note that we prepend the suffix with the full name of the release.
2178
##
2179
useExternalDNS:
2180
enabled: false
2181
suffix: ""
2182
annotationKey: external-dns.alpha.kubernetes.io/
2183
additionalAnnotations: {}
2184

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.