Fix docs & mountpath
This commit is contained in:
parent
c50484fc37
commit
6f0b8db645
2 changed files with 28 additions and 44 deletions
|
@ -40,7 +40,7 @@ spec:
|
||||||
path: /auth/realms/master
|
path: /auth/realms/master
|
||||||
port: 8080
|
port: 8080
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /opt/jboss/keycloak/standalone/data
|
- mountPath: /opt/keycloak/data/h2/
|
||||||
name: storage
|
name: storage
|
||||||
volumes:
|
volumes:
|
||||||
- name: storage
|
- name: storage
|
||||||
|
|
|
@ -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
|
```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
|
```bash
|
||||||
kubectl -n jupyter apply -f jupyter-persistent-volume.yaml
|
kubectl -n keycloak apply -f keycloak-pvc.yaml
|
||||||
kubectl -n jupyter apply -f jupyter-deployment.yaml
|
kubectl -n keycloak apply -f keycloak-admin-secret.yaml
|
||||||
kubectl -n jupyter apply -f jupyter-service.yaml
|
kubectl -n keycloak apply -f keycloak-deployment.yaml
|
||||||
kubectl -n jupyter apply -f s3-secrets-trino.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
|
```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
|
```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
|
```bash
|
||||||
kubectl -n jupyter logs <pod-name>
|
kubectl -n keycloak logs <pod-name>
|
||||||
kubectl -n jupyter describe <pod-name>
|
kubectl -n keycloak describe <pod-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
> Replace `<pod-name>` 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
|
```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
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue