Day-to-day commands and troubleshooting.
Via kubectl (over Tailscale):
kubectl --context netclode -n netclode get podsVia SSH:
ssh root@netclode
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl -n netclode get podsControl plane:
kubectl --context netclode -n netclode logs -l app=control-plane -fAgent pods:
kubectl --context netclode -n netclode get pods -l sandbox=true
kubectl --context netclode -n netclode logs <agent-pod> -fk3s:
ssh root@netclode journalctl -u k3s -f# List all
kubectl --context netclode get pods -A
# Describe
kubectl --context netclode -n netclode describe pod <pod-name>
# Exec
kubectl --context netclode -n netclode exec -it deploy/control-plane -- sh
kubectl --context netclode -n netclode exec -it <agent-pod> -- /bin/bash
# Restart
kubectl --context netclode -n netclode rollout restart deployment control-plane# List
kubectl --context netclode -n netclode get sandbox
kubectl --context netclode -n netclode get sandboxclaim
# Describe
kubectl --context netclode -n netclode describe sandbox <name>
# Force delete stuck sandbox
kubectl --context netclode -n netclode delete sandbox <name> --force --grace-period=0
# Check warm pool
kubectl --context netclode -n netclode get sandboxwarmpool# PVCs
kubectl --context netclode -n netclode get pvc
# JuiceFS CSI
kubectl --context netclode -n kube-system get pods -l app=juicefs-csi-driver
kubectl --context netclode -n kube-system logs -l app=juicefs-csi-driverFor detailed JuiceFS maintenance procedures (garbage collection, trash cleanup, debugging), see JuiceFS Maintenance Guide.
# Services
kubectl --context netclode -n netclode get svc
# Tailscale operator
kubectl --context netclode -n tailscale get pods
kubectl --context netclode -n tailscale logs -l app=operatorImages are built by CI on push to master.
# Wait for CI
gh run watch
# Rollout specific services
make rollout-control-plane
make rollout-agent
make rollout-github-botManual trigger:
gh workflow run "Control Plane Image"
gh workflow run "Agent Image"curl http://netclode/health
curl http://netclode/readykubectl --context netclode top nodes
kubectl --context netclode -n netclode top podsSession stuck in "creating" - sandbox VM failed to start:
kubectl --context netclode -n netclode describe sandbox sandbox-<session-id>
ssh root@netclode journalctl -u k3s | grep kataAgent not responding - check process:
kubectl --context netclode -n netclode exec -it <agent-pod> -- ps aux | grep nodeTerminal not connecting - check control plane logs:
kubectl --context netclode -n netclode logs -l app=control-plane | grep terminalPreview URLs not working - check sandbox Tailscale service:
kubectl --context netclode -n netclode get svc | grep sandbox