keycloak
Keycloak is a high performance Java-based identity and access management solution. It lets developers add an authentication layer to their applications with minimum effort.
About this chart
Keycloak packaged by Bitnami
Keycloak is a high performance Java-based identity and access management solution. It lets developers add an authentication layer to their applications with minimum effort.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
TL;DR
helm install my-release oci://registry-1.docker.io/bitnamicharts/keycloak
Introduction
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
This chart bootstraps a Keycloak deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Looking to use Keycloak in production? Try VMware Application Catalog, the enterprise edition of Bitnami Application Catalog.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
Installing the Chart
To install the chart with the release name my-release:
helm install my-release oci://registry-1.docker.io/bitnamicharts/keycloak
These commands deploy a Keycloak application on the Kubernetes cluster in the default configuration.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Labels to add to all deployed objects | {} |
enableServiceLinks | If set to false, disable Kubernetes service links in the pod spec | true |
commonAnnotations | Annotations to add to all deployed objects | {} |
dnsPolicy | DNS Policy for pod | "" |
dnsConfig | DNS Configuration pod | {} |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the statefulset | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the statefulset | ["infinity"] |
Keycloak parameters
| Name | Description | Value |
|---|---|---|
image.registry | Keycloak image registry | docker.io |
image.repository | Keycloak image repository | bitnami/keycloak |
image.tag | Keycloak image tag (immutable tags are recommended) | 21.1.2-debian-11-r0 |
image.digest | Keycloak image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Keycloak image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
auth.adminUser | Keycloak administrator user | user |
auth.adminPassword | Keycloak administrator password for the new user | "" |
auth.existingSecret | Existing secret containing Keycloak admin password | "" |
auth.passwordSecretKey | Key where the Keycloak admin password is being stored inside the existing secret. | "" |
tls.enabled | Enable TLS encryption. Required for HTTPs traffic. | false |
tls.autoGenerated | Generate automatically self-signed TLS certificates. Currently only supports PEM certificates | false |
tls.existingSecret | Existing secret containing the TLS certificates per Keycloak replica | "" |
tls.usePem | Use PEM certificates as input instead of PKS12/JKS stores | false |
tls.truststoreFilename | Truststore filename inside the existing secret | keycloak.truststore.jks |
tls.keystoreFilename | Keystore filename inside the existing secret | keycloak.keystore.jks |
tls.keystorePassword | Password to access the keystore when it's password-protected | "" |
tls.truststorePassword | Password to access the truststore when it's password-protected | "" |
tls.passwordsSecret | Secret containing the Keystore and Truststore passwords. | "" |
spi.existingSecret | Existing secret containing the Keycloak truststore for SPI connection over HTTPS/TLS | "" |
spi.truststorePassword | Password to access the truststore when it's password-protected | "" |
spi.truststoreFilename | Truststore filename inside the existing secret | keycloak-spi.truststore.jks |
spi.passwordsSecret | Secret containing the SPI Truststore passwords. | "" |
spi.hostnameVerificationPolicy | Verify the hostname of the server’s certificate. Allowed values: "ANY", "WILDCARD", "STRICT". | "" |
production | Run Keycloak in production mode. TLS configuration is required except when using proxy=edge. | false |
proxy | reverse Proxy mode edge, reencrypt, passthrough or none | passthrough |
httpRelativePath | Set the path relative to '/' for serving resources. Useful if you are migrating from older version which were using '/auth/' | / |
configuration | Keycloak Configuration. Auto-generated based on other parameters when not specified | "" |
existingConfigmap | Name of existing ConfigMap with Keycloak configuration | "" |
extraStartupArgs | Extra default startup args | "" |
initdbScripts | Dictionary of initdb scripts | {} |
initdbScriptsConfigMap | ConfigMap with the initdb scripts (Note: Overrides initdbScripts) | "" |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Extra environment variables to be set on Keycloak container | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
Keycloak statefulset parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Keycloak replicas to deploy | 1 |
containerPorts.http | Keycloak HTTP container port | 8080 |
containerPorts.https | Keycloak HTTPS container port | 8443 |
containerPorts.infinispan | Keycloak infinispan container port | 7800 |
extraContainerPorts | Optionally specify extra list of additional port-mappings for Keycloak container | [] |
podSecurityContext.enabled | Enabled Keycloak pods' Security Context | true |
| `podSecurit |
Deploy keycloak with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keycloak on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkeycloak is pinned at v15.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply