mirror of
https://github.com/jprdonnelly/kubernetes-cluster.git
synced 2025-12-19 09:50:11 -05:00
Keycloak on Kubernetes
Simple notes for deploying customized realm and keycloak into K8s
Pre-requisites
Running K8s with Ingress (not the service deployed by QSEoK)
Create the secret
Run the following commands to create the "idp" namespace and upload the secret (the entire realm.json file)
kubectl create namespace keycloak
This command below utilizes a "realm.json" file located in current path.
kubectl create secret --namespace keycloak generic realm-secret --from-file=./realm.json
Create namespace and deploy nginx-ingress
kubectl create namespace ingress
helm install -n ingress --namespace ingress stable/nginx-ingress
Deploy Keycloak
helm install -n keycloak --namespace keycloak codecentric/keycloak -f ./keycloak-values.yaml
Update /etc/hosts to point "keycloak.local" to 192.168.205.91 (second address dealt from MetalLB)