From 6f0b8db6456f9ba1c3ececbacaf390fc04b43968 Mon Sep 17 00:00:00 2001 From: Benedith Mulongo Date: Thu, 30 Jan 2025 12:09:52 +0100 Subject: [PATCH] Fix docs & mountpath --- keycloak/base/keycloak-deployment.yaml | 2 +- keycloak/readme.md | 70 ++++++++++---------------- 2 files changed, 28 insertions(+), 44 deletions(-) diff --git a/keycloak/base/keycloak-deployment.yaml b/keycloak/base/keycloak-deployment.yaml index b38ba94..8680bd9 100644 --- a/keycloak/base/keycloak-deployment.yaml +++ b/keycloak/base/keycloak-deployment.yaml @@ -40,7 +40,7 @@ spec: path: /auth/realms/master port: 8080 volumeMounts: - - mountPath: /opt/jboss/keycloak/standalone/data + - mountPath: /opt/keycloak/data/h2/ name: storage volumes: - name: storage diff --git a/keycloak/readme.md b/keycloak/readme.md index 65aac69..67ebd8e 100644 --- a/keycloak/readme.md +++ b/keycloak/readme.md @@ -1,72 +1,56 @@ -# Kubernetes Commands for Jupyter Setup +# Kubernetes Commands for Keycloak Setup -## Namespace Creation +## **Namespace Creation** -Create a namespace for Jupyter: +Create a namespace for **Keycloak**: ```bash -kubectl create ns jupyter +kubectl create ns keycloak ``` -## Apply Configuration Files +## **Apply Configuration Files** -Deploy persistent storage, deployment, services, and secrets: +Deploy persistent storage, deployment, services, and secrets for Keycloak: ```bash -kubectl -n jupyter apply -f jupyter-persistent-volume.yaml -kubectl -n jupyter apply -f jupyter-deployment.yaml -kubectl -n jupyter apply -f jupyter-service.yaml -kubectl -n jupyter apply -f s3-secrets-trino.yaml +kubectl -n keycloak apply -f keycloak-pvc.yaml +kubectl -n keycloak apply -f keycloak-admin-secret.yaml +kubectl -n keycloak apply -f keycloak-deployment.yaml +kubectl -n keycloak apply -f keycloak-service.yaml +kubectl -n keycloak apply -f keycloak-ingress.yaml ``` -## Persistent Volume Claims (PVC) +## **Persistent Volume Claims (PVC)** -Check the status of PVCs in the Jupyter namespace: +Check the status of PVCs in the Keycloak namespace: ```bash -kubectl get pvc -n jupyter +kubectl get pvc -n keycloak ``` -## Port Forwarding +## **Port Forwarding** + +Forward the Keycloak service to a local port for easy access: ```bash -kubectl -n jupyter port-forward svc/jupyter-notebook-service 8888:8888 +kubectl -n keycloak port-forward svc/keycloak 8080:8080 ``` -## Logs and Debugging +## **Logs and Debugging** + +Check logs or describe the Keycloak pod: ```bash -kubectl -n jupyter logs -kubectl -n jupyter describe +kubectl -n keycloak logs +kubectl -n keycloak describe ``` -> Replace `` with the name of your Jupyter pod (e.g., `jupyter-notebook-676fb4f85b-sb2h8`). +## **Apply Argo Application** -## Node Details +### **Deploy Argo Application** -Get detailed information about cluster nodes: +Apply the ArgoCD application configuration for Keycloak: ```bash -kubectl get no -o=wide +kubectl -n argocd apply -f keycloak-application.yaml ``` - ---- - -## Apply Argo Application - -### Deploy Argo Application - -Apply the ArgoCD application configuration: - -```bash -kubectl -n argocd apply -f jupyter-application.yaml -``` - -### Verify Deployment - -Check the ArgoCD deployment details: - -```bash -kubectl get deploy -n argocd -o=yaml -``` -