keycloak-controller

by Helm

Helm chartv0.6.1App 2.0.0

A Helm chart for a Kubernetes controller to manage Keycloak clients and realms.

About this chart

Keycloak Client Controller

The Keycloak Controller manages clients and realms in one or more Keycloak instances via Kubernetes resources.

Configuration

The following table lists the configurable parameters of the chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of replicas1
image.repositorykeycloak-controller imagekiwigrid/keycloak-controller
image.tagkeycloak-controller image tag2.0.0
image.pullPolicyImage pull policyIfNotPresent
rbac.enabledControls RBAC usagetrue
retryRateConfigure retry interval for failed resources60s
prometheus.enabledEnables Prometheus scrape configurationtrue
prometheus.pathMetric endpoint/endpoints/prometheus
prometheus.portScrape port8080
prometheus.stepHow frequently to report metricsPT5s
prometheus.descriptionsIf meter descriptions should be sent to Prometheustrue
javaToolOptionsAllows to specify the initialization of toolssee values.yaml
gcpLoggingEnables Stackdriver conform loggingtrue
namespacedControls whether watching only for events in its namespacetrue
resourcesResources{}
nodeSelectorNodeSelector{}
tolerationsTolerations[]
affinityAffinity{}

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install --name my-release -f values.yaml kiwigrid/keycloak-controller

Tip: You can use the default values.yaml

Deploy keycloak-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keycloak-controller 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-controller is pinned at v0.6.1 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