-
Notifications
You must be signed in to change notification settings - Fork 2
P4: Custos Deployment Custos Deployment Step 3 2
anbadrin edited this page May 6, 2022
·
2 revisions
- 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
- Create pv's for each of the postgres mounts using the following command
kubectl apply -f pv.yaml,pv1.yaml,pv2.yaml
- Run the following commands
helm install keycloak-db-postgresql bitnami/postgresql -f values.yaml -n keycloak --version 10.12.3
cd ..
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/crds.yaml
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/olm.yaml
git clone https://github.com/keycloak/keycloak-operator
cp operator.yaml keycloak-operator/deploy/
cd keycloak-operator
make cluster/prepare
kubectl apply -f deploy/operator.yaml -n keycloak
cd ..
kubectl apply -f keycloak-db-secret.yaml -n keycloak
kubectl apply -f custos-keycloak.yaml -n keycloak
- Modify the ingress file as below with modifications in the domain name
nano ingress.yaml
- Run the following commands
kubectl apply -f ingress.yaml -n keycloak
kubectl get secret credential-custos-keycloak -o yaml -n keycloak
- Run the following command to get the password and save it
echo "passwordhere" | base64 --decode