keycloak
A Helm chart for Keycloak
About this chart
keycloak
A Helm chart for Keycloak
Prerequisites
Get the TLS certificate for the domain name k8s.localdev and create a secret for it.
mkcert k8s.localdev "*.k8s.localdev"
kubectl create namespace keycloak
kubectl create secret tls -n keycloak ingress-certs \
--cert ./k8s.localdev+1.pem \
--key ./k8s.localdev+1-key.pem
TL;DR
$ helm repo add bhuwanupadhyay https://bhuwanupadhyay.github.io/helm-charts/
$ helm repo update
$ helm install keycloak bhuwanupadhyay/keycloak
Installing the Chart
To install the chart with the release name keycloak:
helm install keycloak bhuwanupadhyay/keycloak
Uninstalling the Chart
To uninstall the keycloak deployment:
helm uninstall keycloak
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
helm install keycloak \
--set env.KC_PROXY="edge" \
bhuwanupadhyay/keycloak
- Keycloak environment variables reference: https://www.keycloak.org/server/all-config
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
helm install keycloak bhuwanupadhyay/keycloak -f values.yaml
Autogenerated from chart metadata using helm-docs v1.11.0
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 v1.0.0 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