streams-manifests/jupyter/readme.md

73 lines
1.2 KiB
Markdown
Raw Normal View History

2025-01-28 14:48:09 +01:00
# Kubernetes Commands for Jupyter Setup
## Namespace Creation
Create a namespace for Jupyter:
```bash
2025-01-28 14:32:02 +01:00
kubectl create ns jupyter
2025-01-28 14:48:09 +01:00
```
## Apply Configuration Files
Deploy persistent storage, deployment, services, and secrets:
```bash
2025-01-28 14:32:02 +01:00
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
2025-01-28 14:48:09 +01:00
```
2025-01-28 14:32:02 +01:00
2025-01-28 14:48:09 +01:00
## Persistent Volume Claims (PVC)
Check the status of PVCs in the Jupyter namespace:
```bash
2025-01-28 14:32:02 +01:00
kubectl get pvc -n jupyter
2025-01-28 14:48:09 +01:00
```
2025-01-28 14:32:02 +01:00
2025-01-28 14:48:09 +01:00
## Port Forwarding
```bash
2025-01-28 14:32:02 +01:00
kubectl -n jupyter port-forward svc/jupyter-notebook-service 8888:8888
2025-01-28 14:48:09 +01:00
```
## Logs and Debugging
2025-01-28 14:32:02 +01:00
2025-01-28 14:48:09 +01:00
```bash
kubectl -n jupyter logs <pod-name>
kubectl -n jupyter describe <pod-name>
```
2025-01-28 14:32:02 +01:00
2025-01-28 14:48:09 +01:00
> Replace `<pod-name>` with the name of your Jupyter pod (e.g., `jupyter-notebook-676fb4f85b-sb2h8`).
## Node Details
Get detailed information about cluster nodes:
```bash
2025-01-28 14:32:02 +01:00
kubectl get no -o=wide
2025-01-28 14:48:09 +01:00
```
---
## 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:
2025-01-28 14:32:02 +01:00
2025-01-28 14:48:09 +01:00
```bash
kubectl get deploy -n argocd -o=yaml
```
2025-01-29 11:49:31 +01:00