DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
etcd logoHELM

etcd

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 [array] Global Docker registry secret names as an array
19
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20
##
21
global:
22
imageRegistry: ""
23
useImageTags: false
24
## E.g.
25
## imagePullSecrets:
26
## - myRegistryKeySecretName
27
##
28
imagePullSecrets: []
29
defaultStorageClass: ""
30
## Security parameters
31
##
32
security:
33
## @param global.security.allowInsecureImages Allows skipping image verification
34
allowInsecureImages: false
35
## Compatibility adaptations for Kubernetes platforms
36
##
37
compatibility:
38
## Compatibility adaptations for Openshift
39
##
40
openshift:
41
## @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)
42
##
43
adaptSecurityContext: auto
44
org: ""
45
## @section Common parameters
46
##
47
48
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
49
##
50
kubeVersion: ""
51
## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
52
##
53
nameOverride: ""
54
## @param fullnameOverride String to fully override common.names.fullname template
55
##
56
fullnameOverride: ""
57
## @param namespaceOverride String to fully override common.names.namespace template
58
##
59
namespaceOverride: ""
60
## @param commonLabels [object] Labels to add to all deployed objects
61
##
62
commonLabels: {}
63
## @param commonAnnotations [object] Annotations to add to all deployed objects
64
##
65
commonAnnotations: {}
66
## @param clusterDomain Default Kubernetes cluster domain
67
##
68
clusterDomain: cluster.local
69
## @param extraDeploy [array] Array of extra objects to deploy with the release
70
##
71
extraDeploy: []
72
## @param usePasswordFiles Mount credentials as files instead of using environment variables
73
##
74
usePasswordFiles: true
75
## Enable diagnostic mode in the deployment
76
##
77
diagnosticMode:
78
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
79
##
80
enabled: false
81
## @param diagnosticMode.command Command to override all containers in the deployment
82
##
83
command:
84
- sleep
85
## @param diagnosticMode.args Args to override all containers in the deployment
86
##
87
args:
88
- infinity
89
## @section etcd parameters
90
##
91
92
## Iamguarded etcd image version
93
## ref: https://hub.docker.com/r/iamguarded/etcd/tags/
94
## @param image.registry [default: REGISTRY_NAME] etcd image registry
95
## @param image.repository [default: REPOSITORY_NAME/etcd] etcd image name
96
## @skip image.tag etcd image tag
97
## @param image.digest etcd image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
98
##
99
image:
100
registry: cgr.dev
101
repository: chainguard-private/etcd-iamguarded
102
tag: 3.7.4
103
digest: ""
104
## @param image.pullPolicy etcd image pull policy
105
## Specify a imagePullPolicy
106
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
107
##
108
pullPolicy: IfNotPresent
109
## @param image.pullSecrets [array] etcd image pull secrets
110
## Optionally specify an array of imagePullSecrets.
111
## Secrets must be manually created in the namespace.
112
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
113
## e.g:
114
## pullSecrets:
115
## - myRegistryKeySecretName
116
##
117
pullSecrets: []
118
## @param image.debug Enable image debug mode
119
## Set to true if you would like to see extra information on logs
120
##
121
debug: false
122
## Authentication parameters
123
##
124
auth:
125
## Role-based access control parameters
126
## ref: https://etcd.io/docs/current/op-guide/authentication/
127
##
128
rbac:
129
## @param auth.rbac.create Switch to enable RBAC authentication
130
##
131
create: true
132
## @param auth.rbac.allowNoneAuthentication Allow to use etcd without configuring RBAC authentication
133
##
134
allowNoneAuthentication: true
135
## @param auth.rbac.rootPassword Root user password. The root user is always `root`
136
##
137
rootPassword: ""
138
## @param auth.rbac.existingSecret Name of the existing secret containing credentials for the root user
139
##
140
existingSecret: ""
141
## @param auth.rbac.existingSecretPasswordKey Name of key containing password to be retrieved from the existing secret
142
##
143
existingSecretPasswordKey: ""
144
## Authentication token
145
## ref: https://etcd.io/docs/latest/learning/design-auth-v3/#two-types-of-tokens-simple-and-jwt
146
##
147
token:
148
## @param auth.token.enabled Enables token authentication
149
##
150
enabled: true
151
## @param auth.token.type Authentication token type. Allowed values: 'simple' or 'jwt'
152
## ref: https://etcd.io/docs/latest/op-guide/configuration/#--auth-token
153
##
154
type: jwt
155
## @param auth.token.privateKey.filename Name of the file containing the private key for signing the JWT token
156
## @param auth.token.privateKey.existingSecret Name of the existing secret containing the private key for signing the JWT token
157
## NOTE: Ignored if auth.token.type=simple
158
## NOTE: A secret containing a private key will be auto-generated if an existing one is not provided.
159
##
160
privateKey:
161
filename: jwt-token.pem
162
existingSecret: ""
163
## @param auth.token.signMethod JWT token sign method
164
## NOTE: Ignored if auth.token.type=simple
165
##
166
signMethod: RS256
167
## @param auth.token.ttl JWT token TTL
168
## NOTE: Ignored if auth.token.type=simple
169
##
170
ttl: 10m
171
## TLS authentication for client-to-server communications
172
## ref: https://etcd.io/docs/current/op-guide/security/
173
##
174
client:
175
## @param auth.client.secureTransport Switch to encrypt client-to-server communications using TLS certificates
176
##
177
secureTransport: false
178
## @param auth.client.useAutoTLS Switch to automatically create the TLS certificates
179
##
180
useAutoTLS: false
181
## @param auth.client.existingSecret Name of the existing secret containing the TLS certificates for client-to-server communications
182
##
183
existingSecret: ""
184
## @param auth.client.enableAuthentication Switch to enable host authentication using TLS certificates. Requires existing secret
185
##
186
enableAuthentication: false
187
## @param auth.client.certFilename Name of the file containing the client certificate
188
##
189
certFilename: cert.pem
190
## @param auth.client.certKeyFilename Name of the file containing the client certificate private key
191
##
192
certKeyFilename: key.pem
193
## @param auth.client.caFilename Name of the file containing the client CA certificate
194
## If not specified and `auth.client.enableAuthentication=true` or `auth.rbac.enabled=true`, the default is is `ca.crt`
195
##
196
caFilename: ""
197
## TLS authentication for server-to-server communications
198
## ref: https://etcd.io/docs/current/op-guide/security/
199
##
200
peer:
201
## @param auth.peer.secureTransport Switch to encrypt server-to-server communications using TLS certificates
202
##
203
secureTransport: false
204
## @param auth.peer.useAutoTLS Switch to automatically create the TLS certificates
205
##
206
useAutoTLS: false
207
## @param auth.peer.existingSecret Name of the existing secret containing the TLS certificates for server-to-server communications
208
##
209
existingSecret: ""
210
## @param auth.peer.enableAuthentication Switch to enable host authentication using TLS certificates. Requires existing secret
211
##
212
enableAuthentication: false
213
## @param auth.peer.certFilename Name of the file containing the peer certificate
214
##
215
certFilename: cert.pem
216
## @param auth.peer.certKeyFilename Name of the file containing the peer certificate private key
217
##
218
certKeyFilename: key.pem
219
## @param auth.peer.caFilename Name of the file containing the peer CA certificate
220
## If not specified and `auth.peer.enableAuthentication=true` or `rbac.enabled=true`, the default is is `ca.crt`
221
##
222
caFilename: ""
223
## @param autoCompactionMode Auto compaction mode, by default periodic. Valid values: "periodic", "revision".
224
## - 'periodic' for duration based retention, defaulting to hours if no time unit is provided (e.g. 5m).
225
## - 'revision' for revision number based retention.
226
##
227
autoCompactionMode: ""
228
## @param autoCompactionRetention Auto compaction retention for mvcc key value store in hour, by default 0, means disabled
229
##
230
autoCompactionRetention: ""
231
## @param initialClusterToken Initial cluster token. Can be used to protect etcd from cross-cluster-interaction, which might corrupt the clusters.
232
## If spinning up multiple clusters (or creating and destroying a single cluster)
233
## with same configuration for testing purpose, it is highly recommended that each cluster is given a unique initial-cluster-token.
234
## By doing this, etcd can generate unique cluster IDs and member IDs for the clusters even if they otherwise have the exact same configuration.
235
##
236
initialClusterToken: "etcd-cluster-k8s"
237
## @param logLevel Sets the log level for the etcd process. Allowed values: 'debug', 'info', 'warn', 'error', 'panic', 'fatal'
238
##
239
logLevel: "info"
240
## @param maxProcs Limits the number of operating system threads that can execute user-level
241
## Go code simultaneously by setting GOMAXPROCS environment variable
242
## ref: https://golang.org/pkg/runtime
243
##
244
maxProcs: ""
245
## @param configuration etcd configuration. Specify content for etcd.conf.yml
246
## e.g:
247
## configuration: |-
248
## foo: bar
249
## baz:
250
##
251
configuration: ""
252
## @param existingConfigmap Existing ConfigMap with etcd configuration
253
## NOTE: When it's set the configuration parameter is ignored
254
##
255
existingConfigmap: ""
256
## @param extraEnvVars [array] Extra environment variables to be set on etcd container
257
## e.g:
258
## extraEnvVars:
259
## - name: FOO
260
## value: "bar"
261
##
262
extraEnvVars: []
263
## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
264
##
265
extraEnvVarsCM: ""
266
## @param extraEnvVarsSecret Name of existing Secret containing extra env vars
267
##
268
extraEnvVarsSecret: ""
269
## @param command [array] Default container command (useful when using custom images)
270
##
271
command: []
272
## @param args [array] Default container args (useful when using custom images)
273
##
274
args: []
275
## @section etcd statefulset parameters
276
##
277
278
## @param replicaCount Number of etcd replicas to deploy
279
##
280
replicaCount: 1
281
## Update strategy
282
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
283
## @param updateStrategy.type Update strategy type, can be set to RollingUpdate or OnDelete.
284
##
285
updateStrategy:
286
type: RollingUpdate
287
## @param podManagementPolicy Pod management policy for the etcd statefulset
288
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
289
##
290
podManagementPolicy: Parallel
291
## @param automountServiceAccountToken Mount Service Account token in pod
292
##
293
automountServiceAccountToken: false
294
## @param hostAliases [array] etcd pod host aliases
295
## ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
296
##
297
hostAliases: []
298
## @param lifecycleHooks [object] Override default etcd container hooks
299
##
300
lifecycleHooks: {}
301
## etcd container ports to open
302
## @param containerPorts.client Client port to expose at container level
303
## @param containerPorts.peer Peer port to expose at container level
304
## @param containerPorts.metrics Metrics port to expose at container level when metrics.useSeparateEndpoint is true
305
##
306
containerPorts:
307
client: 2379
308
peer: 2380
309
metrics: 9090
310
## etcd pods' Security Context
311
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
312
## @param podSecurityContext.enabled Enabled etcd pods' Security Context
313
## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
314
## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
315
## @param podSecurityContext.supplementalGroups Set filesystem extra groups
316
## @param podSecurityContext.fsGroup Set etcd pod's Security Context fsGroup
317
##
318
podSecurityContext:
319
enabled: true
320
fsGroupChangePolicy: Always
321
sysctls: []
322
supplementalGroups: []
323
fsGroup: 1001
324
## etcd containers' SecurityContext
325
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
326
## @param containerSecurityContext.enabled Enabled etcd containers' Security Context
327
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
328
## @param containerSecurityContext.runAsUser Set etcd containers' Security Context runAsUser
329
## @param containerSecurityContext.runAsGroup Set etcd containers' Security Context runAsUser
330
## @param containerSecurityContext.runAsNonRoot Set Controller container's Security Context runAsNonRoot
331
## @param containerSecurityContext.privileged Set primary container's Security Context privileged
332
## @param containerSecurityContext.allowPrivilegeEscalation Set primary container's Security Context allowPrivilegeEscalation
333
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
334
## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
335
## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
336
##
337
containerSecurityContext:
338
enabled: true
339
seLinuxOptions: {}
340
runAsUser: 1001
341
runAsGroup: 1001
342
runAsNonRoot: true
343
privileged: false
344
allowPrivilegeEscalation: false
345
readOnlyRootFilesystem: true
346
capabilities:
347
drop: ["ALL"]
348
seccompProfile:
349
type: "RuntimeDefault"
350
## etcd containers' resource requests and limits
351
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
352
## We usually recommend not to specify default resources and to leave this as a conscious
353
## choice for the user. This also increases chances charts run on environments with little
354
## resources, such as Minikube. If you do want to specify resources, uncomment the following
355
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
356
## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
357
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
358
##
359
resourcesPreset: "micro"
360
## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
361
## Example:
362
## resources:
363
## requests:
364
## cpu: 2
365
## memory: 512Mi
366
## limits:
367
## cpu: 3
368
## memory: 1024Mi
369
##
370
resources: {}
371
## Configure extra options for liveness probe
372
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
373
## @param livenessProbe.enabled Enable livenessProbe
374
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
375
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
376
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
377
## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
378
## @param livenessProbe.successThreshold Success threshold for livenessProbe
379
##
380
livenessProbe:
381
enabled: true
382
initialDelaySeconds: 60
383
periodSeconds: 30
384
timeoutSeconds: 5
385
successThreshold: 1
386
failureThreshold: 5
387
## Configure extra options for readiness probe
388
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
389
## @param readinessProbe.enabled Enable readinessProbe
390
## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
391
## @param readinessProbe.periodSeconds Period seconds for readinessProbe
392
## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
393
## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
394
## @param readinessProbe.successThreshold Success threshold for readinessProbe
395
##
396
readinessProbe:
397
enabled: true
398
initialDelaySeconds: 60
399
periodSeconds: 10
400
timeoutSeconds: 5
401
successThreshold: 1
402
failureThreshold: 5
403
## Configure extra options for liveness probe
404
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
405
## @param startupProbe.enabled Enable startupProbe
406
## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
407
## @param startupProbe.periodSeconds Period seconds for startupProbe
408
## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
409
## @param startupProbe.failureThreshold Failure threshold for startupProbe
410
## @param startupProbe.successThreshold Success threshold for startupProbe
411
##
412
startupProbe:
413
enabled: false
414
initialDelaySeconds: 0
415
periodSeconds: 10
416
timeoutSeconds: 5
417
successThreshold: 1
418
failureThreshold: 60
419
## @param customLivenessProbe [object] Override default liveness probe
420
##
421
customLivenessProbe: {}
422
## @param customReadinessProbe [object] Override default readiness probe
423
##
424
customReadinessProbe: {}
425
## @param customStartupProbe [object] Override default startup probe
426
##
427
customStartupProbe: {}
428
## @param extraVolumes [array] Optionally specify extra list of additional volumes for etcd pods
429
##
430
extraVolumes: []
431
## @param extraVolumeMounts [array] Optionally specify extra list of additional volumeMounts for etcd container(s)
432
##
433
extraVolumeMounts: []
434
## @param extraVolumeClaimTemplates [array] Optionally specify extra list of additional volumeClaimTemplates for etcd container(s)
435
##
436
extraVolumeClaimTemplates: []
437
## @param initContainers [array] Add additional init containers to the etcd pods
438
## e.g:
439
## initContainers:
440
## - name: your-image-name
441
## image: your-image
442
## imagePullPolicy: Always
443
## ports:
444
## - name: portname
445
## containerPort: 1234
446
##
447
initContainers: []
448
## @param sidecars [array] Add additional sidecar containers to the etcd pods
449
## e.g:
450
## sidecars:
451
## - name: your-image-name
452
## image: your-image
453
## imagePullPolicy: Always
454
## ports:
455
## - name: portname
456
## containerPort: 1234
457
##
458
sidecars: []
459
## @param podAnnotations [object] Annotations for etcd pods
460
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
461
##
462
podAnnotations: {}
463
## @param podLabels [object] Extra labels for etcd pods
464
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
465
##
466
podLabels: {}
467
## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
468
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
469
##
470
podAffinityPreset: ""
471
## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
472
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
473
##
474
podAntiAffinityPreset: soft
475
## Node affinity preset
476
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
477
## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
478
## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set.
479
## @param nodeAffinityPreset.values [array] Node label values to match. Ignored if `affinity` is set.
480
##
481
nodeAffinityPreset:
482
type: ""
483
## e.g:
484
## key: "kubernetes.io/e2e-az-name"
485
##
486
key: ""
487
## e.g:
488
## values:
489
## - e2e-az1
490
## - e2e-az2
491
##
492
values: []
493
## @param affinity [object] Affinity for pod assignment
494
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
495
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
496
##
497
affinity: {}
498
## @param nodeSelector [object] Node labels for pod assignment
499
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
500
##
501
nodeSelector: {}
502
## @param tolerations [array] Tolerations for pod assignment
503
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
504
##
505
tolerations: []
506
## @param terminationGracePeriodSeconds Seconds the pod needs to gracefully terminate
507
## ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
508
##
509
terminationGracePeriodSeconds: ""
510
## @param schedulerName Name of the k8s scheduler (other than default)
511
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
512
##
513
schedulerName: ""
514
## @param priorityClassName Name of the priority class to be used by etcd pods
515
## Priority class needs to be created beforehand
516
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
517
##
518
priorityClassName: ""
519
## @param runtimeClassName Name of the runtime class to be used by pod(s)
520
## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
521
##
522
runtimeClassName: ""
523
## @param shareProcessNamespace Enable shared process namespace in a pod.
524
## If set to false (default), each container will run in separate namespace, etcd will have PID=1.
525
## If set to true, the /pause will run as init process and will reap any zombie PIDs,
526
## for example, generated by a custom exec probe running longer than a probe timeoutSeconds.
527
## Enable this only if customLivenessProbe or customReadinessProbe is used and zombie PIDs are accumulating.
528
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
529
##
530
shareProcessNamespace: false
531
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
532
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
533
## The value is evaluated as a template
534
##
535
topologySpreadConstraints: []
536
## persistentVolumeClaimRetentionPolicy
537
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
538
## @param persistentVolumeClaimRetentionPolicy.enabled Controls if and how PVCs are deleted during the lifecycle of a StatefulSet
539
## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
540
## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
541
persistentVolumeClaimRetentionPolicy:
542
enabled: false
543
whenScaled: Retain
544
whenDeleted: Retain
545
## @section Traffic exposure parameters
546
##
547
548
service:
549
## @param service.type Kubernetes Service type
550
##
551
type: ClusterIP
552
## @param service.enabled create second service if equal true
553
##
554
enabled: true
555
## @param service.clusterIP Kubernetes service Cluster IP
556
## e.g.:
557
## clusterIP: None
558
##
559
clusterIP: ""
560
## @param service.ports.client etcd client port
561
## @param service.ports.peer etcd peer port
562
## @param service.ports.metrics etcd metrics port when metrics.useSeparateEndpoint is true
563
##
564
ports:
565
client: 2379
566
peer: 2380
567
metrics: 9090
568
## @param service.nodePorts.client Specify the nodePort client value for the LoadBalancer and NodePort service types.
569
## @param service.nodePorts.peer Specify the nodePort peer value for the LoadBalancer and NodePort service types.
570
## @param service.nodePorts.metrics Specify the nodePort metrics value for the LoadBalancer and NodePort service types. The metrics port is only exposed when metrics.useSeparateEndpoint is true.
571
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
572
##
573
nodePorts:
574
client: ""
575
peer: ""
576
metrics: ""
577
## @param service.clientPortNameOverride etcd client port name override
578
##
579
clientPortNameOverride: ""
580
## @param service.peerPortNameOverride etcd peer port name override
581
##
582
peerPortNameOverride: ""
583
## @param service.metricsPortNameOverride etcd metrics port name override. The metrics port is only exposed when metrics.useSeparateEndpoint is true.
584
##
585
metricsPortNameOverride: ""
586
## @param service.loadBalancerIP loadBalancerIP for the etcd service (optional, cloud specific)
587
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
588
##
589
loadBalancerIP: ""
590
## @param service.loadBalancerClass loadBalancerClass for the etcd service (optional, cloud specific)
591
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
592
##
593
loadBalancerClass: ""
594
## @param service.loadBalancerSourceRanges [array] Load Balancer source ranges
595
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
596
## e.g:
597
## loadBalancerSourceRanges:
598
## - 10.10.10.0/24
599
##
600
loadBalancerSourceRanges: []
601
## @param service.externalIPs [array] External IPs
602
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
603
##
604
externalIPs: []
605
## @param service.externalTrafficPolicy %%MAIN_CONTAINER_NAME%% service external traffic policy
606
## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
607
##
608
externalTrafficPolicy: Cluster
609
## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
610
##
611
extraPorts: []
612
## @param service.annotations [object] Additional annotations for the etcd service
613
##
614
annotations: {}
615
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
616
## If "ClientIP", consecutive client requests will be directed to the same Pod
617
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
618
##
619
sessionAffinity: None
620
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
621
## sessionAffinityConfig:
622
## clientIP:
623
## timeoutSeconds: 300
624
##
625
sessionAffinityConfig: {}
626
## Headless service properties
627
##
628
headless:
629
## @param service.headless.annotations Annotations for the headless service.
630
##
631
annotations: {}
632
## @section Persistence parameters
633
##
634
635
## Enable persistence using Persistent Volume Claims
636
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
637
##
638
persistence:
639
## @param persistence.enabled If true, use a Persistent Volume Claim. If false, use emptyDir.
640
##
641
enabled: true
642
## @param persistence.storageClass Persistent Volume Storage Class
643
## If defined, storageClassName: <storageClass>
644
## If set to "-", storageClassName: "", which disables dynamic provisioning
645
## If undefined (the default) or set to null, no storageClassName spec is
646
## set, choosing the default provisioner. (gp2 on AWS, standard on
647
## GKE, AWS & OpenStack)
648
##
649
storageClass: ""
650
##
651
## @param persistence.annotations [object] Annotations for the PVC
652
##
653
annotations: {}
654
## @param persistence.labels [object] Labels for the PVC
655
##
656
labels: {}
657
## @param persistence.accessModes Persistent Volume Access Modes
658
##
659
accessModes:
660
- ReadWriteOnce
661
## @param persistence.size PVC Storage Request for etcd data volume
662
##
663
size: 8Gi
664
## @param persistence.selector [object] Selector to match an existing Persistent Volume
665
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
666
##
667
selector: {}
668
## @section Volume Permissions parameters
669
##
670
671
## Init containers parameters:
672
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
673
##
674
volumePermissions:
675
## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
676
##
677
enabled: false
678
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
679
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
680
## @skip volumePermissions.image.tag Init container volume-permissions image tag
681
## @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
682
##
683
image:
684
registry: cgr.dev
685
repository: chainguard-private/os-shell-iamguarded
686
tag: 1.0.0
687
digest: ""
688
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
689
##
690
pullPolicy: IfNotPresent
691
## @param volumePermissions.image.pullSecrets [array] Specify docker-registry secret names as an array
692
## Optionally specify an array of imagePullSecrets.
693
## Secrets must be manually created in the namespace.
694
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
695
## e.g:
696
## pullSecrets:
697
## - myRegistryKeySecretName
698
##
699
pullSecrets: []
700
## Init container' resource requests and limits
701
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
702
## We usually recommend not to specify default resources and to leave this as a conscious
703
## choice for the user. This also increases chances charts run on environments with little
704
## resources, such as Minikube. If you do want to specify resources, uncomment the following
705
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
706
## @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).
707
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
708
##
709
resourcesPreset: "nano"
710
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
711
## Example:
712
## resources:
713
## requests:
714
## cpu: 2
715
## memory: 512Mi
716
## limits:
717
## cpu: 3
718
## memory: 1024Mi
719
##
720
resources: {}
721
## @section Network Policy parameters
722
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
723
##
724
networkPolicy:
725
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
726
##
727
enabled: true
728
## @param networkPolicy.allowExternal Don't require client label for connections
729
## When set to false, only pods with the correct client label will have network access to the ports
730
## etcd is listening on. When true, etcd will accept connections from any source
731
## (with the correct destination port).
732
##
733
allowExternal: true
734
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
735
##
736
allowExternalEgress: true
737
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
738
## e.g:
739
## extraIngress:
740
## - ports:
741
## - port: 1234
742
## from:
743
## - podSelector:
744
## - matchLabels:
745
## - role: frontend
746
## - podSelector:
747
## - matchExpressions:
748
## - key: role
749
## operator: In
750
## values:
751
## - frontend
752
##
753
extraIngress: []
754
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
755
## e.g:
756
## extraEgress:
757
## - ports:
758
## - port: 1234
759
## to:
760
## - podSelector:
761
## - matchLabels:
762
## - role: frontend
763
## - podSelector:
764
## - matchExpressions:
765
## - key: role
766
## operator: In
767
## values:
768
## - frontend
769
##
770
extraEgress: []
771
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
772
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
773
##
774
ingressNSMatchLabels: {}
775
ingressNSPodMatchLabels: {}
776
## @section Metrics parameters
777
##
778
metrics:
779
## @param metrics.enabled Expose etcd metrics
780
##
781
enabled: false
782
## @param metrics.useSeparateEndpoint Use a separate endpoint for exposing metrics
783
#
784
useSeparateEndpoint: false
785
## @param metrics.podAnnotations [object] Annotations for the Prometheus metrics on etcd pods
786
##
787
podAnnotations:
788
prometheus.io/scrape: "true"
789
prometheus.io/port: "{{ .Values.metrics.useSeparateEndpoint | ternary .Values.containerPorts.metrics .Values.containerPorts.client }}"
790
## Prometheus Service Monitor
791
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
792
##
793
podMonitor:
794
## @param metrics.podMonitor.enabled Create PodMonitor Resource for scraping metrics using PrometheusOperator
795
##
796
enabled: false
797
## @param metrics.podMonitor.namespace Namespace in which Prometheus is running
798
##
799
namespace: monitoring
800
## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
801
##
802
interval: 30s
803
## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
804
##
805
scrapeTimeout: 30s
806
## @param metrics.podMonitor.additionalLabels [object] Additional labels that can be used so PodMonitors will be discovered by Prometheus
807
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
808
##
809
additionalLabels: {}
810
## @param metrics.podMonitor.scheme Scheme to use for scraping
811
##
812
scheme: http
813
## @param metrics.podMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
814
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
815
## e.g:
816
## tlsConfig:
817
## ca:
818
## secret:
819
## name: existingSecretName
820
##
821
tlsConfig: {}
822
## @param metrics.podMonitor.relabelings [array] Prometheus relabeling rules
823
##
824
relabelings: []
825
## Prometheus Operator PrometheusRule configuration
826
##
827
prometheusRule:
828
## @param metrics.prometheusRule.enabled Create a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
829
##
830
enabled: false
831
## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
832
##
833
namespace: ""
834
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
835
##
836
additionalLabels: {}
837
## @param metrics.prometheusRule.rules Prometheus Rule definitions
838
# - alert: ETCD has no leader
839
# annotations:
840
# summary: "ETCD has no leader"
841
# description: "pod {{`{{`}} $labels.pod {{`}}`}} state error, can't connect leader"
842
# for: 1m
843
# expr: etcd_server_has_leader == 0
844
# labels:
845
# severity: critical
846
# group: PaaS
847
##
848
rules: []
849
## @section Snapshotting parameters
850
##
851
852
## Start a new etcd cluster recovering the data from an existing snapshot before bootstrapping
853
##
854
startFromSnapshot:
855
## @param startFromSnapshot.enabled Initialize new cluster recovering an existing snapshot
856
##
857
enabled: false
858
## @param startFromSnapshot.existingClaim Existing PVC containing the etcd snapshot
859
##
860
existingClaim: ""
861
## @param startFromSnapshot.snapshotFilename Snapshot filename
862
##
863
snapshotFilename: ""
864
## Enable auto disaster recovery by periodically snapshotting the keyspace:
865
## - It creates a cronjob to periodically snapshotting the keyspace
866
## - It also creates a ReadWriteMany PVC to store the snapshots
867
## If the cluster permanently loses more than (N-1)/2 members, it tries to
868
## recover itself from the last available snapshot.
869
##
870
disasterRecovery:
871
## @param disasterRecovery.enabled Enable auto disaster recovery by periodically snapshotting the keyspace
872
##
873
enabled: false
874
cronjob:
875
## @param disasterRecovery.cronjob.schedule Schedule in Cron format to save snapshots
876
## See https://en.wikipedia.org/wiki/Cron
877
##
878
schedule: "*/30 * * * *"
879
## @param disasterRecovery.cronjob.historyLimit Number of successful finished jobs to retain
880
##
881
historyLimit: 1
882
## @param disasterRecovery.cronjob.snapshotHistoryLimit Number of etcd snapshots to retain, tagged by date
883
##
884
snapshotHistoryLimit: 1
885
## @param disasterRecovery.cronjob.snapshotsDir Directory to store snapshots
886
##
887
snapshotsDir: "/snapshots"
888
## @param disasterRecovery.cronjob.podAnnotations [object] Pod annotations for cronjob pods
889
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
890
##
891
podAnnotations: {}
892
## K8s Security Context for Snapshotter cronjob pods
893
## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
894
## @param disasterRecovery.cronjob.podSecurityContext.enabled Enable security context for Snapshotter pods
895
## @param disasterRecovery.cronjob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
896
## @param disasterRecovery.cronjob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
897
## @param disasterRecovery.cronjob.podSecurityContext.supplementalGroups Set filesystem extra groups
898
## @param disasterRecovery.cronjob.podSecurityContext.fsGroup Group ID for the Snapshotter filesystem
899
##
900
podSecurityContext:
901
enabled: true
902
fsGroupChangePolicy: Always
903
sysctls: []
904
supplementalGroups: []
905
fsGroup: 1001
906
## Configure container security context for Snapshotter cronjob containers
907
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
908
## @param disasterRecovery.cronjob.containerSecurityContext.enabled Enabled containers' Security Context
909
## @param disasterRecovery.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
910
## @param disasterRecovery.cronjob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
911
## @param disasterRecovery.cronjob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
912
## @param disasterRecovery.cronjob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
913
## @param disasterRecovery.cronjob.containerSecurityContext.privileged Set container's Security Context privileged
914
## @param disasterRecovery.cronjob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
915
## @param disasterRecovery.cronjob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
916
## @param disasterRecovery.cronjob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
917
## @param disasterRecovery.cronjob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
918
##
919
containerSecurityContext:
920
enabled: true
921
seLinuxOptions: {}
922
runAsUser: 1001
923
runAsGroup: 1001
924
runAsNonRoot: true
925
privileged: false
926
readOnlyRootFilesystem: true
927
allowPrivilegeEscalation: false
928
capabilities:
929
drop: ["ALL"]
930
seccompProfile:
931
type: "RuntimeDefault"
932
## Configure resource requests and limits for snapshotter containers
933
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
934
## We usually recommend not to specify default resources and to leave this as a conscious
935
## choice for the user. This also increases chances charts run on environments with little
936
## resources, such as Minikube. If you do want to specify resources, uncomment the following
937
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
938
## @param disasterRecovery.cronjob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if disasterRecovery.cronjob.resources is set (disasterRecovery.cronjob.resources is recommended for production).
939
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
940
##
941
resourcesPreset: "nano"
942
## @param disasterRecovery.cronjob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
943
## Example:
944
## resources:
945
## requests:
946
## cpu: 2
947
## memory: 512Mi
948
## limits:
949
## cpu: 3
950
## memory: 1024Mi
951
##
952
resources: {}
953
## @param disasterRecovery.cronjob.nodeSelector Node labels for cronjob pods assignment
954
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
955
##
956
nodeSelector: {}
957
## @param disasterRecovery.cronjob.tolerations Tolerations for cronjob pods assignment
958
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
959
##
960
tolerations: []
961
## @param disasterRecovery.cronjob.podLabels [object] Labels that will be added to pods created by cronjob
962
##
963
podLabels: {}
964
## @param disasterRecovery.cronjob.serviceAccountName Specifies the service account to use for disaster recovery cronjob
965
##
966
serviceAccountName: ""
967
## @param disasterRecovery.cronjob.command Override default snapshot container command (useful when you want to customize the snapshot logic)
968
##
969
command: []
970
##
971
pvc:
972
## @param disasterRecovery.pvc.existingClaim A manually managed Persistent Volume and Claim
973
## If defined, PVC must be created manually before volume will be bound
974
## The value is evaluated as a template, so, for example, the name can depend on .Release or .Chart
975
##
976
existingClaim: ""
977
## @param disasterRecovery.pvc.size PVC Storage Request
978
##
979
size: 2Gi
980
## @param disasterRecovery.pvc.storageClassName Storage Class for snapshots volume
981
##
982
storageClassName: nfs
983
## @param disasterRecovery.pvc.subPath Path within the volume from which to mount
984
## Useful if snapshots should only be stored in a subdirectory of the volume
985
##
986
subPath: ""
987
## @section Service account parameters
988
##
989
serviceAccount:
990
## @param serviceAccount.create Enable/disable service account creation
991
##
992
create: true
993
## @param serviceAccount.name Name of the service account to create or use
994
##
995
name: ""
996
## @param serviceAccount.automountServiceAccountToken Enable/disable auto mounting of service account token
997
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
998
##
999
automountServiceAccountToken: false
1000
## @param serviceAccount.annotations [object] Additional annotations to be included on the service account
1001
##
1002
annotations: {}
1003
## @param serviceAccount.labels [object] Additional labels to be included on the service account
1004
##
1005
labels: {}
1006
## @section etcd "pre-upgrade" K8s Job parameters
1007
##
1008
preUpgradeJob:
1009
## @param preUpgradeJob.enabled Enable running a pre-upgrade job on Helm upgrades that removes obsolete members
1010
##
1011
enabled: true
1012
## @param preUpgradeJob.annotations [object] Add annotations to the etcd "pre-upgrade" job
1013
##
1014
annotations: {}
1015
## @param preUpgradeJob.podLabels Additional pod labels for etcd "pre-upgrade" job
1016
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1017
##
1018
podLabels: {}
1019
## @param preUpgradeJob.podAnnotations Additional pod annotations for etcd "pre-upgrade" job
1020
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1021
##
1022
podAnnotations: {}
1023
## @param preUpgradeJob.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1024
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1025
##
1026
podAffinityPreset: ""
1027
## @param preUpgradeJob.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1028
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
1029
##
1030
podAntiAffinityPreset: soft
1031
## Node affinity preset
1032
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
1033
## @param preUpgradeJob.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
1034
## @param preUpgradeJob.nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set.
1035
## @param preUpgradeJob.nodeAffinityPreset.values [array] Node label values to match. Ignored if `affinity` is set.
1036
##
1037
nodeAffinityPreset:
1038
type: ""
1039
## e.g:
1040
## key: "kubernetes.io/e2e-az-name"
1041
##
1042
key: ""
1043
## e.g:
1044
## values:
1045
## - e2e-az1
1046
## - e2e-az2
1047
##
1048
values: []
1049
## @param preUpgradeJob.affinity [object] Affinity for pod assignment
1050
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1051
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
1052
##
1053
affinity: {}
1054
## @param preUpgradeJob.nodeSelector [object] Node labels for pod assignment
1055
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1056
##
1057
nodeSelector: {}
1058
## @param preUpgradeJob.tolerations [array] Tolerations for pod assignment
1059
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1060
##
1061
tolerations: []
1062
## Configure "pre-upgrade" job's container Security Context
1063
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1064
## @param preUpgradeJob.containerSecurityContext.enabled Enabled "pre-upgrade" job's containers' Security Context
1065
## @param preUpgradeJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in "pre-upgrade" job's containers
1066
## @param preUpgradeJob.containerSecurityContext.runAsUser Set runAsUser in "pre-upgrade" job's containers' Security Context
1067
## @param preUpgradeJob.containerSecurityContext.runAsGroup Set runAsUser in "pre-upgrade" job's containers' Security Context
1068
## @param preUpgradeJob.containerSecurityContext.runAsNonRoot Set runAsNonRoot in "pre-upgrade" job's containers' Security Context
1069
## @param preUpgradeJob.containerSecurityContext.readOnlyRootFilesystem Set readOnlyRootFilesystem in "pre-upgrade" job's containers' Security Context
1070
## @param preUpgradeJob.containerSecurityContext.privileged Set privileged in "pre-upgrade" job's containers' Security Context
1071
## @param preUpgradeJob.containerSecurityContext.allowPrivilegeEscalation Set allowPrivilegeEscalation in "pre-upgrade" job's containers' Security Context
1072
## @param preUpgradeJob.containerSecurityContext.capabilities.add List of capabilities to be added in "pre-upgrade" job's containers
1073
## @param preUpgradeJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped in "pre-upgrade" job's containers
1074
## @param preUpgradeJob.containerSecurityContext.seccompProfile.type Set seccomp profile in "pre-upgrade" job's containers
1075
##
1076
containerSecurityContext:
1077
enabled: true
1078
seLinuxOptions: {}
1079
runAsUser: 1001
1080
runAsGroup: 1001
1081
runAsNonRoot: true
1082
readOnlyRootFilesystem: true
1083
privileged: false
1084
allowPrivilegeEscalation: false
1085
capabilities:
1086
add: []
1087
drop: ["ALL"]
1088
seccompProfile:
1089
type: "RuntimeDefault"
1090
## Configure "pre-upgrade" job's pod Security Context
1091
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1092
## @param preUpgradeJob.podSecurityContext.enabled Enabled "pre-upgrade" job's pods' Security Context
1093
## @param preUpgradeJob.podSecurityContext.fsGroupChangePolicy Set fsGroupChangePolicy in "pre-upgrade" job's pods' Security Context
1094
## @param preUpgradeJob.podSecurityContext.sysctls List of sysctls to allow in "pre-upgrade" job's pods' Security Context
1095
## @param preUpgradeJob.podSecurityContext.supplementalGroups List of supplemental groups to add to "pre-upgrade" job's pods' Security Context
1096
## @param preUpgradeJob.podSecurityContext.fsGroup Set fsGroup in "pre-upgrade" job's pods' Security Context
1097
##
1098
podSecurityContext:
1099
enabled: true
1100
fsGroupChangePolicy: Always
1101
sysctls: []
1102
supplementalGroups: []
1103
fsGroup: 1001
1104
## etcd "pre-upgrade" job's container resource requests and limits
1105
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1106
## @param preUpgradeJob.resourcesPreset Set etcd "pre-upgrade" job's container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if preUpgradeJob.resources is set (preUpgradeJob.resources is recommended for production).
1107
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1108
##
1109
resourcesPreset: "micro"
1110
## @param preUpgradeJob.resources Set etcd "pre-upgrade" job's container requests and limits for different resources like CPU or memory (essential for production workloads)
1111
## E.g:
1112
## resources:
1113
## requests:
1114
## cpu: 2
1115
## memory: 512Mi
1116
## limits:
1117
## cpu: 3
1118
## memory: 1024Mi
1119
##
1120
resources: {}
1121
## etcd "pre-upgrade" job's optional delay
1122
## @param preUpgradeJob.startDelay Optional delay before starting the pre-upgrade hook (in seconds).
1123
startDelay: ""
1124
## @section Defragmentation parameters
1125
##
1126
1127
## Enable defragmentation by periodically rearranging fragmented data after history compaction.
1128
## It creates a cronjob to periodically run the defragmentation command:
1129
## etcdctl defrag [OPTIONS]
1130
## See https://etcd.io/docs/latest/op-guide/maintenance/
1131
##
1132
defrag:
1133
## @param defrag.enabled Enable automatic defragmentation. This is most effective when paired with auto compaction: consider setting "autoCompactionRetention > 0".
1134
##
1135
enabled: false
1136
cronjob:
1137
## @param defrag.cronjob.startingDeadlineSeconds Number of seconds representing the deadline for starting the job if it misses scheduled time for any reason
1138
##
1139
startingDeadlineSeconds: ""
1140
## @param defrag.cronjob.schedule Schedule in Cron format to defrag (daily at midnight by default)
1141
## See https://en.wikipedia.org/wiki/Cron
1142
##
1143
schedule: "0 0 * * *"
1144
## @param defrag.cronjob.concurrencyPolicy Set the cronjob parameter concurrencyPolicy
1145
##
1146
concurrencyPolicy: Forbid
1147
## @param defrag.cronjob.suspend Boolean that indicates if the controller must suspend subsequent executions (not applied to already started executions)
1148
##
1149
suspend: false
1150
## @param defrag.cronjob.successfulJobsHistoryLimit Number of successful finished jobs to retain
1151
##
1152
successfulJobsHistoryLimit: 1
1153
## @param defrag.cronjob.failedJobsHistoryLimit Number of failed finished jobs to retain
1154
##
1155
failedJobsHistoryLimit: 1
1156
## @param defrag.cronjob.labels [object] Additional labels to be added to the Defrag cronjob
1157
##
1158
labels: {}
1159
## @param defrag.cronjob.annotations [object] Annotations to be added to the Defrag cronjob
1160
##
1161
annotations: {}
1162
## @param defrag.cronjob.activeDeadlineSeconds Number of seconds relative to the startTime that the job may be continuously active before the system tries to terminate it
1163
##
1164
activeDeadlineSeconds: ""
1165
## @param defrag.cronjob.restartPolicy Set the cronjob parameter restartPolicy
1166
##
1167
restartPolicy: OnFailure
1168
## @param defrag.cronjob.podLabels [object] Labels that will be added to pods created by Defrag cronjob
1169
##
1170
podLabels: {}
1171
## @param defrag.cronjob.podAnnotations [object] Pod annotations for Defrag cronjob pods
1172
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1173
##
1174
podAnnotations: {}
1175
## K8s Security Context for Defrag cronjob pods
1176
## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1177
## @param defrag.cronjob.podSecurityContext.enabled Enable security context for Defrag pods
1178
## @param defrag.cronjob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1179
## @param defrag.cronjob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1180
## @param defrag.cronjob.podSecurityContext.supplementalGroups Set filesystem extra groups
1181
## @param defrag.cronjob.podSecurityContext.fsGroup Group ID for the Defrag filesystem
1182
##
1183
podSecurityContext:
1184
enabled: true
1185
fsGroupChangePolicy: Always
1186
sysctls: []
1187
supplementalGroups: []
1188
fsGroup: 1001
1189
## Configure container security context for Defrag cronjob containers
1190
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1191
## @param defrag.cronjob.containerSecurityContext.enabled Enabled containers' Security Context
1192
## @param defrag.cronjob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1193
## @param defrag.cronjob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1194
## @param defrag.cronjob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1195
## @param defrag.cronjob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1196
## @param defrag.cronjob.containerSecurityContext.privileged Set container's Security Context privileged
1197
## @param defrag.cronjob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1198
## @param defrag.cronjob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1199
## @param defrag.cronjob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1200
## @param defrag.cronjob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1201
##
1202
containerSecurityContext:
1203
enabled: true
1204
seLinuxOptions: {}
1205
runAsUser: 1001
1206
runAsGroup: 1001
1207
runAsNonRoot: true
1208
privileged: false
1209
readOnlyRootFilesystem: true
1210
allowPrivilegeEscalation: false
1211
capabilities:
1212
drop: ["ALL"]
1213
seccompProfile:
1214
type: "RuntimeDefault"
1215
## @param defrag.cronjob.nodeSelector [object] Node labels for pod assignment in Defrag cronjob
1216
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1217
##
1218
nodeSelector: {}
1219
## @param defrag.cronjob.tolerations [array] Tolerations for pod assignment in Defrag cronjob
1220
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1221
##
1222
tolerations: []
1223
## @param defrag.cronjob.serviceAccountName Specifies the service account to use for Defrag cronjob
1224
##
1225
serviceAccountName: ""
1226
## @param defrag.cronjob.command [array] Override default container command for defragmentation (useful when using custom images)
1227
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1228
##
1229
command: []
1230
## @param defrag.cronjob.args [array] Override default container args (useful when using custom images)
1231
##
1232
args: []
1233
## @param defrag.cronjob.resourcesPreset Set container resources according to one common preset
1234
## (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if
1235
## defrag.cronjob.resources is set (defrag.cronjob.resources is recommended for production).
1236
## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
1237
##
1238
resourcesPreset: "nano"
1239
## @param defrag.cronjob.resources [object] Set container requests and limits for different resources like CPU or
1240
## memory (essential for production workloads)
1241
## Example:
1242
## resources:
1243
## requests:
1244
## cpu: 2
1245
## memory: 512Mi
1246
## limits:
1247
## cpu: 3
1248
## memory: 1024Mi
1249
##
1250
resources: {}
1251
## @param defrag.cronjob.extraEnvVars [array] Extra environment variables to be set on defrag cronjob container
1252
## e.g:
1253
## extraEnvVars:
1254
## - name: FOO
1255
## value: "bar"
1256
##
1257
extraEnvVars: []
1258
## @param defrag.cronjob.extraEnvVarsCM Name of existing ConfigMap containing extra env vars
1259
##
1260
extraEnvVarsCM: ""
1261
## @param defrag.cronjob.extraEnvVarsSecret Name of existing Secret containing extra env vars
1262
##
1263
extraEnvVarsSecret: ""
1264
## @section Other parameters
1265
##
1266
1267
## etcd Pod Disruption Budget configuration
1268
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1269
##
1270
pdb:
1271
## @param pdb.create Enable/disable a Pod Disruption Budget creation
1272
##
1273
create: true
1274
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
1275
##
1276
minAvailable: 51%
1277
## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable
1278
##
1279
maxUnavailable: ""
1280

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.