DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
redis-cluster logoHELM

redis-cluster

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 Redis® password (overrides `password`)
22
##
23
global:
24
imageRegistry: ""
25
useImageTags: false
26
## E.g.
27
## imagePullSecrets:
28
## - myRegistryKeySecretName
29
##
30
imagePullSecrets: []
31
defaultStorageClass: ""
32
storageClass: ""
33
## Security parameters
34
##
35
security:
36
## @param global.security.allowInsecureImages Allows skipping image verification
37
allowInsecureImages: false
38
redis:
39
password: ""
40
## Compatibility adaptations for Kubernetes platforms
41
##
42
compatibility:
43
## Compatibility adaptations for Openshift
44
##
45
openshift:
46
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
47
##
48
adaptSecurityContext: auto
49
org: ""
50
## @section Redis(R) Cluster Common parameters
51
##
52
53
## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
54
##
55
nameOverride: ""
56
## @param fullnameOverride String to fully override common.names.fullname template
57
##
58
fullnameOverride: ""
59
## @param namespaceOverride String to fully override common.names.namespace template
60
##
61
namespaceOverride: ""
62
## @param clusterDomain Kubernetes Cluster Domain
63
##
64
clusterDomain: cluster.local
65
## @param commonAnnotations Annotations to add to all deployed objects
66
##
67
commonAnnotations: {}
68
## @param commonLabels Labels to add to all deployed objects
69
##
70
commonLabels: {}
71
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
72
##
73
extraDeploy: []
74
## Enable diagnostic mode in the deployment
75
##
76
diagnosticMode:
77
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
78
##
79
enabled: false
80
## @param diagnosticMode.command Command to override all containers in the deployment
81
##
82
command:
83
- sleep
84
## @param diagnosticMode.args Args to override all containers in the deployment
85
##
86
args:
87
- infinity
88
## Iamguarded Redis® image version
89
## ref: https://hub.docker.com/r/iamguarded/redis/tags/
90
## @param image.registry [default: REGISTRY_NAME] Redis® cluster image registry
91
## @param image.repository [default: REPOSITORY_NAME/redis-cluster] Redis® cluster image repository
92
## @skip image.tag Redis® cluster image tag (immutable tags are recommended)
93
## @param image.digest Redis® cluster image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
94
## @param image.pullPolicy Redis® cluster image pull policy
95
## @param image.pullSecrets Specify docker-registry secret names as an array
96
## @param image.debug Enable image debug mode
97
##
98
image:
99
registry: cgr.dev
100
repository: chainguard-private/redis-cluster-iamguarded
101
tag: 8.12.0
102
digest: ""
103
## Specify a imagePullPolicy
104
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
105
##
106
pullPolicy: IfNotPresent
107
## Optionally specify an array of imagePullSecrets.
108
## Secrets must be manually created in the namespace.
109
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
110
## e.g:
111
## pullSecrets:
112
## - myRegistryKeySecretName
113
##
114
pullSecrets: []
115
## Enable debug mode
116
##
117
debug: false
118
## Network Policy configuration
119
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
120
##
121
networkPolicy:
122
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
123
##
124
enabled: true
125
## @param networkPolicy.allowExternal The Policy model to apply
126
## When set to false, only pods with the correct client label will have network access to the ports Redis(R) Cluster is
127
## listening on. When true, Redis(R) Cluster will accept connections from any source (with the correct destination port).
128
##
129
allowExternal: true
130
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
131
##
132
allowExternalEgress: true
133
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
134
## e.g:
135
## extraIngress:
136
## - ports:
137
## - port: 1234
138
## from:
139
## - podSelector:
140
## - matchLabels:
141
## - role: frontend
142
## - podSelector:
143
## - matchExpressions:
144
## - key: role
145
## operator: In
146
## values:
147
## - frontend
148
##
149
extraIngress: []
150
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
151
## e.g:
152
## extraEgress:
153
## - ports:
154
## - port: 1234
155
## to:
156
## - podSelector:
157
## - matchLabels:
158
## - role: frontend
159
## - podSelector:
160
## - matchExpressions:
161
## - key: role
162
## operator: In
163
## values:
164
## - frontend
165
##
166
extraEgress: []
167
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
168
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
169
##
170
ingressNSMatchLabels: {}
171
ingressNSPodMatchLabels: {}
172
serviceAccount:
173
## @param serviceAccount.create Specifies whether a ServiceAccount should be created
174
##
175
create: true
176
## @param serviceAccount.name The name of the ServiceAccount to create
177
## If not set and create is true, a name is generated using the fullname template
178
##
179
name: ""
180
## @param serviceAccount.annotations Annotations for Cassandra Service Account
181
##
182
annotations: {}
183
## @param serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
184
##
185
automountServiceAccountToken: false
186
rbac:
187
## @param rbac.create Specifies whether RBAC resources should be created
188
##
189
create: false
190
role:
191
## @param rbac.role.rules Rules to create. It follows the role specification
192
## rules:
193
## - apiGroups:
194
## - extensions
195
## resources:
196
## - podsecuritypolicies
197
## verbs:
198
## - use
199
## resourceNames:
200
## - gce.unprivileged
201
##
202
rules: []
203
## Redis® pod Security Context
204
## @param podSecurityContext.enabled Enable Redis® pod Security Context
205
## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
206
## @param podSecurityContext.supplementalGroups Set filesystem extra groups
207
## @param podSecurityContext.fsGroup Group ID for the pods
208
## @param podSecurityContext.sysctls Set namespaced sysctls for the pods
209
##
210
podSecurityContext:
211
enabled: true
212
fsGroupChangePolicy: Always
213
supplementalGroups: []
214
fsGroup: 1001
215
## Uncomment the setting below to increase the net.core.somaxconn value
216
## e.g:
217
## sysctls:
218
## - name: net.core.somaxconn
219
## value: "10000"
220
##
221
sysctls: []
222
## @param podDisruptionBudget DEPRECATED please use pdb instead
223
## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions
224
##
225
podDisruptionBudget: {}
226
## Pod Disruption Budget configuration
227
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
228
##
229
pdb:
230
## @param pdb.create Created a PodDisruptionBudget
231
##
232
create: true
233
## @param pdb.minAvailable Min number of pods that must still be available after the eviction.
234
## You can specify an integer or a percentage by setting the value to a string representation of a percentage (eg. "50%"). It will be disabled if set to 0
235
##
236
minAvailable: ""
237
## @param pdb.maxUnavailable Max number of pods that can be unavailable after the eviction.
238
## You can specify an integer or a percentage by setting the value to a string representation of a percentage (eg. "50%"). It will be disabled if set to 0
239
##
240
maxUnavailable: ""
241
## Containers Security Context
242
## @param containerSecurityContext.enabled Enabled containers' Security Context
243
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
244
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
245
## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
246
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
247
## @param containerSecurityContext.privileged Set container's Security Context privileged
248
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
249
## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
250
## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
251
## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
252
##
253
containerSecurityContext:
254
enabled: true
255
seLinuxOptions: {}
256
runAsUser: 1001
257
runAsGroup: 1001
258
runAsNonRoot: true
259
privileged: false
260
readOnlyRootFilesystem: true
261
allowPrivilegeEscalation: false
262
capabilities:
263
drop: ["ALL"]
264
seccompProfile:
265
type: "RuntimeDefault"
266
## @param usePassword Use password authentication
267
##
268
usePassword: true
269
## @param password Redis® password (ignored if existingSecret set)
270
## Defaults to a random 10-character alphanumeric string if not set and usePassword is true
271
## ref: https://github.com/iamguarded/containers/tree/main/iamguarded/redis#setting-the-server-password-on-first-run
272
##
273
password: ""
274
## @param existingSecret Name of existing secret object (for password authentication)
275
##
276
existingSecret: ""
277
## @param existingSecretPasswordKey Name of key containing password to be retrieved from the existing secret
278
##
279
existingSecretPasswordKey: ""
280
## @param usePasswordFiles Mount passwords as files instead of environment variables
281
##
282
usePasswordFiles: true
283
##
284
## TLS configuration
285
##
286
tls:
287
## @param tls.enabled Enable TLS support for replication traffic
288
##
289
enabled: false
290
## @param tls.authClients Require clients to authenticate or not
291
##
292
authClients: true
293
## @param tls.autoGenerated Generate automatically self-signed TLS certificates
294
##
295
autoGenerated: false
296
## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
297
##
298
existingSecret: ""
299
## @param tls.certificatesSecret DEPRECATED. Use tls.existingSecret instead
300
##
301
certificatesSecret: ""
302
## @param tls.certFilename Certificate filename
303
##
304
certFilename: ""
305
## @param tls.certKeyFilename Certificate key filename
306
##
307
certKeyFilename: ""
308
## @param tls.certCAFilename CA Certificate filename
309
##
310
certCAFilename: ""
311
## @param tls.dhParamsFilename File containing DH params (in order to support DH based ciphers)
312
##
313
dhParamsFilename: ""
314
## Redis® Service properties for standalone mode.
315
##
316
service:
317
## @param service.ports.redis Kubernetes Redis service port
318
##
319
ports:
320
redis: 6379
321
## Node ports to expose
322
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
323
## @param service.nodePorts.redis Node port for Redis
324
##
325
nodePorts:
326
redis: ""
327
## @param service.extraPorts Extra ports to expose in the service (normally used with the `sidecar` value)
328
##
329
extraPorts: []
330
## @param service.annotations Provide any additional annotations which may be required.
331
## This can be used to set the LoadBalancer service type to internal only.
332
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
333
##
334
annotations: {}
335
## @param service.labels Additional labels for redis service
336
##
337
labels: {}
338
## @param service.type Service type for default redis service
339
## Setting this to LoadBalancer may require corresponding service annotations for loadbalancer creation to succeed.
340
## Currently supported types are ClusterIP (default) and LoadBalancer
341
##
342
type: ClusterIP
343
## @param service.clusterIP Service Cluster IP
344
## e.g.:
345
## clusterIP: None
346
##
347
clusterIP: ""
348
## @param service.loadBalancerIP Load balancer IP if `service.type` is `LoadBalancer`
349
## If service.type is LoadBalancer, request a specific static IP address if supported by the cloud provider, otherwise leave blank
350
##
351
loadBalancerIP: ""
352
## @param service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
353
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
354
##
355
loadBalancerClass: ""
356
## @param service.loadBalancerSourceRanges Service Load Balancer sources
357
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
358
## e.g:
359
## loadBalancerSourceRanges:
360
## - 10.10.10.0/24
361
##
362
loadBalancerSourceRanges: []
363
## @param service.externalTrafficPolicy Service external traffic policy
364
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
365
##
366
externalTrafficPolicy: Cluster
367
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
368
## If "ClientIP", consecutive client requests will be directed to the same Pod
369
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
370
##
371
sessionAffinity: None
372
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
373
## sessionAffinityConfig:
374
## clientIP:
375
## timeoutSeconds: 300
376
##
377
sessionAffinityConfig: {}
378
## Headless service properties
379
##
380
headless:
381
## @param service.headless.annotations Annotations for the headless service.
382
##
383
annotations: {}
384
## Enable persistence using Persistent Volume Claims
385
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
386
##
387
persistence:
388
## @param persistence.enabled Enable persistence on Redis®
389
## If enabled, nodes are using Persistent Volume Claims
390
## If disabled, an emptyDir volume is used. This is not recommended.
391
## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/redis-cluster#persistence
392
##
393
enabled: true
394
## @param persistence.path Path to mount the volume at, to use other images Redis® images.
395
##
396
path: /iamguarded/redis/data
397
## @param persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
398
##
399
subPath: ""
400
## @param persistence.storageClass Storage class of backing PVC
401
## If defined, storageClassName: <storageClass>
402
## If set to "-", storageClassName: "", which disables dynamic provisioning
403
## If undefined (the default) or set to null, no storageClassName spec is
404
## set, choosing the default provisioner. (gp2 on AWS, standard on
405
## GKE, AWS & OpenStack)
406
##
407
storageClass: ""
408
## @param persistence.annotations Persistent Volume Claim annotations
409
##
410
annotations: {}
411
## @param persistence.labels Persistent Volume Claim labels
412
##
413
labels: {}
414
## @param persistence.accessModes Persistent Volume Access Modes
415
##
416
accessModes:
417
- ReadWriteOnce
418
## @param persistence.size Size of data volume
419
##
420
size: 8Gi
421
## @param persistence.matchLabels Persistent Volume selectors
422
## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
423
##
424
matchLabels: {}
425
## @param persistence.matchExpressions matchExpressions Persistent Volume selectors
426
##
427
matchExpressions: {}
428
## persistentVolumeClaimRetentionPolicy
429
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
430
## @param persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
431
## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
432
## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
433
persistentVolumeClaimRetentionPolicy:
434
enabled: false
435
whenScaled: Retain
436
whenDeleted: Retain
437
## Init containers parameters:
438
## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
439
##
440
volumePermissions:
441
## @param volumePermissions.enabled Enable init container that changes volume permissions in the registry (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
442
##
443
enabled: false
444
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
445
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
446
## @skip volumePermissions.image.tag Init container volume-permissions image tag
447
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
448
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
449
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
450
##
451
image:
452
registry: cgr.dev
453
repository: chainguard-private/os-shell-iamguarded
454
tag: 1.0.0
455
digest: ""
456
pullPolicy: IfNotPresent
457
## Optionally specify an array of imagePullSecrets.
458
## Secrets must be manually created in the namespace.
459
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
460
## e.g:
461
## pullSecrets:
462
## - myRegistryKeySecretName
463
##
464
pullSecrets: []
465
## Containers Security Context
466
## @param volumePermissions.containerSecurityContext.enabled Enable Containers' Security Context
467
## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
468
## @param volumePermissions.containerSecurityContext.runAsUser User ID for the containers.
469
## @param volumePermissions.containerSecurityContext.privileged Run container as privileged
470
##
471
containerSecurityContext:
472
enabled: true
473
seLinuxOptions: {}
474
runAsUser: 0
475
privileged: false
476
## Container resource requests and limits
477
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
478
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
479
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
480
##
481
resourcesPreset: "nano"
482
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
483
## Example:
484
## resources:
485
## requests:
486
## cpu: 2
487
## memory: 512Mi
488
## limits:
489
## cpu: 3
490
## memory: 1024Mi
491
##
492
resources: {}
493
## @param serviceBindings.enabled Create secret for service binding (Experimental)
494
## Ref: https://servicebinding.io/service-provider/
495
##
496
serviceBindings:
497
enabled: false
498
## PodSecurityPolicy configuration
499
## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
500
## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
501
##
502
podSecurityPolicy:
503
create: false
504
## @section Redis&reg; statefulset parameters
505
##
506
redis:
507
## @param redis.command Redis&reg; entrypoint string. The command `redis-server` is executed if this is not provided
508
##
509
command: []
510
## @param redis.args Arguments for the provided command if needed
511
##
512
args: []
513
## @param redis.updateStrategy.type Argo Workflows statefulset strategy type
514
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
515
##
516
updateStrategy:
517
## StrategyType
518
## Can be set to RollingUpdate or OnDelete
519
##
520
type: RollingUpdate
521
## @param redis.updateStrategy.rollingUpdate.partition Partition update strategy
522
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
523
##
524
rollingUpdate:
525
partition: 0
526
## @param redis.podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
527
## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
528
##
529
podManagementPolicy: Parallel
530
## @param redis.automountServiceAccountToken Mount Service Account token in pod
531
##
532
automountServiceAccountToken: false
533
## @param redis.hostAliases Deployment pod host aliases
534
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
535
##
536
hostAliases: []
537
## @param redis.hostNetwork Host networking requested for this pod. Use the host's network namespace.
538
## https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podspec-v1-core
539
##
540
hostNetwork: false
541
## @param redis.useAOFPersistence Whether to use AOF Persistence mode or not
542
## It is strongly recommended to use this type when dealing with clusters
543
## ref: https://redis.io/topics/persistence#append-only-file
544
## ref: https://redis.io/topics/cluster-tutorial#creating-and-using-a-redis-cluster
545
##
546
useAOFPersistence: "yes"
547
## @param redis.containerPorts.redis Redis&reg; port
548
## @param redis.containerPorts.bus The busPort should be obtained adding 10000 to the redisPort. By default: 10000 + 6379 = 16379
549
##
550
containerPorts:
551
redis: 6379
552
bus: 16379
553
## @param redis.lifecycleHooks LifecycleHook to set additional configuration before or after startup. Evaluated as a template
554
##
555
lifecycleHooks: {}
556
## @param redis.extraVolumes Extra volumes to add to the deployment
557
##
558
extraVolumes: []
559
## @param redis.extraVolumeMounts Extra volume mounts to add to the container
560
##
561
extraVolumeMounts: []
562
## @param redis.customLivenessProbe Override default liveness probe
563
##
564
customLivenessProbe: {}
565
## @param redis.customReadinessProbe Override default readiness probe
566
##
567
customReadinessProbe: {}
568
## @param redis.customStartupProbe Custom startupProbe that overrides the default one
569
##
570
customStartupProbe: {}
571
## @param redis.initContainers Extra init containers to add to the deployment
572
##
573
initContainers: []
574
## @param redis.sidecars Extra sidecar containers to add to the deployment
575
##
576
sidecars: []
577
## @param redis.podLabels Additional labels for Redis&reg; pod
578
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
579
##
580
podLabels: {}
581
## @param redis.priorityClassName Redis&reg; Master pod priorityClassName
582
##
583
priorityClassName: ""
584
## @param redis.defaultConfigOverride Optional default Redis&reg; configuration for the nodes
585
## If not set, the default Redis configuration from the chart is used
586
## ref: https://redis.io/topics/config
587
##
588
defaultConfigOverride: ""
589
## @param redis.configmap Additional Redis&reg; configuration for the nodes
590
## ref: https://redis.io/topics/config
591
##
592
configmap: ""
593
## @param redis.extraEnvVars An array to add extra environment variables
594
## For example:
595
## - name: BEARER_AUTH
596
## value: true
597
##
598
extraEnvVars: []
599
## @param redis.extraEnvVarsCM ConfigMap with extra environment variables
600
##
601
extraEnvVarsCM: ""
602
## @param redis.extraEnvVarsSecret Secret with extra environment variables
603
##
604
extraEnvVarsSecret: ""
605
## @param redis.podAnnotations Redis&reg; additional annotations
606
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
607
##
608
podAnnotations: {}
609
## Redis&reg; resource requests and limits
610
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
611
## @param redis.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if redis.resources is set (redis.resources is recommended for production).
612
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
613
##
614
resourcesPreset: "nano"
615
## @param redis.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
616
## Example:
617
## resources:
618
## requests:
619
## cpu: 2
620
## memory: 512Mi
621
## limits:
622
## cpu: 3
623
## memory: 1024Mi
624
##
625
resources: {}
626
## @param redis.schedulerName Use an alternate scheduler, e.g. "stork".
627
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
628
##
629
schedulerName: ""
630
## @param redis.shareProcessNamespace Enable shared process namespace in a pod.
631
## If set to false (default), each container will run in separate namespace, redis will have PID=1.
632
## If set to true, the /pause will run as init process and will reap any zombie PIDs,
633
## for example, generated by a custom exec probe running longer than a probe timeoutSeconds.
634
## Enable this only if customLivenessProbe or customReadinessProbe is used and zombie PIDs are accumulating.
635
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
636
##
637
shareProcessNamespace: false
638
## @param redis.terminationGracePeriodSeconds Set custom gracefull termination period for redis container.
639
## If not set the kubernetes default will be applied.
640
## Customize it based on your workload. Huge redis with high load may wants more than default time to dump
641
## their data before complete termination.
642
## Ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
643
##
644
terminationGracePeriodSeconds: 30
645
## Configure extra options for Redis&reg; liveness probes
646
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
647
## @param redis.livenessProbe.enabled Enable livenessProbe
648
## @param redis.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
649
## @param redis.livenessProbe.periodSeconds Period seconds for livenessProbe
650
## @param redis.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
651
## @param redis.livenessProbe.failureThreshold Failure threshold for livenessProbe
652
## @param redis.livenessProbe.successThreshold Success threshold for livenessProbe
653
##
654
livenessProbe:
655
enabled: true
656
initialDelaySeconds: 5
657
periodSeconds: 5
658
timeoutSeconds: 5
659
successThreshold: 1
660
failureThreshold: 5
661
## Configure extra options for Redis&reg; readiness probes
662
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
663
## @param redis.readinessProbe.enabled Enable readinessProbe
664
## @param redis.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
665
## @param redis.readinessProbe.periodSeconds Period seconds for readinessProbe
666
## @param redis.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
667
## @param redis.readinessProbe.failureThreshold Failure threshold for readinessProbe
668
## @param redis.readinessProbe.successThreshold Success threshold for readinessProbe
669
##
670
readinessProbe:
671
enabled: true
672
initialDelaySeconds: 5
673
periodSeconds: 5
674
timeoutSeconds: 1
675
successThreshold: 1
676
failureThreshold: 5
677
## @param redis.startupProbe.enabled Enable startupProbe
678
## @param redis.startupProbe.path Path to check for startupProbe
679
## @param redis.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
680
## @param redis.startupProbe.periodSeconds Period seconds for startupProbe
681
## @param redis.startupProbe.timeoutSeconds Timeout seconds for startupProbe
682
## @param redis.startupProbe.failureThreshold Failure threshold for startupProbe
683
## @param redis.startupProbe.successThreshold Success threshold for startupProbe
684
##
685
startupProbe:
686
enabled: false
687
path: /
688
initialDelaySeconds: 300
689
periodSeconds: 10
690
timeoutSeconds: 5
691
failureThreshold: 6
692
successThreshold: 1
693
## @param redis.podAffinityPreset Redis&reg; pod affinity preset. Ignored if `redis.affinity` is set. Allowed values: `soft` or `hard`
694
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
695
##
696
podAffinityPreset: ""
697
## @param redis.podAntiAffinityPreset Redis&reg; pod anti-affinity preset. Ignored if `redis.affinity` is set. Allowed values: `soft` or `hard`
698
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
699
##
700
podAntiAffinityPreset: soft
701
## Redis&reg; node affinity preset
702
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
703
##
704
nodeAffinityPreset:
705
## @param redis.nodeAffinityPreset.type Redis&reg; node affinity preset type. Ignored if `redis.affinity` is set. Allowed values: `soft` or `hard`
706
##
707
type: ""
708
## @param redis.nodeAffinityPreset.key Redis&reg; node label key to match Ignored if `redis.affinity` is set.
709
## E.g.
710
## key: "kubernetes.io/e2e-az-name"
711
##
712
key: ""
713
## @param redis.nodeAffinityPreset.values Redis&reg; node label values to match. Ignored if `redis.affinity` is set.
714
## E.g.
715
## values:
716
## - e2e-az1
717
## - e2e-az2
718
##
719
values: []
720
## @param redis.affinity Affinity settings for Redis&reg; pod assignment
721
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
722
## Note: redis.podAffinityPreset, redis.podAntiAffinityPreset, and redis.nodeAffinityPreset will be ignored when it's set
723
##
724
affinity: {}
725
## @param redis.nodeSelector Node labels for Redis&reg; pods assignment
726
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
727
##
728
nodeSelector: {}
729
## @param redis.tolerations Tolerations for Redis&reg; pods assignment
730
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
731
##
732
tolerations: []
733
## @param redis.topologySpreadConstraints Pod topology spread constraints for Redis&reg; pod
734
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
735
## The value is evaluated as a template
736
##
737
topologySpreadConstraints: []
738
## @section Cluster update job parameters
739
##
740
741
## Cluster update job settings
742
##
743
updateJob:
744
## @param updateJob.activeDeadlineSeconds Number of seconds the Job to create the cluster will be waiting for the Nodes to be ready.
745
##
746
activeDeadlineSeconds: 600
747
## @param updateJob.command Container command (using container default if not set)
748
##
749
command: []
750
## @param updateJob.args Container args (using container default if not set)
751
##
752
args: []
753
## @param updateJob.automountServiceAccountToken Mount Service Account token in pod
754
##
755
automountServiceAccountToken: false
756
## @param updateJob.hostAliases Deployment pod host aliases
757
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
758
##
759
hostAliases: []
760
## @param updateJob.helmHook Job Helm hook
761
## https://helm.sh/docs/topics/charts_hooks/#the-available-hooks
762
##
763
helmHook: post-upgrade
764
## @param updateJob.annotations Job annotations
765
##
766
annotations: {}
767
## @param updateJob.podAnnotations Job pod annotations
768
##
769
podAnnotations: {}
770
## @param updateJob.podLabels Pod extra labels
771
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
772
##
773
podLabels: {}
774
## @param updateJob.extraEnvVars An array to add extra environment variables
775
## For example:
776
## - name: BEARER_AUTH
777
## value: true
778
##
779
extraEnvVars: []
780
## @param updateJob.extraEnvVarsCM ConfigMap containing extra environment variables
781
##
782
extraEnvVarsCM: ""
783
## @param updateJob.extraEnvVarsSecret Secret containing extra environment variables
784
##
785
extraEnvVarsSecret: ""
786
## @param updateJob.extraVolumes Extra volumes to add to the deployment
787
##
788
extraVolumes: []
789
## @param updateJob.extraVolumeMounts Extra volume mounts to add to the container
790
##
791
extraVolumeMounts: []
792
## @param updateJob.initContainers Extra init containers to add to the deployment
793
##
794
initContainers: []
795
## @param updateJob.podAffinityPreset Update job pod affinity preset. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
796
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
797
##
798
podAffinityPreset: ""
799
## @param updateJob.podAntiAffinityPreset Update job pod anti-affinity preset. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
800
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
801
##
802
podAntiAffinityPreset: soft
803
## Update job node affinity preset
804
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
805
##
806
nodeAffinityPreset:
807
## @param updateJob.nodeAffinityPreset.type Update job node affinity preset type. Ignored if `updateJob.affinity` is set. Allowed values: `soft` or `hard`
808
##
809
type: ""
810
## @param updateJob.nodeAffinityPreset.key Update job node label key to match Ignored if `updateJob.affinity` is set.
811
## E.g.
812
## key: "kubernetes.io/e2e-az-name"
813
##
814
key: ""
815
## @param updateJob.nodeAffinityPreset.values Update job node label values to match. Ignored if `updateJob.affinity` is set.
816
## E.g.
817
## values:
818
## - e2e-az1
819
## - e2e-az2
820
##
821
values: []
822
## @param updateJob.affinity Affinity for update job pods assignment
823
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
824
## Note: updateJob.podAffinityPreset, updateJob.podAntiAffinityPreset, and updateJob.nodeAffinityPreset will be ignored when it's set
825
##
826
affinity: {}
827
## @param updateJob.nodeSelector Node labels for update job pods assignment
828
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
829
##
830
nodeSelector: {}
831
## @param updateJob.tolerations Tolerations for update job pods assignment
832
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
833
##
834
tolerations: []
835
## @param updateJob.priorityClassName Priority class name
836
##
837
priorityClassName: ""
838
## Container resource requests and limits
839
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
840
## We usually recommend not to specify default resources and to leave this as a conscious
841
## choice for the user. This also increases chances charts run on environments with little
842
## resources, such as Minikube. If you do want to specify resources, uncomment the following
843
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
844
## @param updateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if updateJob.resources is set (updateJob.resources is recommended for production).
845
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
846
##
847
resourcesPreset: "nano"
848
## @param updateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
849
## Example:
850
## resources:
851
## requests:
852
## cpu: 2
853
## memory: 512Mi
854
## limits:
855
## cpu: 3
856
## memory: 1024Mi
857
##
858
resources: {}
859
## @section Cluster management parameters
860
##
861
862
## Redis(R) Cluster settings
863
##
864
cluster:
865
## @param cluster.init Enable the initialization of the Redis(R) Cluster
866
##
867
init: true
868
## Number of Redis&reg; nodes to be deployed
869
##
870
## Note:
871
## This is total number of nodes including the replicas. Meaning there will be 3 master and 3 replica
872
## nodes (as replica count is set to 1 by default, there will be 1 replica per master node).
873
## Hence, nodes = numberOfMasterNodes + numberOfMasterNodes * replicas
874
##
875
## @param cluster.nodes The number of master nodes should always be >= 3, otherwise cluster creation will fail
876
##
877
nodes: 6
878
## @param cluster.replicas Number of replicas for every master in the cluster
879
## Parameter to be passed as --cluster-replicas to the redis-cli --cluster create
880
## 1 means that we want a replica for every master created
881
##
882
replicas: 1
883
## @param cluster.busPortProtectedMode Refuse to start a cluster node whose bus port is unauthenticated (Redis 8.12+)
884
## Redis 8.12 and later refuse to start a cluster node when tls.enabled is false, unless this is
885
## set to false. Set it to false only when the cluster bus port is reachable by trusted hosts only,
886
## for example with networkPolicy.allowExternal=false. Prefer tls.enabled=true.
887
## Ignored by Redis versions older than 8.12.
888
## ref: https://github.com/redis/redis/pull/15722
889
##
890
busPortProtectedMode: true
891
## Configuration to access the Redis(R) Cluster from outside the Kubernetes cluster
892
##
893
externalAccess:
894
## @param cluster.externalAccess.enabled Enable access to the Redis
895
##
896
enabled: false
897
## @param cluster.externalAccess.hostMode Set cluster preferred endpoint type as hostname
898
## ref: https://github.com/redis/redis/pull/9530
899
##
900
hostMode: false
901
service:
902
## @param cluster.externalAccess.service.disableLoadBalancerIP Disable use of `Service.spec.loadBalancerIP`
903
##
904
disableLoadBalancerIP: false
905
## @param cluster.externalAccess.service.loadBalancerIPAnnotaion Name of annotation to specify fixed IP for service in. Disables `Service.spec.loadBalancerIP` if not empty
906
##
907
loadBalancerIPAnnotaion: ""
908
## @param cluster.externalAccess.service.type Type for the services used to expose every Pod
909
## At this moment only LoadBalancer is supported
910
##
911
type: LoadBalancer
912
## @param cluster.externalAccess.service.port Port for the services used to expose every Pod
913
##
914
port: 6379
915
## @param cluster.externalAccess.service.loadBalancerIP Array of load balancer IPs for each Redis&reg; node. Length must be the same as cluster.nodes
916
##
917
loadBalancerIP: []
918
## @param cluster.externalAccess.service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
919
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
920
##
921
loadBalancerClass: ""
922
## @param cluster.externalAccess.service.loadBalancerSourceRanges Service Load Balancer sources
923
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
924
## e.g:
925
## loadBalancerSourceRanges:
926
## - 10.10.10.0/24
927
##
928
loadBalancerSourceRanges: []
929
## @param cluster.externalAccess.service.annotations Annotations to add to the services used to expose every Pod of the Redis(R) Cluster
930
##
931
annotations: {}
932
## This section allows to update the Redis&reg; cluster nodes.
933
##
934
update:
935
## @param cluster.update.addNodes Boolean to specify if you want to add nodes after the upgrade
936
## Setting this to true a hook will add nodes to the Redis&reg; cluster after the upgrade. currentNumberOfNodes and currentNumberOfReplicas is required
937
##
938
addNodes: false
939
## @param cluster.update.currentNumberOfNodes Number of currently deployed Redis&reg; nodes
940
##
941
currentNumberOfNodes: 6
942
## @param cluster.update.currentNumberOfReplicas Number of currently deployed Redis&reg; replicas
943
##
944
currentNumberOfReplicas: 1
945
## @param cluster.update.newExternalIPs External IPs obtained from the services for the new nodes to add to the cluster
946
##
947
newExternalIPs: []
948
## @section Metrics sidecar parameters
949
##
950
951
## Prometheus Exporter / Metrics
952
##
953
metrics:
954
## @param metrics.enabled Start a side-car prometheus exporter
955
##
956
enabled: false
957
## @param metrics.image.registry [default: REGISTRY_NAME] Redis&reg; exporter image registry
958
## @param metrics.image.repository [default: REPOSITORY_NAME/redis-exporter] Redis&reg; exporter image name
959
## @skip metrics.image.tag Redis&reg; exporter image tag
960
## @param metrics.image.digest Redis&reg; exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
961
## @param metrics.image.pullPolicy Redis&reg; exporter image pull policy
962
## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
963
##
964
image:
965
registry: cgr.dev
966
repository: chainguard-private/prometheus-redis-exporter-iamguarded
967
tag: 1.99.0
968
digest: ""
969
pullPolicy: IfNotPresent
970
## Optionally specify an array of imagePullSecrets.
971
## Secrets must be manually created in the namespace.
972
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
973
## e.g:
974
## pullSecrets:
975
## - myRegistryKeySecretName
976
##
977
pullSecrets: []
978
## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
979
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
980
##
981
resourcesPreset: "nano"
982
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
983
## Example:
984
## resources:
985
## requests:
986
## cpu: 2
987
## memory: 512Mi
988
## limits:
989
## cpu: 3
990
## memory: 1024Mi
991
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
992
##
993
resources: {}
994
## @param metrics.extraArgs Extra arguments for the binary; possible values [here](https://github.com/oliver006/redis_exporter)
995
## extraArgs:
996
## check-keys: myKey,myOtherKey
997
##
998
extraArgs: {}
999
## @param metrics.extraEnvVars Array with extra environment variables to add to Redis&reg; exporter
1000
## e.g:
1001
# extraEnvVars:
1002
## - name: FOO
1003
## value: "bar"
1004
##
1005
extraEnvVars: []
1006
## @param metrics.containerPorts.http Metrics HTTP container port
1007
##
1008
containerPorts:
1009
http: 9121
1010
## @param metrics.podAnnotations [object] Additional annotations for Metrics exporter pod
1011
##
1012
podAnnotations:
1013
prometheus.io/scrape: "true"
1014
prometheus.io/port: "9121"
1015
## @param metrics.podLabels Additional labels for Metrics exporter pod
1016
##
1017
podLabels: {}
1018
## Containers' Security Context - All fields other than `enabled` get added to the metrics container's security context
1019
## @param metrics.containerSecurityContext.enabled Enabled containers' Security Context
1020
## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1021
## @param metrics.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1022
## @param metrics.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1023
## @param metrics.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1024
## @param metrics.containerSecurityContext.privileged Set container's Security Context privileged
1025
## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1026
## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1027
## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1028
## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1029
##
1030
containerSecurityContext:
1031
enabled: true
1032
seLinuxOptions: {}
1033
runAsUser: 1001
1034
runAsGroup: 1001
1035
runAsNonRoot: true
1036
privileged: false
1037
readOnlyRootFilesystem: true
1038
allowPrivilegeEscalation: false
1039
capabilities:
1040
drop: ["ALL"]
1041
seccompProfile:
1042
type: "RuntimeDefault"
1043
## Enable this if you're using https://github.com/coreos/prometheus-operator
1044
##
1045
serviceMonitor:
1046
## @param metrics.serviceMonitor.enabled If `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
1047
##
1048
enabled: false
1049
## @param metrics.serviceMonitor.namespace Optional namespace which Prometheus is running in
1050
##
1051
namespace: ""
1052
## @param metrics.serviceMonitor.interval How frequently to scrape metrics (use by default, falling back to Prometheus' default)
1053
##
1054
interval: ""
1055
## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
1056
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1057
## e.g:
1058
## scrapeTimeout: 10s
1059
##
1060
scrapeTimeout: ""
1061
## @param metrics.serviceMonitor.selector Prometheus instance selector labels
1062
## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/prometheus-operator#prometheus-configuration
1063
## e.g:
1064
## selector:
1065
## prometheus: my-prometheus
1066
##
1067
selector: {}
1068
## @param metrics.serviceMonitor.labels ServiceMonitor extra labels
1069
##
1070
labels: {}
1071
## @param metrics.serviceMonitor.annotations ServiceMonitor annotations
1072
##
1073
annotations: {}
1074
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1075
##
1076
jobLabel: ""
1077
## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1078
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1079
##
1080
relabelings: []
1081
## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1082
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1083
##
1084
metricRelabelings: []
1085
## Custom PrometheusRule to be defined
1086
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1087
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1088
## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
1089
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
1090
## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
1091
## @param metrics.prometheusRule.rules Create specified [rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/), check values for an example.
1092
##
1093
prometheusRule:
1094
enabled: false
1095
additionalLabels: {}
1096
namespace: ""
1097
## These are just examples rules, please adapt them to your needs.
1098
## Make sure to constraint the rules to the current postgresql service.
1099
## - alert: RedisDown
1100
## expr: redis_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
1101
## for: 2m
1102
## labels:
1103
## severity: error
1104
## annotations:
1105
## summary: Redis&reg; instance {{ "{{ $instance }}" }} down
1106
## description: Redis&reg; instance {{ "{{ $instance }}" }} is down.
1107
## - alert: RedisMemoryHigh
1108
## expr: >
1109
## redis_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
1110
## /
1111
## redis_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
1112
## > 90
1113
## for: 2m
1114
## labels:
1115
## severity: error
1116
## annotations:
1117
## summary: Redis&reg; instance {{ "{{ $instance }}" }} is using too much memory
1118
## description: Redis&reg; instance {{ "{{ $instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
1119
## - alert: RedisKeyEviction
1120
## expr: increase(redis_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
1121
## for: 1s
1122
## labels:
1123
## severity: error
1124
## annotations:
1125
## summary: Redis&reg; instance {{ "{{ $instance }}" }} has evicted keys
1126
## description: Redis&reg; instance {{ "{{ $instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
1127
##
1128
rules: []
1129
## @param metrics.priorityClassName Metrics exporter pod priorityClassName
1130
##
1131
priorityClassName: ""
1132
## @param metrics.service.type Kubernetes Service type (redis metrics)
1133
## @param metrics.service.loadBalancerIP Use serviceLoadBalancerIP to request a specific static IP, otherwise leave blank
1134
## @param metrics.service.loadBalancerClass Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1135
## @param metrics.service.annotations Annotations for the services to monitor.
1136
## @param metrics.service.labels Additional labels for the metrics service
1137
##
1138
service:
1139
type: ClusterIP
1140
ports:
1141
## @param metrics.service.ports.http Metrics HTTP service port
1142
##
1143
http: 9121
1144
## @param metrics.service.ports.appProtocol Metrics service appProtocol
1145
##
1146
appProtocol: ""
1147
## @param metrics.service.clusterIP Service Cluster IP
1148
## e.g.:
1149
## clusterIP: None
1150
##
1151
clusterIP: ""
1152
loadBalancerIP: ""
1153
loadBalancerClass: ""
1154
annotations: {}
1155
labels: {}
1156
## @section Sysctl Image parameters
1157
##
1158
1159
## Sysctl InitContainer
1160
## Used to perform sysctl operation to modify Kernel settings (needed sometimes to avoid warnings)
1161
##
1162
sysctlImage:
1163
## @param sysctlImage.enabled Enable an init container to modify Kernel settings
1164
##
1165
enabled: false
1166
## @param sysctlImage.command sysctlImage command to execute
1167
##
1168
command: []
1169
## @param sysctlImage.registry [default: REGISTRY_NAME] sysctlImage Init container registry
1170
## @param sysctlImage.repository [default: REPOSITORY_NAME/os-shell] sysctlImage Init container repository
1171
## @skip sysctlImage.tag sysctlImage Init container tag
1172
## @param sysctlImage.digest sysctlImage Init container digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1173
## @param sysctlImage.pullPolicy sysctlImage Init container pull policy
1174
## @param sysctlImage.pullSecrets Specify docker-registry secret names as an array
1175
##
1176
registry: cgr.dev
1177
repository: chainguard-private/os-shell-iamguarded
1178
tag: 1.0.0
1179
digest: ""
1180
pullPolicy: IfNotPresent
1181
## Optionally specify an array of imagePullSecrets.
1182
## Secrets must be manually created in the namespace.
1183
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1184
## e.g:
1185
## pullSecrets:
1186
## - myRegistryKeySecretName
1187
##
1188
pullSecrets: []
1189
## @param sysctlImage.mountHostSys Mount the host `/sys` folder to `/host-sys`
1190
##
1191
mountHostSys: false
1192
## Containers Security Context
1193
## @param sysctlImage.containerSecurityContext.enabled Enable Containers' Security Context
1194
## @param sysctlImage.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1195
## @param sysctlImage.containerSecurityContext.runAsUser User ID for the containers.
1196
## @param sysctlImage.containerSecurityContext.privileged Run privileged as privileged
1197
##
1198
containerSecurityContext:
1199
enabled: true
1200
seLinuxOptions: {}
1201
runAsUser: 0
1202
privileged: true
1203
## Container resource requests and limits
1204
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1205
## @param sysctlImage.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if sysctlImage.resources is set (sysctlImage.resources is recommended for production).
1206
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1207
##
1208
resourcesPreset: "nano"
1209
## @param sysctlImage.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1210
## Example:
1211
## resources:
1212
## requests:
1213
## cpu: 2
1214
## memory: 512Mi
1215
## limits:
1216
## cpu: 3
1217
## memory: 1024Mi
1218
##
1219
resources: {}
1220

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.