Skip to content

P4: Custos Deployment Custos Deployment Step 3 2

anbadrin edited this page May 6, 2022 · 2 revisions

Deploy Keycloak

Back to Home

  1. Change directory to the postgres folder as shown in the screenshots below and create a repo using the help command for the postgres database
helm repo add bitnami https://charts.bitnami.com/bitnami

img

  1. Create pv's for each of the postgres mounts using the following command
kubectl apply -f pv.yaml,pv1.yaml,pv2.yaml

img

  1. Run the following commands
helm install keycloak-db-postgresql bitnami/postgresql -f values.yaml -n keycloak --version 10.12.3

img

cd ..
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/crds.yaml

img

kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/olm.yaml

img

git clone https://github.com/keycloak/keycloak-operator

img

cp operator.yaml keycloak-operator/deploy/
cd keycloak-operator
make cluster/prepare

img

kubectl apply -f deploy/operator.yaml -n keycloak

img

cd ..
kubectl apply -f keycloak-db-secret.yaml -n keycloak

img

kubectl apply -f custos-keycloak.yaml -n keycloak

img

  1. Modify the ingress file as below with modifications in the domain name
nano ingress.yaml

img

img

  1. Run the following commands
kubectl apply -f ingress.yaml -n keycloak

img

kubectl get secret credential-custos-keycloak -o yaml -n keycloak

img

  1. Run the following command to get the password and save it
echo "passwordhere" | base64 --decode
Clone this wiki locally