Inspect
| Command / topic | What it does |
kubectl get pods -A | List pods in all namespaces |
kubectl describe pod <name> | Events and config for a pod |
kubectl logs -f deploy/api | Follow deployment logs |
kubectl get svc,ingress | Services and ingress |
Change
| Command / topic | What it does |
kubectl apply -f manifest.yaml | Create or update from YAML |
kubectl rollout status deploy/api | Watch a rollout |
kubectl rollout undo deploy/api | Roll back one revision |
kubectl delete -f manifest.yaml | Delete resources in a file |
← All cheatsheets · Courses