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