@tank/kubectl-cheatsheet
Installation
SKILL.md
Kubectl Cheat Sheet
Core Philosophy
- Optimize for the command you need right now — Cheat sheets should get you to the right command quickly, not explain Kubernetes from first principles.
- Group by operational task, not alphabetically — Operators think in “inspect pods” and “roll out a deployment,” not in raw verb order.
- Prefer safe read commands first —
get,describe,logs, anddiffshould come before write actions when debugging. - Make selectors and namespaces explicit — Most kubectl mistakes come from targeting the wrong objects or cluster scope.
- Include output shaping —
-o wide,-o yaml,jsonpath, and label selectors often matter as much as the base command.
Quick-Start: Common Problems
"What pods are broken right now?"
kubectl get pods -Akubectl describe pod <pod> -n <ns>kubectl logs <pod> -n <ns> --previous-> Seereferences/commands.md