1# This file has been modified by Chainguard, Inc.
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
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
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
22 ## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
24 defaultStorageClass: ""
25 ## Security parameters
26 ## @param global.security.allowInsecureImages Allows skipping image verification
29 allowInsecureImages: false
30 ## Compatibility adaptations for Kubernetes platforms
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)
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
40 omitEmptySeLinuxOptions: false
42## @section Common parameters
44## @param kubeVersion Override Kubernetes version reported by .Capabilities
47## @param apiVersions Override Kubernetes API versions reported by .Capabilities
50## @param nameOverride String to partially override common.names.name
53## @param fullnameOverride String to fully override common.names.fullname
56## @param namespaceOverride String to fully override common.names.namespace
59## @param commonLabels Labels to add to all deployed objects
62## @param commonAnnotations Annotations to add to all deployed objects
65## @param clusterDomain Default Kubernetes cluster domain
67clusterDomain: cluster.local
68## @param extraDeploy Array of extra objects to deploy with the release
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
82## @param useHelmHooks Enable use of Helm hooks if needed, e.g. on post-install jobs
85## @param usePasswordFiles Mount credentials as files instead of using environment variables
88## @section Keycloak parameters
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
101 repository: chainguard-private/keycloak-iamguarded
104 ## Specify a imagePullPolicy
105 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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/
112 ## - myRegistryKeySecretName
116## Keycloak authentication parameters
119 ## @param auth.adminUser Keycloak administrator user
122 ## @param auth.adminPassword Keycloak administrator password for the new user
125 ## @param auth.existingSecret Existing secret containing Keycloak admin password
128 ## @param auth.passwordSecretKey Key where the Keycloak admin password is being stored inside the existing secret.
130 passwordSecretKey: ""
131 ## @param auth.annotations Additional custom annotations for Keycloak auth secret object
134## @param production Run Keycloak in production mode. TLS configuration is required except when using proxy headers
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`)
166 existingIssuerKind: ""
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.
180 certFilename: "tls.crt"
181 certKeyFilename: "tls.key"
182 keystoreFilename: "keycloak.keystore.jks"
183 truststoreFilename: "keycloak.truststore.jks"
185 truststorePassword: ""
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
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
203trustedCertsExistingSecret: ""
204## @param adminRealm Name of the admin realm
207## @param proxyHeaders Set Keycloak proxy headers
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.
215## @param httpEnabled Force enabling HTTP endpoint (by default is only enabled if TLS is disabled)
218## @param httpRelativePath Set the path relative to '/' for serving resources
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
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
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
254## @param existingConfigmap Name of existing ConfigMap with Keycloak configuration
255## NOTE: When it's set the configuration parameter is ignored
258## @param extraStartupArgs Extra default startup args
261## @param initdbScripts Dictionary of initdb scripts
262## Specify dictionary of scripts to be run at first boot
265## my_init_script.sh: |
267## echo "Do something."
270## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
272initdbScriptsConfigMap: ""
273## @param command Override default container command (useful when using custom images)
276## @param args Override default container args (useful when using custom images)
279## @param extraEnvVars Extra environment variables to be set on Keycloak container
286## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars
289## @param extraEnvVarsSecret Name of existing Secret containing extra env vars
291extraEnvVarsSecret: ""
292## @param containerPorts.http Keycloak HTTP container port
293## @param containerPorts.https Keycloak HTTPS container port
294## @param containerPorts.management Keycloak management container port
300## @param extraContainerPorts Optionally specify extra list of additional ports for Keycloak container
302## extraContainerPorts:
304## containerPort: 9090
306extraContainerPorts: []
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
317 fsGroupChangePolicy: Always
319 supplementalGroups: []
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
334containerSecurityContext:
341 readOnlyRootFilesystem: true
342 allowPrivilegeEscalation: false
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).
351resourcesPreset: "small"
352## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
374 initialDelaySeconds: 120
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
388 initialDelaySeconds: 30
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
402 initialDelaySeconds: 30
407## @param customLivenessProbe Custom Liveness probes for Keycloak
409customLivenessProbe: {}
410## @param customReadinessProbe Custom Readiness probes Keycloak
412customReadinessProbe: {}
413## @param customStartupProbe Custom Startup probes for Keycloak
415customStartupProbe: {}
416## @section Keycloak StatefulSet parameters
418## @param replicaCount Number of Keycloak replicas to deploy
421## @param updateStrategy.type Keycloak StatefulSet type
422## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
425 ## Can be set to RollingUpdate or OnDelete
428## @param revisionHistoryLimitCount Number of controller revisions to keep
430revisionHistoryLimitCount: 10
431## @param minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
434## @param statefulsetAnnotations Optionally add extra annotations on the StatefulSet resource
436statefulsetAnnotations: {}
437## @param automountServiceAccountToken Mount Service Account token in Keycloak pods
439automountServiceAccountToken: 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/
444## @param podLabels Extra labels for Keycloak pods
445## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
448## @param podAnnotations Annotations for Keycloak pods
449## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
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
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
459podAntiAffinityPreset: soft
460## Node affinity preset
461## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
464 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
467 ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set.
469 ## key: "kubernetes.io/e2e-az-name"
472 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
479## @param affinity Affinity for pod assignment
480## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
483## @param nodeSelector Node labels for pod assignment
484## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
487## @param tolerations Tolerations for pod assignment
488## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
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
494topologySpreadConstraints: []
495## @param podManagementPolicy Pod management policy for the Keycloak StatefulSet
497podManagementPolicy: Parallel
498## @param priorityClassName Keycloak pods' Priority Class Name
499## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
502## @param schedulerName Use an alternate scheduler, e.g. "stork".
503## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
506## @param terminationGracePeriodSeconds Seconds Keycloak pod needs to terminate gracefully
507## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
509terminationGracePeriodSeconds: ""
510## @param lifecycleHooks LifecycleHooks to set additional configuration at startup
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/
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
522enableServiceLinks: true
523## @param extraVolumes Optionally specify extra list of additional volumes for Keycloak pods
526## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for Keycloak container(s)
529## @param initContainers Add additional init containers to the Keycloak pods
532## - name: your-image-name
534## imagePullPolicy: Always
537## containerPort: 1234
540## @param sidecars Add additional sidecar containers to the Keycloak pods
543## - name: your-image-name
545## imagePullPolicy: Always
548## containerPort: 1234
551## @section Traffic Exposure Parameters
553## Service configuration
556 ## @param service.type Kubernetes service type
559 ## @param service.http.enabled Enable http port on service
563 ## @param service.ports.http Keycloak service HTTP port
564 ## @param service.ports.https Keycloak service HTTPS port
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>
577 ## @param service.extraPorts Extra port to expose on Keycloak service
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/
584 sessionAffinity: None
585 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
586 ## sessionAffinityConfig:
588 ## timeoutSeconds: 300
590 sessionAffinityConfig: {}
591 ## @param service.clusterIP Keycloak service clusterIP IP
596 ## @param service.loadBalancerIP loadBalancerIP for the SuiteCRM Service (optional, cloud specific)
597 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
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
603 ## loadBalancerSourceRanges:
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
610 externalTrafficPolicy: Cluster
611 ## @param service.annotations Additional custom annotations for Keycloak service
614 ## Headless service properties
617 ## @param service.headless.annotations Annotations for the headless service.
620 ## @param service.headless.extraPorts Extra ports to expose on Keycloak headless service
623## Keycloak ingress parameters
624## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
627 ## @param ingress.enabled Enable ingress record generation for Keycloak
630 ## @param ingress.pathType Ingress path type
632 pathType: ImplementationSpecific
633 ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
636 ## @param ingress.hostname Default host for the ingress record (evaluated as template)
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
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
648 ## @param ingress.path Default path for the ingress record
650 path: "{{ .Values.httpRelativePath }}"
651 ## @param ingress.servicePort Backend service port to use
652 ## Default is http. Alternative is https.
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
660 ## kubernetes.io/ingress.class: nginx
661 ## cert-manager.io/cluster-issuer: cluster-issuer-name
664 ## @param ingress.labels Additional labels for the Ingress resource.
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 .) }}`
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`
678 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
681 ## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
684 ## - name: keycloak.local
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.
693 ## serviceName: ssl-redirect
694 ## servicePort: use-annotation
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
702 ## secretName: keycloak.local-tls
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-----
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
712 ## It is also possible to create and manage the certificates outside of this helm chart
713 ## Please see README.md for more information
715 ## - name: keycloak.local-tls
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
724 ## - host: keycloak.local
734## Network Policy configuration
735## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
738 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
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).
748 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
750 allowExternalEgress: true
751 ## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
753 addExternalClientAccess: true
754 ## @param networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)
756 kubeAPIServerPorts: [443, 6443, 8443]
757 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
767 ## - matchExpressions:
773 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
783 ## - matchExpressions:
790 ## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
792 ## ingressPodMatchLabels:
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
799 ingressNSMatchLabels: {}
800 ingressNSPodMatchLabels: {}
801## @section Other parameters
803## ServiceAccount configuration
804## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
807 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
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
814 ## @param serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
817 ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
819 automountServiceAccountToken: true
820 ## @param serviceAccount.extraLabels Additional Service Account labels (evaluated as a template)
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.
833## Keycloak Autoscaling configuration
834## ref: https://kubernetes.io/docs/concepts/workloads/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
846 controlledResources: []
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".
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
867 ## HPA Scaling Behavior
868 ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-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
876 ## Policy to scale 20% of the pod in 60s
882 stabilizationWindowSeconds: 120
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
890 ## Policy to scale one pod in 300s
893 ## periodSeconds: 300
896 stabilizationWindowSeconds: 300
902## @section Metrics parameters
904 ## @param metrics.enabled Enable exposing Keycloak metrics
907 ## Keycloak metrics service parameters
910 ## @param metrics.service.ports.metrics Metrics service Metrics port
914 ## @param metrics.service.annotations [object] Annotations for enabling prometheus to access the metrics endpoints
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
922 ## Prometheus Operator ServiceMonitor configuration
925 ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
928 ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
931 ## @param metrics.serviceMonitor.annotations Additional custom annotations for the ServiceMonitor
934 ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
937 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus
940 ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
943 ## @param metrics.serviceMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
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
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
955 ## scrapeTimeout: 10s
958 ## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
960 metricRelabelings: []
961 ## @param metrics.serviceMonitor.relabelings Specify general relabeling
964 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
966 ## prometheus: my-prometheus
969 ## Prometheus Operator alert rules configuration
972 ## @param metrics.prometheusRule.enabled Create PrometheusRule Resource for scraping metrics using PrometheusOperator
975 ## @param metrics.prometheusRule.namespace Namespace which Prometheus is running in
978 ## @param metrics.prometheusRule.labels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
981 ## @param metrics.prometheusRule.groups Groups, containing the alert rules.
986 ## - alert: KeycloakInstanceNotAvailable
988 ## message: "Keycloak instance in namespace {{ `{{` }} $labels.namespace {{ `}}` }} has not been available for the last 5 minutes."
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
993 ## severity: critical
995## @section keycloak-config-cli parameters
997## Configuration for keycloak-config-cli
998## ref: https://github.com/adorsys/keycloak-config-cli
1001 ## @param keycloakConfigCli.enabled Whether to enable keycloak-config-cli job
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
1014 repository: chainguard-private/keycloak-config-cli-iamguarded
1017 ## Specify a imagePullPolicy
1018 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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/
1026 ## - myRegistryKeySecretName
1029 ## @param keycloakConfigCli.annotations [object] Annotations for keycloak-config-cli job
1032 ## @param keycloakConfigCli.command Command for running the container (set to default if not set). Use array form
1035 ## @param keycloakConfigCli.args Args for running the container (set to default if not set). Use array form
1038 ## @param keycloakConfigCli.automountServiceAccountToken Mount Service Account token in pod
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/
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).
1049 resourcesPreset: "small"
1050 ## @param keycloakConfigCli.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
1074 containerSecurityContext:
1081 readOnlyRootFilesystem: true
1082 allowPrivilegeEscalation: false
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
1097 fsGroupChangePolicy: Always
1099 supplementalGroups: []
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
1105 ## @param keycloakConfigCli.podLabels Pod extra labels
1106 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1109 ## @param keycloakConfigCli.podAnnotations Annotations for job pod
1110 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1113 ## @param keycloakConfigCli.nodeSelector Node labels for pod assignment
1114 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
1118 ## @param keycloakConfigCli.tolerations Tolerations for job pod assignment
1119 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
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)
1130 ## @param keycloakConfigCli.extraEnvVars Additional environment variables to set
1137 ## @param keycloakConfigCli.extraEnvVarsCM ConfigMap with extra environment variables
1140 ## @param keycloakConfigCli.extraEnvVarsSecret Secret with extra environment variables
1142 extraEnvVarsSecret: ""
1143 ## @param keycloakConfigCli.extraVolumes Extra volumes to add to the job
1146 ## @param keycloakConfigCli.extraVolumeMounts Extra volume mounts to add to the container
1148 extraVolumeMounts: []
1149 ## @param keycloakConfigCli.initContainers Add additional init containers to the Keycloak config cli pod
1152 ## - name: your-image-name
1153 ## image: your-image
1154 ## imagePullPolicy: Always
1157 ## containerPort: 1234
1160 ## @param keycloakConfigCli.sidecars Add additional sidecar containers to the Keycloak config cli pod
1163 ## - name: your-image-name
1164 ## image: your-image
1165 ## imagePullPolicy: Always
1168 ## containerPort: 1234
1171 ## @param keycloakConfigCli.configuration keycloak-config-cli realms configuration
1172 ## NOTE: nil keys will be considered files to import locally
1177 ## "realm": "realm1",
1185 ## @param keycloakConfigCli.existingConfigmap ConfigMap with keycloak-config-cli configuration
1186 ## NOTE: This will override keycloakConfigCli.configuration
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/
1194 cleanupAfterFinished:
1197## @section Default init container parameters
1199## Default init Containers
1201defaultInitContainers:
1202 ## 'prepare-write-dirs' init container
1203 ## Copies writable directories to an empty dir volume in order to not break the application functionality
1206 ## @param defaultInitContainers.prepareWriteDirs.enabled Enable init container that copies writable directories to an empty dir
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
1222 containerSecurityContext:
1229 readOnlyRootFilesystem: true
1230 allowPrivilegeEscalation: false
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).
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)
1251## @section Database parameters
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`)
1266 postgresPassword: ""
1267 username: ig_keycloak
1269 database: iamguarded_keycloak
1272 userPasswordKey: password
1273 architecture: standalone
1276 repository: chainguard-private/postgres-iamguarded
1282 repository: chainguard-private/prometheus-postgres-exporter-iamguarded
1288 repository: chainguard-private/os-shell-iamguarded
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).
1309 database: iamguarded_keycloak
1313 existingSecretUserKey: ""
1314 existingSecretPasswordKey: ""