# Socktop WebTerm - Kubernetes Quick Start Get your terminal interface running on k3s in 5 minutes! ## Prerequisites Checklist - [ ] k3s cluster running - [ ] kubectl configured and working - [ ] DNS records for socktop.io pointing to your cluster - [ ] Nginx Ingress Controller installed on k3s - [ ] cert-manager installed (for automatic HTTPS) ## Quick Deploy ### Option 1: Automated Deploy Script ```bash cd kubernetes ./deploy.sh ``` The script will: 1. Check your cluster connection 2. Optionally configure TLS certificates for Pi nodes 3. Deploy all manifests 4. Wait for pods to be ready 5. Show you status and access URLs ### Option 2: Manual Deploy ```bash cd kubernetes # Apply all manifests kubectl apply -f . # Watch deployment progress kubectl get pods -l app=socktop-webterm -w ``` ### Option 3: Using Kustomize ```bash cd kubernetes # Deploy with kustomize kubectl apply -k . # Or customize on the fly kubectl apply -k . --replicas=5 ``` ## Verify Deployment ```bash # Check if pods are running kubectl get pods -l app=socktop-webterm # Expected output: # NAME READY STATUS RESTARTS AGE # socktop-webterm-xxxxxxxxxx-xxxxx 1/1 Running 0 30s # socktop-webterm-xxxxxxxxxx-xxxxx 1/1 Running 0 30s # socktop-webterm-xxxxxxxxxx-xxxxx 1/1 Running 0 30s ``` ## Access Your Terminal Open your browser to: - **https://socktop.io** - **https://www.socktop.io** - **https://origin.socktop.io** ## Common Issues ### 1. ImagePullBackOff Error Your k3s nodes can't pull from the Gitea registry. **Fix:** Configure insecure registry on each k3s node: ```bash # On each k3s node, create /etc/rancher/k3s/registries.yaml sudo tee /etc/rancher/k3s/registries.yaml <