keycloak

by pascaliske

Helm chartv0.2.0App 26.0.7Verified publisher

A Helm chart for Keycloak

About this chart

keycloak

A Helm chart for Keycloak

Requirements

  • helm - Refer to their docs to get started.

Usage

To use this chart add the repo as follows:

helm repo add pascaliske https://charts.pascaliske.dev

If you had already added this repo earlier, run helm repo update to retrieve the latest versions of the packages.

To install this chart simply run the following command:

helm install keycloak pascaliske/keycloak

To uninstall this chart simply run the following command:

helm delete keycloak

Values

The following values can be used to adjust the helm chart.

KeyTypeDefaultDescription
certificate.annotationsobject{}Additional annotations for the certificate object.
certificate.createboolfalseCreate an Certificate object for the exposed chart.
certificate.dnsNameslist[]List of subject alternative names for the certificate.
certificate.issuerRef.kindstring"ClusterIssuer"Type of the referenced certificate issuer. Can be "Issuer" or "ClusterIssuer".
certificate.issuerRef.namestring""Name of the referenced certificate issuer.
certificate.labelsobject{}Additional labels for the certificate object.
certificate.secretNamestring""Name of the secret in which the certificate will be stored. Defaults to the first item in dnsNames.
controller.annotationsobject{}Additional annotations for the controller object.
controller.enabledbooltrueCreate a workload for this chart.
controller.kindstring"StatefulSet"Type of the workload object.
controller.labelsobject{}Additional labels for the controller object.
controller.replicasint1The number of replicas.
env[0]object{"name":"TZ","value":"UTC"}Timezone for the container.
extraArgslist[]List of extra arguments for the container.
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"The pull policy for the controller.
image.repositorystring"quay.io/keycloak/keycloak"The repository to pull the image from.
image.tagstring.Chart.AppVersionThe docker tag, if left empty chart's appVersion will be used.
imagePullSecretslist[]
ingressRoute.annotationsobject{}Additional annotations for the ingress route object.
ingressRoute.createboolfalseCreate an IngressRoute object for exposing this chart.
ingressRoute.entryPointslist[]List of entry points on which the ingress route will be available.
ingressRoute.labelsobject{}Additional labels for the ingress route object.
ingressRoute.middlewareslist[]List of middleware objects for the ingress route.
ingressRoute.rulestring""Matching rule for the underlying router.
ingressRoute.tlsSecretNamestring""Use an existing secret containing the TLS certificate.
nameOverridestring""
ports.http.enabledbooltrueEnable the port inside the Controller and Service objects.
ports.http.nodePortstringnilThe external port used if .service.type == NodePort.
ports.http.portint8080The port used as internal port and cluster-wide port if .service.type == ClusterIP.
ports.http.protocolstring"TCP"The protocol used for the service.
ports.metrics.enabledbooltrueEnable the port inside the Controller and Service objects.
ports.metrics.nodePortstringnilThe external port used if .service.type == NodePort.
ports.metrics.portint9000The port used as internal port and cluster-wide port if .service.type == ClusterIP.
ports.metrics.protocolstring"TCP"The protocol used for the service.
resourcesobject{}Compute resources used by the container. More info here.
secret.annotationsobject{}Additional annotations for the secret object.
secret.createbooltrueCreate a new secret containing sensitive values required for operation.
secret.existingSecretstring""Use an existing secret to store the sensitive values. Please note: keys inside the existing secret must match the keys from below!
secret.labelsobject{}Additional labels for the secret object.
secret.valuesstringnilSensitive values used when not using an existing secret. Helm templates are supported for values.
securityContextobject{}Pod-level security attributes. More info here.
service.annotationsobject{}Additional annotations for the service object.
service.clusterIPstring""ClusterIP used if service type is ClusterIP.
service.enabledbooltrueCreate a service for exposing this chart.
service.labelsobject{}Additional labels for the service object.
service.loadBalancerIPstring""LoadBalancerIP if service type is LoadBalancer.
service.loadBalancerSourceRangeslist[]Allowed addresses when service type is LoadBalancer.
service.typestring"ClusterIP"The service type used.
serviceAccount.namestring""Specify the service account used for the controller.
serviceMonitor.annotationsobject{}Additional annotations for the service monitor object.
serviceMonitor.enabledboolfalseCreate a service monitor for prometheus operator.
serviceMonitor.intervalstring"30s"How frequently the exporter should be scraped.
serviceMonitor.labelsobject{}Additional labels for the service monitor object.
serviceMonitor.timeoutstring"10s"Timeout value for individual scrapes.

Maintainers

NameEmailUrl
pascaliske[email protected]https://pascaliske.dev

License

MIT – © 2025 Pascal Iske

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.2.0 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