keycloak

by kubelauncher

Helm chartv0.5.3App 26.8.1Apache-2.0Verified publisher

Keycloak identity and access management

About this chart

keycloak

Keycloak identity and access management

TL;DR

helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-keycloak kubelauncher/keycloak \
  --set auth.adminPassword=secret

Or via OCI:

helm install my-keycloak oci://ghcr.io/kubelauncher/charts/keycloak \
  --set auth.adminPassword=secret

Introduction

This chart deploys Keycloak on Kubernetes using the kubelauncher/keycloak Docker image. Keycloak provides identity and access management with support for OpenID Connect, SAML, and OAuth 2.0.

An external database (PostgreSQL by default) is required. Configure the database connection via the database values.

helm install my-keycloak kubelauncher/keycloak \
  --set auth.adminPassword=secret \
  --set database.vendor=postgres \
  --set database.url=jdbc:postgresql://mydb:5432/keycloak \
  --set database.username=keycloak \
  --set database.password=dbpass

The HTTP port is 8080 and the management port is 9000. Both Ingress and Gateway API (HTTPRoute) are supported for external access.

Installing the Chart

helm repo add kubelauncher https://kubelauncher.github.io/charts
helm install my-keycloak kubelauncher/keycloak \
  --set auth.adminPassword=secret

Or via OCI:

helm install my-keycloak oci://ghcr.io/kubelauncher/charts/keycloak \
  --set auth.adminPassword=secret

Uninstalling the Chart

helm uninstall my-keycloak

Values

KeyTypeDefaultDescription
affinityobject{}
auth.adminPasswordstring""
auth.adminUserstring"admin"
auth.existingSecretstring""
auth.existingSecretAdminPasswordKeystring"keycloak-admin-password"
auth.existingSecretAdminUserKeystring"keycloak-admin-user"
clusterDomainstring"cluster.local"
commonAnnotationsobject{}
commonLabelsobject{}
containerPorts.httpint8080
containerPorts.managementint9000
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.enabledbooltrue
containerSecurityContext.readOnlyRootFilesystemboolfalse
containerSecurityContext.runAsGroupint1001
containerSecurityContext.runAsNonRootbooltrue
containerSecurityContext.runAsUserint1001
containerSecurityContext.seccompProfile.typestring"RuntimeDefault"
database.existingSecretstring""
database.existingSecretPasswordKeystring"db-password"
database.existingSecretUsernameKeystring"db-username"
database.passwordstring""
database.urlstring""
database.usernamestring""
database.vendorstring"postgres"
enableServiceLinksboolfalse
extraDeploylist[]
extraEnvVarslist[]
extraVolumeMountslist[]
extraVolumeslist[]
fullnameOverridestring""
global.imagePullSecretslist[]
global.imageRegistrystring""
hostnamestring""
httpRoute.enabledboolfalse
httpRoute.hostnameslist[]
httpRoute.parentRefs.namestring"traefik-gateway"
httpRoute.parentRefs.namespacestring"traefik"
httpRoute.pathstring"/"
httpRoute.pathTypestring"PathPrefix"
image.digeststring"sha256:b30a698b530ec7a58b7b913205343849fd0f437ff778c4ad2e9449a00ca57c51"
image.pullPolicystring"Always"
image.pullSecretslist[]
image.registrystring"ghcr.io"
image.repositorystring"kubelauncher/keycloak"
image.tagstring"26.8.1"
ingress.annotationsobject{}
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"Prefix"
ingress.ingressClassNamestring""
ingress.tlslist[]
initContainerslist[]
livenessProbe.enabledbooltrue
livenessProbe.failureThresholdint6
livenessProbe.initialDelaySecondsint30
livenessProbe.periodSecondsint10
livenessProbe.successThresholdint1
livenessProbe.timeoutSecondsint5
metrics.enabledboolfalse
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.intervalstring""
metrics.serviceMonitor.labelsobject{}
metrics.serviceMonitor.scrapeTimeoutstring""
nameOverridestring""
namespaceOverridestring""
networkPolicy.additionalRuleslist[]
networkPolicy.allowExternalbooltrue
networkPolicy.enabledboolfalse
nodeSelectorobject{}
persistence.accessModes[0]string"ReadWriteOnce"
persistence.annotationsobject{}
persistence.enabledbooltrue
persistence.mountPathstring"/opt/keycloak/data"
persistence.sizestring"1Gi"
persistence.storageClassstring""
podAnnotationsobject{}
podLabelsobject{}
podSecurityContext.enabledbooltrue
podSecurityContext.fsGroupint1001
proxyHeadersstring"xforwarded"
readinessProbe.enabledbooltrue
readinessProbe.failureThresholdint3
readinessProbe.initialDelaySecondsint10
readinessProbe.periodSecondsint10
readinessProbe.successThresholdint1
readinessProbe.timeoutSecondsint5
replicaCountint1
resourcesobject{}
resourcesPresetstring"micro"
service.annotationsobject{}
service.clusterIPstring""
service.labelsobject{}
service.nodePorts.httpstring""
service.ports.httpint8080
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountServiceAccountTokenboolfalse
serviceAccount.createbooltrue
serviceAccount.namestring""
sidecarslist[]
startupProbe.enabledbooltrue
startupProbe.failureThresholdint30
startupProbe.initialDelaySecondsint15
startupProbe.periodSecondsint10
startupProbe.successThresholdint1
startupProbe.timeoutSecondsint5
tolerationslist[]

Maintainers

NameEmailUrl
kubelauncher[email protected]https://www.kubelauncher.com

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkeycloak is pinned at v0.5.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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