Tools
Practical
By Samson Tanimawo, PhD
Published May 30, 2026
4 min read
kubectl Cheats for Incident Response
20 kubectl one-liners for incident response. Each with a real use case and what it catches.
Live workflow · 3 working · 1 queuedLive
Signal · gather Working
Decide · pick action Working
Apply · with verify Working
Learn · update playbook Queued
Describe and get
kubectl describe pod $p -n prod surfaces events that get pod $p hides.
Use describe first when investigating CrashLoop or pending pods.
Logs
kubectl logs -f deployment/api -n prod --previous shows last container's logs.
--since=1h scopes to recent.
Exec carefully
kubectl exec -it pod/$p -n prod -- /bin/sh enters the pod.
Use sparingly; production exec leaves no audit trail without extra setup.