DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
redis logoHELM

redis

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

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.