DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
keycloak logoHELM

keycloak

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
12
global:
13
## Global Docker image parameters
14
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
15
## @param global.imageRegistry Global Docker Image registry
16
## @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.
17
## @param global.imagePullSecrets Global Docker registry secret names as an array
18
##
19
imageRegistry: ""
20
useImageTags: false
21
imagePullSecrets: []
22
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
23
##
24
defaultStorageClass: ""
25
## Security parameters
26
## @param global.security.allowInsecureImages Allows skipping image verification
27
##
28
security:
29
allowInsecureImages: false
30
## Compatibility adaptations for Kubernetes platforms
31
##
32
compatibility:
33
## Compatibility adaptations for Openshift
34
## @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)
35
##
36
openshift:
37
adaptSecurityContext: auto
38
## @param global.compatibility.omitEmptySeLinuxOptions If set to true, removes the seLinuxOptions from the securityContexts when it is set to an empty object
39
##
40
omitEmptySeLinuxOptions: false
41
org: ""
42
## @section Common parameters
43
44
## @param kubeVersion Override Kubernetes version reported by .Capabilities
45
##
46
kubeVersion: ""
47
## @param apiVersions Override Kubernetes API versions reported by .Capabilities
48
##
49
apiVersions: []
50
## @param nameOverride String to partially override common.names.name
51
##
52
nameOverride: ""
53
## @param fullnameOverride String to fully override common.names.fullname
54
##
55
fullnameOverride: ""
56
## @param namespaceOverride String to fully override common.names.namespace
57
##
58
namespaceOverride: ""
59
## @param commonLabels Labels to add to all deployed objects
60
##
61
commonLabels: {}
62
## @param commonAnnotations Annotations to add to all deployed objects
63
##
64
commonAnnotations: {}
65
## @param clusterDomain Default Kubernetes cluster domain
66
##
67
clusterDomain: cluster.local
68
## @param extraDeploy Array of extra objects to deploy with the release
69
##
70
extraDeploy: []
71
## Diagnostic mode
72
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
73
## @param diagnosticMode.command Command to override all containers in the chart release
74
## @param diagnosticMode.args Args to override all containers in the chart release
75
##
76
diagnosticMode:
77
enabled: false
78
command:
79
- sleep
80
args:
81
- infinity
82
## @param useHelmHooks Enable use of Helm hooks if needed, e.g. on post-install jobs
83
##
84
useHelmHooks: true
85
## @param usePasswordFiles Mount credentials as files instead of using environment variables
86
##
87
usePasswordFiles: true
88
## @section Keycloak parameters
89
90
## Iamguarded Keycloak image version
91
## @param image.registry [default: REGISTRY_NAME] Keycloak image registry
92
## @param image.repository [default: REPOSITORY_NAME/keycloak] Keycloak image repository
93
## @skip image.tag Keycloak image tag (immutable tags are recommended)
94
## @param image.digest Keycloak image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
95
## @param image.pullPolicy Keycloak image pull policy
96
## @param image.pullSecrets Keycloak image pull secrets
97
## @param image.debug Enable Keycloak image debug mode
98
##
99
image:
100
registry: cgr.dev
101
repository: chainguard-private/keycloak-iamguarded
102
tag: 26.8.2
103
digest: ""
104
## Specify a imagePullPolicy
105
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
106
##
107
pullPolicy: IfNotPresent
108
## Optionally specify an array of imagePullSecrets (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
debug: false
116
## Keycloak authentication parameters
117
##
118
auth:
119
## @param auth.adminUser Keycloak administrator user
120
##
121
adminUser: user
122
## @param auth.adminPassword Keycloak administrator password for the new user
123
##
124
adminPassword: ""
125
## @param auth.existingSecret Existing secret containing Keycloak admin password
126
##
127
existingSecret: ""
128
## @param auth.passwordSecretKey Key where the Keycloak admin password is being stored inside the existing secret.
129
##
130
passwordSecretKey: ""
131
## @param auth.annotations Additional custom annotations for Keycloak auth secret object
132
##
133
annotations: {}
134
## @param production Run Keycloak in production mode. TLS configuration is required except when using proxy headers
135
##
136
production: false
137
## HTTPS settings
138
##
139
## @param tls.enabled Enable TLS in Keycloak
140
## @param tls.usePemCerts Use PEM certificates as input instead of PKS12/JKS stores
141
## @param tls.autoGenerated.enabled Enable automatic generation of TLS certificates
142
## @param tls.autoGenerated.engine Mechanism to generate the certificates (allowed values: helm, cert-manager)
143
## @param tls.autoGenerated.certManager.existingIssuer The name of an existing Issuer to use for generating the certificates (only for `cert-manager` engine)
144
## @param tls.autoGenerated.certManager.existingIssuerKind Existing Issuer kind, defaults to Issuer (only for `cert-manager` engine)
145
## @param tls.autoGenerated.certManager.keyAlgorithm Key algorithm for the certificates (only for `cert-manager` engine)
146
## @param tls.autoGenerated.certManager.keySize Key size for the certificates (only for `cert-manager` engine)
147
## @param tls.autoGenerated.certManager.duration Duration for the certificates (only for `cert-manager` engine)
148
## @param tls.autoGenerated.certManager.renewBefore Renewal period for the certificates (only for `cert-manager` engine)
149
## @param tls.existingSecret The name of an existing Secret containing the TLS certificates for Keycloak replicas
150
## @param tls.certFilename Certificate filename inside the existing secret (when tls.usePemCerts=true and tls.autoGenerated.enabled=false)
151
## @param tls.certKeyFilename Certificate key filename inside the existing secret (when tls.usePemCerts=true and tls.autoGenerated.enabled=false)
152
## @param tls.keystoreFilename Keystore filename inside the existing secret
153
## @param tls.truststoreFilename Truststore filename inside the existing secret
154
## @param tls.keystorePassword Password to access the keystore when it's password-protected
155
## @param tls.truststorePassword Password to access the truststore when it's password-protected
156
## @param tls.passwordsSecret The name of an existing Secret containing the keystore/truststore passwords (expected keys: `tls-keystore-password` and `tls-truststore-password`)
157
##
158
tls:
159
enabled: false
160
usePemCerts: false
161
autoGenerated:
162
enabled: true
163
engine: helm
164
certManager:
165
existingIssuer: ""
166
existingIssuerKind: ""
167
keySize: 2048
168
keyAlgorithm: RSA
169
duration: 2160h
170
renewBefore: 360h
171
## Create this secret following the steps below:
172
## 1) Generate your truststore and keystore files (more info at https://www.keycloak.org/server/enabletls)
173
## 2) Rename your truststore to `keycloak.truststore.jks`
174
## 3) Rename your keystores to `keycloak.keystore.jks`
175
## 4) Run the command below where SECRET_NAME is the name of the secret you want to create:
176
## kubectl create secret generic SECRET_NAME --from-file=./keycloak.truststore.jks --from-file=./keycloak.keystore.jks
177
## NOTE: If tls.usePemCerts enabled, make sure the PEM key and cert are named 'tls.key' and 'tls.crt' respectively.
178
##
179
existingSecret: ""
180
certFilename: "tls.crt"
181
certKeyFilename: "tls.key"
182
keystoreFilename: "keycloak.keystore.jks"
183
truststoreFilename: "keycloak.truststore.jks"
184
keystorePassword: ""
185
truststorePassword: ""
186
passwordsSecret: ""
187
## Keycloak management interface (health/metrics), listening on containerPorts.management (9000)
188
## ref: https://www.keycloak.org/server/management-interface
189
## @param managementInterface.scheme Scheme for the management interface and its health probes. Empty ("", the default) preserves the chart's legacy behavior: probes use HTTP and KC_HTTP_MANAGEMENT_SCHEME is left unset (Keycloak's own default applies). Set to "inherited" to serve HTTPS on port 9000 when tls.enabled (the health probes switch to HTTPS to match); set to "http" to force plaintext. Maps to KC_HTTP_MANAGEMENT_SCHEME
190
## @param managementInterface.clientAuth Mutual-TLS client-certificate policy for the management interface: none, request or required. Emitted only when scheme=inherited and tls.enabled; "none" lets health/metrics probes connect without a client certificate even when the main server enables mTLS (KC_HTTPS_CLIENT_AUTH). Maps to KC_HTTPS_MANAGEMENT_CLIENT_AUTH
191
## @param managementInterface.tls.certFilename Optional dedicated PEM certificate filename (inside the TLS secret) for the management listener, decoupling it from the main server's mTLS context. Empty inherits the main certificate. Used only when scheme=inherited. Maps to KC_HTTPS_MANAGEMENT_CERTIFICATE_FILE
192
## @param managementInterface.tls.certKeyFilename Optional dedicated PEM key filename for the management listener. Maps to KC_HTTPS_MANAGEMENT_CERTIFICATE_KEY_FILE
193
##
194
managementInterface:
195
scheme: ""
196
clientAuth: "none"
197
tls:
198
certFilename: ""
199
certKeyFilename: ""
200
## @param trustedCertsExistingSecret Name of the existing Secret containing the trusted certificates to validate communications with external services
201
## ref: https://www.keycloak.org/server/keycloak-truststore
202
##
203
trustedCertsExistingSecret: ""
204
## @param adminRealm Name of the admin realm
205
##
206
adminRealm: "master"
207
## @param proxyHeaders Set Keycloak proxy headers
208
##
209
proxyHeaders: ""
210
## @param hostnameStrict Disables dynamically resolving the hostname from request headers (ignored if ingress.enabled is false).
211
## Should always be set to true in production, unless your reverse proxy overwrites the Host header.
212
## If enabled, the ingress.hostname option needs to be specified.
213
##
214
hostnameStrict: false
215
## @param httpEnabled Force enabling HTTP endpoint (by default is only enabled if TLS is disabled)
216
##
217
httpEnabled: false
218
## @param httpRelativePath Set the path relative to '/' for serving resources
219
##
220
httpRelativePath: "/"
221
## Keycloak cache configuration
222
## ref: https://www.keycloak.org/server/caching
223
## @param cache.enabled Switch to enable or disable the Keycloak distributed cache for kubernetes.
224
## NOTE: Set to false to use 'local' cache (only supported when replicaCount=1).
225
## @param cache.stack Cache stack to use
226
## @param cache.configFile Path to the file from which cache configuration should be loaded from
227
## @param cache.useHeadlessServiceWithAppVersion Create a headless service used for ispn containing the app version
228
## @param cache.javaOptsAppendExtra Extra java options to append to the java options
229
##
230
cache:
231
enabled: true
232
stack: jdbc-ping
233
configFile: "cache-ispn.xml"
234
useHeadlessServiceWithAppVersion: false
235
javaOptsAppendExtra: ""
236
## Keycloak logging configuration
237
## ref: https://www.keycloak.org/server/logging
238
## @param logging.output Alternates between the default log output format or json format
239
## @param logging.level Allowed values as documented: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL, OFF
240
##
241
logging:
242
output: default
243
level: INFO
244
## @param configuration Keycloak Configuration. Auto-generated based on other parameters when not specified
245
## NOTE: This will override configuring Keycloak based on environment variables (including those set by the chart)
246
## The keycloak.conf is auto-generated based on other parameters when this parameter is not specified
247
##
248
## Example:
249
## configuration: |-
250
## foo: bar
251
## baz:
252
##
253
configuration: ""
254
## @param existingConfigmap Name of existing ConfigMap with Keycloak configuration
255
## NOTE: When it's set the configuration parameter is ignored
256
##
257
existingConfigmap: ""
258
## @param extraStartupArgs Extra default startup args
259
##
260
extraStartupArgs: ""
261
## @param initdbScripts Dictionary of initdb scripts
262
## Specify dictionary of scripts to be run at first boot
263
## Example:
264
## initdbScripts:
265
## my_init_script.sh: |
266
## #!/bin/bash
267
## echo "Do something."
268
##
269
initdbScripts: {}
270
## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
271
##
272
initdbScriptsConfigMap: ""
273
## @param command Override default container command (useful when using custom images)
274
##
275
command: []
276
## @param args Override default container args (useful when using custom images)
277
##
278
args: []
279
## @param extraEnvVars Extra environment variables to be set on Keycloak container
280
## Example:
281
## extraEnvVars:
282
## - name: FOO
283
## value: "bar"
284
##
285
extraEnvVars: []
286
## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
287
##
288
extraEnvVarsCM: ""
289
## @param extraEnvVarsSecret Name of existing Secret containing extra env vars
290
##
291
extraEnvVarsSecret: ""
292
## @param containerPorts.http Keycloak HTTP container port
293
## @param containerPorts.https Keycloak HTTPS container port
294
## @param containerPorts.management Keycloak management container port
295
##
296
containerPorts:
297
http: 8080
298
https: 8443
299
management: 9000
300
## @param extraContainerPorts Optionally specify extra list of additional ports for Keycloak container
301
## e.g:
302
## extraContainerPorts:
303
## - name: myservice
304
## containerPort: 9090
305
##
306
extraContainerPorts: []
307
## Keycloak pods' SecurityContext
308
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
309
## @param podSecurityContext.enabled Enabled Keycloak pods' Security Context
310
## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
311
## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
312
## @param podSecurityContext.supplementalGroups Set filesystem extra groups
313
## @param podSecurityContext.fsGroup Set Keycloak pod's Security Context fsGroup
314
##
315
podSecurityContext:
316
enabled: true
317
fsGroupChangePolicy: Always
318
sysctls: []
319
supplementalGroups: []
320
fsGroup: 1001
321
## Keycloak containers' Security Context
322
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
323
## @param containerSecurityContext.enabled Enabled containers' Security Context
324
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
325
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
326
## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
327
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
328
## @param containerSecurityContext.privileged Set container's Security Context privileged
329
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
330
## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
331
## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
332
## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
333
##
334
containerSecurityContext:
335
enabled: true
336
seLinuxOptions: {}
337
runAsUser: 1001
338
runAsGroup: 1001
339
runAsNonRoot: true
340
privileged: false
341
readOnlyRootFilesystem: true
342
allowPrivilegeEscalation: false
343
capabilities:
344
drop: ["ALL"]
345
seccompProfile:
346
type: "RuntimeDefault"
347
## Keycloak resource requests and limits
348
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
349
## @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).
350
##
351
resourcesPreset: "small"
352
## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
353
## Example:
354
## resources:
355
## requests:
356
## cpu: 2
357
## memory: 512Mi
358
## limits:
359
## cpu: 3
360
## memory: 1024Mi
361
##
362
resources: {}
363
## Configure extra options for Keycloak containers' liveness, readiness and startup probes
364
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
365
## @param livenessProbe.enabled Enable livenessProbe on Keycloak containers
366
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
367
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
368
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
369
## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
370
## @param livenessProbe.successThreshold Success threshold for livenessProbe
371
##
372
livenessProbe:
373
enabled: true
374
initialDelaySeconds: 120
375
periodSeconds: 1
376
timeoutSeconds: 5
377
failureThreshold: 3
378
successThreshold: 1
379
## @param readinessProbe.enabled Enable readinessProbe on Keycloak containers
380
## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
381
## @param readinessProbe.periodSeconds Period seconds for readinessProbe
382
## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
383
## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
384
## @param readinessProbe.successThreshold Success threshold for readinessProbe
385
##
386
readinessProbe:
387
enabled: true
388
initialDelaySeconds: 30
389
periodSeconds: 10
390
timeoutSeconds: 1
391
failureThreshold: 3
392
successThreshold: 1
393
## @param startupProbe.enabled Enable startupProbe on Keycloak containers
394
## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
395
## @param startupProbe.periodSeconds Period seconds for startupProbe
396
## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
397
## @param startupProbe.failureThreshold Failure threshold for startupProbe
398
## @param startupProbe.successThreshold Success threshold for startupProbe
399
##
400
startupProbe:
401
enabled: false
402
initialDelaySeconds: 30
403
periodSeconds: 5
404
timeoutSeconds: 1
405
failureThreshold: 10
406
successThreshold: 1
407
## @param customLivenessProbe Custom Liveness probes for Keycloak
408
##
409
customLivenessProbe: {}
410
## @param customReadinessProbe Custom Readiness probes Keycloak
411
##
412
customReadinessProbe: {}
413
## @param customStartupProbe Custom Startup probes for Keycloak
414
##
415
customStartupProbe: {}
416
## @section Keycloak StatefulSet parameters
417
418
## @param replicaCount Number of Keycloak replicas to deploy
419
##
420
replicaCount: 1
421
## @param updateStrategy.type Keycloak StatefulSet type
422
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
423
##
424
updateStrategy:
425
## Can be set to RollingUpdate or OnDelete
426
##
427
type: RollingUpdate
428
## @param revisionHistoryLimitCount Number of controller revisions to keep
429
##
430
revisionHistoryLimitCount: 10
431
## @param minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
432
##
433
minReadySeconds: 0
434
## @param statefulsetAnnotations Optionally add extra annotations on the StatefulSet resource
435
##
436
statefulsetAnnotations: {}
437
## @param automountServiceAccountToken Mount Service Account token in Keycloak pods
438
##
439
automountServiceAccountToken: true
440
## @param hostAliases Deployment pod host aliases
441
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
442
##
443
hostAliases: []
444
## @param podLabels Extra labels for Keycloak pods
445
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
446
##
447
podLabels: {}
448
## @param podAnnotations Annotations for Keycloak pods
449
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
450
##
451
podAnnotations: {}
452
## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
453
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
454
##
455
podAffinityPreset: ""
456
## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
457
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
458
##
459
podAntiAffinityPreset: soft
460
## Node affinity preset
461
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
462
##
463
nodeAffinityPreset:
464
## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
465
##
466
type: ""
467
## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set.
468
## E.g.
469
## key: "kubernetes.io/e2e-az-name"
470
##
471
key: ""
472
## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
473
## E.g.
474
## values:
475
## - e2e-az1
476
## - e2e-az2
477
##
478
values: []
479
## @param affinity Affinity for pod assignment
480
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
481
##
482
affinity: {}
483
## @param nodeSelector Node labels for pod assignment
484
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
485
##
486
nodeSelector: {}
487
## @param tolerations Tolerations for pod assignment
488
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
489
##
490
tolerations: []
491
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
492
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
493
##
494
topologySpreadConstraints: []
495
## @param podManagementPolicy Pod management policy for the Keycloak StatefulSet
496
##
497
podManagementPolicy: Parallel
498
## @param priorityClassName Keycloak pods' Priority Class Name
499
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
500
##
501
priorityClassName: ""
502
## @param schedulerName Use an alternate scheduler, e.g. "stork".
503
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
504
##
505
schedulerName: ""
506
## @param terminationGracePeriodSeconds Seconds Keycloak pod needs to terminate gracefully
507
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
508
##
509
terminationGracePeriodSeconds: ""
510
## @param lifecycleHooks LifecycleHooks to set additional configuration at startup
511
##
512
lifecycleHooks: {}
513
## @param dnsPolicy DNS Policy for pod
514
## @param dnsConfig DNS Configuration pod
515
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
516
##
517
dnsPolicy: ""
518
dnsConfig: {}
519
## @param enableServiceLinks If set to false, disable Kubernetes service links in the pod spec
520
## Ref: https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service
521
##
522
enableServiceLinks: true
523
## @param extraVolumes Optionally specify extra list of additional volumes for Keycloak pods
524
##
525
extraVolumes: []
526
## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for Keycloak container(s)
527
##
528
extraVolumeMounts: []
529
## @param initContainers Add additional init containers to the Keycloak pods
530
## Example:
531
## initContainers:
532
## - name: your-image-name
533
## image: your-image
534
## imagePullPolicy: Always
535
## ports:
536
## - name: portname
537
## containerPort: 1234
538
##
539
initContainers: []
540
## @param sidecars Add additional sidecar containers to the Keycloak pods
541
## Example:
542
## sidecars:
543
## - name: your-image-name
544
## image: your-image
545
## imagePullPolicy: Always
546
## ports:
547
## - name: portname
548
## containerPort: 1234
549
##
550
sidecars: []
551
## @section Traffic Exposure Parameters
552
553
## Service configuration
554
##
555
service:
556
## @param service.type Kubernetes service type
557
##
558
type: ClusterIP
559
## @param service.http.enabled Enable http port on service
560
##
561
http:
562
enabled: true
563
## @param service.ports.http Keycloak service HTTP port
564
## @param service.ports.https Keycloak service HTTPS port
565
##
566
ports:
567
http: 80
568
https: 443
569
## Node ports to expose
570
## @param service.nodePorts.http Node port for HTTP
571
## @param service.nodePorts.https Node port for HTTPS
572
## NOTE: choose port between <30000-32767>
573
##
574
nodePorts:
575
http: ""
576
https: ""
577
## @param service.extraPorts Extra port to expose on Keycloak service
578
##
579
extraPorts: []
580
## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
581
## Values: ClientIP or None
582
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
583
##
584
sessionAffinity: None
585
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
586
## sessionAffinityConfig:
587
## clientIP:
588
## timeoutSeconds: 300
589
##
590
sessionAffinityConfig: {}
591
## @param service.clusterIP Keycloak service clusterIP IP
592
## e.g:
593
## clusterIP: None
594
##
595
clusterIP: ""
596
## @param service.loadBalancerIP loadBalancerIP for the SuiteCRM Service (optional, cloud specific)
597
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
598
##
599
loadBalancerIP: ""
600
## @param service.loadBalancerSourceRanges Address that are allowed when service is LoadBalancer
601
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
602
## Example:
603
## loadBalancerSourceRanges:
604
## - 10.10.10.0/24
605
##
606
loadBalancerSourceRanges: []
607
## @param service.externalTrafficPolicy Enable client source IP preservation
608
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
609
##
610
externalTrafficPolicy: Cluster
611
## @param service.annotations Additional custom annotations for Keycloak service
612
##
613
annotations: {}
614
## Headless service properties
615
##
616
headless:
617
## @param service.headless.annotations Annotations for the headless service.
618
##
619
annotations: {}
620
## @param service.headless.extraPorts Extra ports to expose on Keycloak headless service
621
##
622
extraPorts: []
623
## Keycloak ingress parameters
624
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
625
##
626
ingress:
627
## @param ingress.enabled Enable ingress record generation for Keycloak
628
##
629
enabled: false
630
## @param ingress.pathType Ingress path type
631
##
632
pathType: ImplementationSpecific
633
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
634
##
635
apiVersion: ""
636
## @param ingress.hostname Default host for the ingress record (evaluated as template)
637
##
638
hostname: keycloak.local
639
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (evaluated as template)
640
## Required if you have more than one IngressClass marked as the default for your cluster
641
##
642
ingressClassName: ""
643
## @param ingress.controller The ingress controller type. Currently supports `default` and `gce`
644
## leave as `default` for most ingress controllers.
645
## set to `gce` if using the GCE ingress controller
646
##
647
controller: default
648
## @param ingress.path Default path for the ingress record
649
##
650
path: "{{ .Values.httpRelativePath }}"
651
## @param ingress.servicePort Backend service port to use
652
## Default is http. Alternative is https.
653
##
654
servicePort: http
655
## @param ingress.annotations [object] Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
656
## Use this parameter to set the required annotations for cert-manager, see
657
## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
658
## e.g:
659
## annotations:
660
## kubernetes.io/ingress.class: nginx
661
## cert-manager.io/cluster-issuer: cluster-issuer-name
662
##
663
annotations: {}
664
## @param ingress.labels Additional labels for the Ingress resource.
665
## e.g:
666
## labels:
667
## app: keycloak
668
##
669
labels: {}
670
## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
671
## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" (tpl .Values.ingress.hostname .) }}`
672
## You can:
673
## - Use the `ingress.secrets` parameter to create this TLS secret
674
## - Rely on cert-manager to create it by setting the corresponding annotations
675
## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
676
##
677
tls: false
678
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
679
##
680
selfSigned: false
681
## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
682
## e.g:
683
## extraHosts:
684
## - name: keycloak.local
685
## path: /
686
##
687
extraHosts: []
688
## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
689
## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
690
## extraPaths:
691
## - path: /*
692
## backend:
693
## serviceName: ssl-redirect
694
## servicePort: use-annotation
695
##
696
extraPaths: []
697
## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
698
## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
699
## extraTls:
700
## - hosts:
701
## - keycloak.local
702
## secretName: keycloak.local-tls
703
##
704
extraTls: []
705
## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
706
## key and certificate should start with -----BEGIN CERTIFICATE----- or
707
## -----BEGIN RSA PRIVATE KEY-----
708
##
709
## name should line up with a tlsSecret set further up
710
## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
711
##
712
## It is also possible to create and manage the certificates outside of this helm chart
713
## Please see README.md for more information
714
## e.g:
715
## - name: keycloak.local-tls
716
## key:
717
## certificate:
718
##
719
secrets: []
720
## @param ingress.extraRules Additional rules to be covered with this ingress record
721
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
722
## e.g:
723
## extraRules:
724
## - host: keycloak.local
725
## http:
726
## path: /
727
## backend:
728
## service:
729
## name: keycloak
730
## port:
731
## name: http
732
##
733
extraRules: []
734
## Network Policy configuration
735
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
736
##
737
networkPolicy:
738
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
739
##
740
enabled: true
741
## @param networkPolicy.allowExternal Don't require server label for connections
742
## The Policy model to apply. When set to false, only pods with the correct
743
## server label will have network access to the ports server is listening
744
## on. When true, server will accept connections from any source
745
## (with the correct destination port).
746
##
747
allowExternal: true
748
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
749
##
750
allowExternalEgress: true
751
## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
752
##
753
addExternalClientAccess: true
754
## @param networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)
755
##
756
kubeAPIServerPorts: [443, 6443, 8443]
757
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
758
## e.g:
759
## extraIngress:
760
## - ports:
761
## - port: 1234
762
## from:
763
## - podSelector:
764
## - matchLabels:
765
## - role: frontend
766
## - podSelector:
767
## - matchExpressions:
768
## - key: role
769
## operator: In
770
## values:
771
## - frontend
772
extraIngress: []
773
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
774
## e.g:
775
## extraEgress:
776
## - ports:
777
## - port: 1234
778
## to:
779
## - podSelector:
780
## - matchLabels:
781
## - role: frontend
782
## - podSelector:
783
## - matchExpressions:
784
## - key: role
785
## operator: In
786
## values:
787
## - frontend
788
##
789
extraEgress: []
790
## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
791
## e.g:
792
## ingressPodMatchLabels:
793
## my-client: "true"
794
#
795
ingressPodMatchLabels: {}
796
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
797
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
798
##
799
ingressNSMatchLabels: {}
800
ingressNSPodMatchLabels: {}
801
## @section Other parameters
802
803
## ServiceAccount configuration
804
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
805
##
806
serviceAccount:
807
## @param serviceAccount.create Specifies whether a ServiceAccount should be created
808
##
809
create: true
810
## @param serviceAccount.name The name of the ServiceAccount to use.
811
## If not set and create is true, a name is generated using the common.names.fullname template
812
##
813
name: ""
814
## @param serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
815
##
816
annotations: {}
817
## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
818
##
819
automountServiceAccountToken: true
820
## @param serviceAccount.extraLabels Additional Service Account labels (evaluated as a template)
821
##
822
extraLabels: {}
823
## Keycloak Pod Disruption Budget configuration
824
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
825
## @param pdb.create Enable/disable a Pod Disruption Budget creation
826
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
827
## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
828
##
829
pdb:
830
create: true
831
minAvailable: ""
832
maxUnavailable: ""
833
## Keycloak Autoscaling configuration
834
## ref: https://kubernetes.io/docs/concepts/workloads/autoscaling/
835
##
836
autoscaling:
837
## @param autoscaling.vpa.enabled Enable VPA for Keycloak pods
838
## @param autoscaling.vpa.annotations Annotations for VPA resource
839
## @param autoscaling.vpa.controlledResources VPA List of resources that the vertical pod autoscaler can control. Defaults to cpu and memory
840
## @param autoscaling.vpa.maxAllowed VPA Max allowed resources for the pod
841
## @param autoscaling.vpa.minAllowed VPA Min allowed resources for the pod
842
##
843
vpa:
844
enabled: false
845
annotations: {}
846
controlledResources: []
847
maxAllowed: {}
848
minAllowed: {}
849
## @param autoscaling.vpa.updatePolicy.updateMode Autoscaling update policy
850
## Specifies whether recommended updates are applied when a Pod is started and whether recommended updates are applied during the life of a Pod
851
## Possible values are "Off", "Initial", "Recreate", and "Auto".
852
##
853
updatePolicy:
854
updateMode: Auto
855
## @param autoscaling.hpa.enabled Enable HPA for Keycloak pods
856
## @param autoscaling.hpa.minReplicas Minimum number of Keycloak replicas
857
## @param autoscaling.hpa.maxReplicas Maximum number of Keycloak replicas
858
## @param autoscaling.hpa.targetCPU Target CPU utilization percentage
859
## @param autoscaling.hpa.targetMemory Target Memory utilization percentage
860
##
861
hpa:
862
enabled: false
863
minReplicas: 1
864
maxReplicas: 11
865
targetCPU: ""
866
targetMemory: ""
867
## HPA Scaling Behavior
868
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior
869
##
870
behavior:
871
## HPA behavior when scaling up
872
## @param autoscaling.hpa.behavior.scaleUp.stabilizationWindowSeconds The number of seconds for which past recommendations should be considered while scaling up
873
## @param autoscaling.hpa.behavior.scaleUp.selectPolicy The priority of policies that the autoscaler will apply when scaling up
874
## @param autoscaling.hpa.behavior.scaleUp.policies [array] HPA scaling policies when scaling up
875
## e.g:
876
## Policy to scale 20% of the pod in 60s
877
## - type: Percent
878
## value: 20
879
## periodSeconds: 60
880
##
881
scaleUp:
882
stabilizationWindowSeconds: 120
883
selectPolicy: Max
884
policies: []
885
## HPA behavior when scaling down
886
## @param autoscaling.hpa.behavior.scaleDown.stabilizationWindowSeconds The number of seconds for which past recommendations should be considered while scaling down
887
## @param autoscaling.hpa.behavior.scaleDown.selectPolicy The priority of policies that the autoscaler will apply when scaling down
888
## @param autoscaling.hpa.behavior.scaleDown.policies [array] HPA scaling policies when scaling down
889
## e.g:
890
## Policy to scale one pod in 300s
891
## - type: Pods
892
## value: 1
893
## periodSeconds: 300
894
##
895
scaleDown:
896
stabilizationWindowSeconds: 300
897
selectPolicy: Max
898
policies:
899
- type: Pods
900
value: 1
901
periodSeconds: 300
902
## @section Metrics parameters
903
metrics:
904
## @param metrics.enabled Enable exposing Keycloak metrics
905
##
906
enabled: false
907
## Keycloak metrics service parameters
908
##
909
service:
910
## @param metrics.service.ports.metrics Metrics service Metrics port
911
##
912
ports:
913
metrics: 9000
914
## @param metrics.service.annotations [object] Annotations for enabling prometheus to access the metrics endpoints
915
##
916
annotations:
917
prometheus.io/scrape: "true"
918
prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
919
## @param metrics.service.extraPorts [array] Add additional ports to the keycloak metrics service
920
##
921
extraPorts: []
922
## Prometheus Operator ServiceMonitor configuration
923
##
924
serviceMonitor:
925
## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
926
##
927
enabled: false
928
## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
929
##
930
namespace: ""
931
## @param metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor
932
##
933
annotations: {}
934
## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
935
##
936
labels: {}
937
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus
938
##
939
jobLabel: ""
940
## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
941
##
942
honorLabels: false
943
## @param metrics.serviceMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
944
##
945
tlsConfig: {}
946
## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
947
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
948
## e.g:
949
## interval: 10s
950
##
951
interval: ""
952
## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
953
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
954
## e.g:
955
## scrapeTimeout: 10s
956
##
957
scrapeTimeout: ""
958
## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
959
##
960
metricRelabelings: []
961
## @param metrics.serviceMonitor.relabelings Specify general relabeling
962
##
963
relabelings: []
964
## @param metrics.serviceMonitor.selector Prometheus instance selector labels
965
## selector:
966
## prometheus: my-prometheus
967
##
968
selector: {}
969
## Prometheus Operator alert rules configuration
970
##
971
prometheusRule:
972
## @param metrics.prometheusRule.enabled Create PrometheusRule Resource for scraping metrics using PrometheusOperator
973
##
974
enabled: false
975
## @param metrics.prometheusRule.namespace Namespace which Prometheus is running in
976
##
977
namespace: ""
978
## @param metrics.prometheusRule.labels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
979
##
980
labels: {}
981
## @param metrics.prometheusRule.groups Groups, containing the alert rules.
982
## Example:
983
## groups:
984
## - name: Keycloak
985
## rules:
986
## - alert: KeycloakInstanceNotAvailable
987
## annotations:
988
## message: "Keycloak instance in namespace {{ `{{` }} $labels.namespace {{ `}}` }} has not been available for the last 5 minutes."
989
## expr: |
990
## absent(kube_pod_status_ready{namespace="{{ include "common.names.namespace" . }}", condition="true"} * on (pod) kube_pod_labels{pod=~"{{ include "common.names.fullname" . }}-\\d+", namespace="{{ include "common.names.namespace" . }}"}) != 0
991
## for: 5m
992
## labels:
993
## severity: critical
994
groups: []
995
## @section keycloak-config-cli parameters
996
997
## Configuration for keycloak-config-cli
998
## ref: https://github.com/adorsys/keycloak-config-cli
999
##
1000
keycloakConfigCli:
1001
## @param keycloakConfigCli.enabled Whether to enable keycloak-config-cli job
1002
##
1003
enabled: false
1004
## Iamguarded keycloak-config-cli image
1005
## @param keycloakConfigCli.image.registry [default: REGISTRY_NAME] keycloak-config-cli container image registry
1006
## @param keycloakConfigCli.image.repository [default: REPOSITORY_NAME/keycloak-config-cli] keycloak-config-cli container image repository
1007
## @skip keycloakConfigCli.image.tag keycloak-config-cli container image tag
1008
## @param keycloakConfigCli.image.digest keycloak-config-cli container image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1009
## @param keycloakConfigCli.image.pullPolicy keycloak-config-cli container image pull policy
1010
## @param keycloakConfigCli.image.pullSecrets keycloak-config-cli container image pull secrets
1011
##
1012
image:
1013
registry: cgr.dev
1014
repository: chainguard-private/keycloak-config-cli-iamguarded
1015
tag: 6.6.0
1016
digest: ""
1017
## Specify a imagePullPolicy
1018
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1019
##
1020
pullPolicy: IfNotPresent
1021
## Optionally specify an array of imagePullSecrets.
1022
## Secrets must be manually created in the namespace.
1023
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1024
## e.g:
1025
## pullSecrets:
1026
## - myRegistryKeySecretName
1027
##
1028
pullSecrets: []
1029
## @param keycloakConfigCli.annotations [object] Annotations for keycloak-config-cli job
1030
##
1031
annotations: {}
1032
## @param keycloakConfigCli.command Command for running the container (set to default if not set). Use array form
1033
##
1034
command: []
1035
## @param keycloakConfigCli.args Args for running the container (set to default if not set). Use array form
1036
##
1037
args: []
1038
## @param keycloakConfigCli.automountServiceAccountToken Mount Service Account token in pod
1039
##
1040
automountServiceAccountToken: true
1041
## @param keycloakConfigCli.hostAliases Job pod host aliases
1042
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1043
##
1044
hostAliases: []
1045
## Keycloak config CLI resource requests and limits
1046
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1047
## @param keycloakConfigCli.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if keycloakConfigCli.resources is set (keycloakConfigCli.resources is recommended for production).
1048
##
1049
resourcesPreset: "small"
1050
## @param keycloakConfigCli.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1051
## Example:
1052
## resources:
1053
## requests:
1054
## cpu: 2
1055
## memory: 512Mi
1056
## limits:
1057
## cpu: 3
1058
## memory: 1024Mi
1059
##
1060
resources: {}
1061
## keycloak-config-cli containers' Security Context
1062
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1063
## @param keycloakConfigCli.containerSecurityContext.enabled Enabled keycloak-config-cli Security Context
1064
## @param keycloakConfigCli.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1065
## @param keycloakConfigCli.containerSecurityContext.runAsUser Set keycloak-config-cli Security Context runAsUser
1066
## @param keycloakConfigCli.containerSecurityContext.runAsGroup Set keycloak-config-cli Security Context runAsGroup
1067
## @param keycloakConfigCli.containerSecurityContext.runAsNonRoot Set keycloak-config-cli Security Context runAsNonRoot
1068
## @param keycloakConfigCli.containerSecurityContext.privileged Set keycloak-config-cli Security Context privileged
1069
## @param keycloakConfigCli.containerSecurityContext.readOnlyRootFilesystem Set keycloak-config-cli Security Context readOnlyRootFilesystem
1070
## @param keycloakConfigCli.containerSecurityContext.allowPrivilegeEscalation Set keycloak-config-cli Security Context allowPrivilegeEscalation
1071
## @param keycloakConfigCli.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1072
## @param keycloakConfigCli.containerSecurityContext.seccompProfile.type Set keycloak-config-cli Security Context seccomp profile
1073
##
1074
containerSecurityContext:
1075
enabled: true
1076
seLinuxOptions: {}
1077
runAsUser: 1001
1078
runAsGroup: 1001
1079
runAsNonRoot: true
1080
privileged: false
1081
readOnlyRootFilesystem: true
1082
allowPrivilegeEscalation: false
1083
capabilities:
1084
drop: ["ALL"]
1085
seccompProfile:
1086
type: "RuntimeDefault"
1087
## keycloak-config-cli pods' Security Context
1088
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1089
## @param keycloakConfigCli.podSecurityContext.enabled Enabled keycloak-config-cli pods' Security Context
1090
## @param keycloakConfigCli.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1091
## @param keycloakConfigCli.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1092
## @param keycloakConfigCli.podSecurityContext.supplementalGroups Set filesystem extra groups
1093
## @param keycloakConfigCli.podSecurityContext.fsGroup Set keycloak-config-cli pod's Security Context fsGroup
1094
##
1095
podSecurityContext:
1096
enabled: true
1097
fsGroupChangePolicy: Always
1098
sysctls: []
1099
supplementalGroups: []
1100
fsGroup: 1001
1101
## @param keycloakConfigCli.backoffLimit Number of retries before considering a Job as failed
1102
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy
1103
##
1104
backoffLimit: 1
1105
## @param keycloakConfigCli.podLabels Pod extra labels
1106
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1107
##
1108
podLabels: {}
1109
## @param keycloakConfigCli.podAnnotations Annotations for job pod
1110
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1111
##
1112
podAnnotations: {}
1113
## @param keycloakConfigCli.nodeSelector Node labels for pod assignment
1114
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1115
##
1116
nodeSelector: {}
1117
##
1118
## @param keycloakConfigCli.tolerations Tolerations for job pod assignment
1119
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1120
##
1121
tolerations: []
1122
## keycloak-config-cli availability-check configuration
1123
## ref: https://github.com/adorsys/keycloak-config-cli#Configuration
1124
## @param keycloakConfigCli.availabilityCheck.enabled Whether to wait until Keycloak is available
1125
## @param keycloakConfigCli.availabilityCheck.timeout Timeout for the availability check (Default is 120s)
1126
##
1127
availabilityCheck:
1128
enabled: true
1129
timeout: ""
1130
## @param keycloakConfigCli.extraEnvVars Additional environment variables to set
1131
## Example:
1132
## extraEnvVars:
1133
## - name: FOO
1134
## value: "bar"
1135
##
1136
extraEnvVars: []
1137
## @param keycloakConfigCli.extraEnvVarsCM ConfigMap with extra environment variables
1138
##
1139
extraEnvVarsCM: ""
1140
## @param keycloakConfigCli.extraEnvVarsSecret Secret with extra environment variables
1141
##
1142
extraEnvVarsSecret: ""
1143
## @param keycloakConfigCli.extraVolumes Extra volumes to add to the job
1144
##
1145
extraVolumes: []
1146
## @param keycloakConfigCli.extraVolumeMounts Extra volume mounts to add to the container
1147
##
1148
extraVolumeMounts: []
1149
## @param keycloakConfigCli.initContainers Add additional init containers to the Keycloak config cli pod
1150
## Example:
1151
## initContainers:
1152
## - name: your-image-name
1153
## image: your-image
1154
## imagePullPolicy: Always
1155
## ports:
1156
## - name: portname
1157
## containerPort: 1234
1158
##
1159
initContainers: []
1160
## @param keycloakConfigCli.sidecars Add additional sidecar containers to the Keycloak config cli pod
1161
## Example:
1162
## sidecars:
1163
## - name: your-image-name
1164
## image: your-image
1165
## imagePullPolicy: Always
1166
## ports:
1167
## - name: portname
1168
## containerPort: 1234
1169
##
1170
sidecars: []
1171
## @param keycloakConfigCli.configuration keycloak-config-cli realms configuration
1172
## NOTE: nil keys will be considered files to import locally
1173
## Example:
1174
## configuration:
1175
## realm1.json: |
1176
## {
1177
## "realm": "realm1",
1178
## "clients": []
1179
## }
1180
## realm2.yaml: |
1181
## realm: realm2
1182
## clients: []
1183
##
1184
configuration: {}
1185
## @param keycloakConfigCli.existingConfigmap ConfigMap with keycloak-config-cli configuration
1186
## NOTE: This will override keycloakConfigCli.configuration
1187
##
1188
existingConfigmap: ""
1189
## Automatic Cleanup for Finished Jobs
1190
## @param keycloakConfigCli.cleanupAfterFinished.enabled Enables Cleanup for Finished Jobs
1191
## @param keycloakConfigCli.cleanupAfterFinished.seconds Sets the value of ttlSecondsAfterFinished
1192
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
1193
##
1194
cleanupAfterFinished:
1195
enabled: false
1196
seconds: 600
1197
## @section Default init container parameters
1198
1199
## Default init Containers
1200
##
1201
defaultInitContainers:
1202
## 'prepare-write-dirs' init container
1203
## Copies writable directories to an empty dir volume in order to not break the application functionality
1204
##
1205
prepareWriteDirs:
1206
## @param defaultInitContainers.prepareWriteDirs.enabled Enable init container that copies writable directories to an empty dir
1207
##
1208
enabled: true
1209
## Configure "prepare-write-dirs" init-container Security Context
1210
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1211
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.enabled Enabled "prepare-write-dirs" init-containers' Security Context
1212
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in "prepare-write-dirs" init-containers
1213
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.runAsUser Set runAsUser in "prepare-write-dirs" init-containers' Security Context
1214
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.runAsGroup Set runAsGroup in "prepare-write-dirs" init-containers' Security Context
1215
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.runAsNonRoot Set runAsNonRoot in "prepare-write-dirs" init-containers' Security Context
1216
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.privileged Set privileged in "prepare-write-dirs" init-containers' Security Context
1217
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.readOnlyRootFilesystem Set readOnlyRootFilesystem in "prepare-write-dirs" init-containers' Security Context
1218
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.allowPrivilegeEscalation Set allowPrivilegeEscalation in "prepare-write-dirs" init-containers' Security Context
1219
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.capabilities.drop List of capabilities to be dropped in "prepare-write-dirs" init-containers
1220
## @param defaultInitContainers.prepareWriteDirs.containerSecurityContext.seccompProfile.type Set seccomp profile in "prepare-write-dirs" init-containers
1221
##
1222
containerSecurityContext:
1223
enabled: true
1224
seLinuxOptions: {}
1225
runAsUser: 1001
1226
runAsGroup: 1001
1227
runAsNonRoot: true
1228
privileged: false
1229
readOnlyRootFilesystem: true
1230
allowPrivilegeEscalation: false
1231
capabilities:
1232
drop: ["ALL"]
1233
seccompProfile:
1234
type: "RuntimeDefault"
1235
## Keycloak "prepare-write-dirs" init container resource requests and limits
1236
## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1237
## @param defaultInitContainers.prepareWriteDirs.resourcesPreset Set Keycloak "prepare-write-dirs" init container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if defaultInitContainers.prepareWriteDirs.resources is set (defaultInitContainers.prepareWriteDirs.resources is recommended for production).
1238
##
1239
resourcesPreset: "nano"
1240
## @param defaultInitContainers.prepareWriteDirs.resources Set Keycloak "prepare-write-dirs" init container requests and limits for different resources like CPU or memory (essential for production workloads)
1241
## E.g:
1242
## resources:
1243
## requests:
1244
## cpu: 2
1245
## memory: 512Mi
1246
## limits:
1247
## cpu: 3
1248
## memory: 1024Mi
1249
##
1250
resources: {}
1251
## @section Database parameters
1252
1253
## PostgreSQL chart configuration
1254
## @param postgresql.enabled Switch to enable or disable the PostgreSQL helm chart
1255
## @param postgresql.auth.postgresPassword Password for the "postgres" admin user. Ignored if `auth.existingSecret` with key `postgres-password` is provided
1256
## @param postgresql.auth.username Name for a custom user to create
1257
## @param postgresql.auth.password Password for the custom user to create
1258
## @param postgresql.auth.database Name for a custom database to create
1259
## @param postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials
1260
## @param postgresql.auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
1261
## @param postgresql.architecture PostgreSQL architecture (`standalone` or `replication`)
1262
##
1263
postgresql:
1264
enabled: true
1265
auth:
1266
postgresPassword: ""
1267
username: ig_keycloak
1268
password: ""
1269
database: iamguarded_keycloak
1270
existingSecret: ""
1271
secretKeys:
1272
userPasswordKey: password
1273
architecture: standalone
1274
image:
1275
registry: cgr.dev
1276
repository: chainguard-private/postgres-iamguarded
1277
tag: 19.0-r0
1278
digest: ""
1279
metrics:
1280
image:
1281
registry: cgr.dev
1282
repository: chainguard-private/prometheus-postgres-exporter-iamguarded
1283
tag: 0.21.1
1284
digest: ""
1285
volumePermissions:
1286
image:
1287
registry: cgr.dev
1288
repository: chainguard-private/os-shell-iamguarded
1289
tag: 1.0.0
1290
digest: ""
1291
## External PostgreSQL configuration
1292
## All of these values are only used when postgresql.enabled is set to false
1293
## @param externalDatabase.host Database host
1294
## @param externalDatabase.port Database port number
1295
## @param externalDatabase.user Non-root username for Keycloak
1296
## @param externalDatabase.password Password for the non-root username for Keycloak
1297
## @param externalDatabase.database Keycloak database name
1298
## @param externalDatabase.schema Keycloak database schema
1299
## @param externalDatabase.existingSecret Name of an existing secret resource containing the database credentials
1300
## @param externalDatabase.existingSecretUserKey Name of an existing secret key containing the database user
1301
## @param externalDatabase.existingSecretPasswordKey Name of an existing secret key containing the database credentials
1302
## @param externalDatabase.annotations Additional custom annotations for external database secret object
1303
## @param externalDatabase.extraParams Additional JDBC connection parameters appended to the JDBC URL (KC_DB_URL).
1304
##
1305
externalDatabase:
1306
host: ""
1307
port: 5432
1308
user: ig_keycloak
1309
database: iamguarded_keycloak
1310
schema: public
1311
password: ""
1312
existingSecret: ""
1313
existingSecretUserKey: ""
1314
existingSecretPasswordKey: ""
1315
annotations: {}
1316
extraParams: ""
1317

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.