Rollout keycloak with operator and cloud-native pg
Find a file
2026-09-29 14:55:31 +02:00
admin-tasks enable manual route 2026-09-29 14:55:31 +02:00
charts/keycloak-cnpg-op enable manual route 2026-09-29 14:55:31 +02:00
create-permanent-admin.sh Initial 2026-09-28 14:36:35 +02:00
kustomization.yaml enable manual route 2026-09-29 14:55:31 +02:00
README.md Initial 2026-09-28 14:36:35 +02:00
route-idp.yaml enable manual route 2026-09-29 14:55:31 +02:00

Kustomize config for KeyCloak

1. Install operator in namespace

OKD / Openshift

As cluster-admin: oc apply -k base/admin-tasks/ (rolls namespace installation of keycloak operator out!)

kubernetes (non OLM)

See the official documentation

Install custom cluster-wide:

kubectl create namespace keycloak-operator
kubectl apply -k 'github.com/keycloak/keycloak-k8s-resources/kubernetes/cluster-wide?ref=26.7.4'

2. install

  1. make this repo a submodule of your original config
  2. copy kustomization.yaml in your root dir
  3. edit it
  4. rollout with kubectl kustomize --enable-helm . | kubectl apply -f -
  5. create a permanent admin with: sh create-permanent-admin.sh <releasename> <stage> <namespace>