diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs | 48 |
1 files changed, 48 insertions, 0 deletions
| @@ -0,0 +1,48 @@ | |||
| 1 | # Rocky SSH Container | ||
| 2 | Rocky Linux development environment with SSH access for Podman and Kubernetes. | ||
| 3 | |||
| 4 | ## Launcher Commands | ||
| 5 | ```bash | ||
| 6 | # Check image status and show build commands | ||
| 7 | python3 launcher.py | ||
| 8 | python3 launcher.py run | ||
| 9 | python3 launcher.py run -p 2222 | ||
| 10 | python3 launcher.py list | ||
| 11 | python3 launcher.py cleanup | ||
| 12 | ``` | ||
| 13 | |||
| 14 | ## Kubernetes Commands | ||
| 15 | ```bash | ||
| 16 | kubectl apply -f rocky-ssh-deployment.yaml | ||
| 17 | # Check pods with IPs | ||
| 18 | kubectl get pods -l app=rocky-dev-deploy -o wide | ||
| 19 | # Check services (networking), get deployment is for stateless (not this) | ||
| 20 | kubectl get svc rocky-dev-deploy-svc | ||
| 21 | # Delete specific pod (auto-recreates) | ||
| 22 | kubectl delete pod rocky-dev-deploy-0 | ||
| 23 | # Scale replicas | ||
| 24 | kubectl scale statefulset rocky-dev-deploy --replicas=10 | ||
| 25 | kubectl delete -f rocky-ssh-deployment.yaml | ||
| 26 | ``` | ||
| 27 | |||
| 28 | ## Local Registry (for Kubernetes) | ||
| 29 | ```bash | ||
| 30 | # Run a local registry | ||
| 31 | podman run -d -p 5000:5000 --name registry registry:2 | ||
| 32 | # Tag and push to local registry | ||
| 33 | podman tag localhost/rocky_dev:latest localhost:5000/rocky_dev:latest | ||
| 34 | podman push localhost:5000/rocky_dev:latest --tls-verify=false | ||
| 35 | # Update image in rocky-ssh-deployment.yaml to: localhost:5000/rocky_dev:latest | ||
| 36 | ``` | ||
| 37 | |||
| 38 | ## SSH Access | ||
| 39 | ```bash | ||
| 40 | # Podman (launcher shows connection command) | ||
| 41 | ssh root@<host> -p <port> | ||
| 42 | # Kubernetes (port forward - localhost only) | ||
| 43 | kubectl port-forward <pod-name> 2222:22 | ||
| 44 | ssh root@localhost -p 2222 | ||
| 45 | # Kubernetes (port forward - external access) | ||
| 46 | kubectl port-forward --address 0.0.0.0 <pod-name> 9999:22 | ||
| 47 | ssh root@<host> -p 9999 | ||
| 48 | ``` | ||
