>_ Dev Cheatsheets Dense, copy-paste-ready PDF references for working engineers

kubectl Troubleshooting & Daily Commands Cheat Sheet

A 4-page kubectl PDF for Kubernetes v1.31+: pod triage, debug containers, rollouts, DNS checks, pitfalls, and a 17-step debug checklist.

Get the full PDF, from $4.99

Pay what you want · instant download · 2–4 dense pages

What's in the full sheet
  • Quick Reference
  • Core Patterns
  • Production Commands
  • Best Practices
  • Common Pitfalls
  • Debugging Checklist
kubectl Troubleshooting & Daily Commands Cheat Sheet PDF preview

Free preview

Production-grade triage, debugging, and recovery with kubectl, targeting kubectl / Kubernetes v1.31+.

Quick Reference

Task Command
Wide pod status kubectl get pods -o wide -n <ns>
Full object state and events kubectl describe pod <pod>
Recent warnings kubectl events -n <ns> --types=Warning
Logs from the crashed container kubectl logs <pod> -c <ctr> --previous
Tail logs across a label kubectl logs -l app=web --prefix --since=15m -f
Shell into a container kubectl exec -it <pod> -c <ctr> -- sh
Ephemeral debug container kubectl debug -it <pod> --image=busybox:1.36 --target=<ctr>
Node shell kubectl debug node/<node> -it --image=busybox:1.36
Resource usage kubectl top pod -n <ns> --sort-by=memory
Rollout progress kubectl rollout status deploy/<name> --timeout=5m
Roll back kubectl rollout undo deploy/<name>
Local tunnel kubectl port-forward svc/<svc> 8080:80
RBAC check kubectl auth can-i <verb> <resource> --as=<user>
Preview changes kubectl diff -f <file>.yaml
Wait for readiness kubectl wait --for=condition=Ready pod -l app=web --timeout=120s

The rest of the sheet: Core Patterns, Production Commands, Best Practices, Common Pitfalls, Debugging Checklist.

Get the full PDF, from $4.99

Pay what you want · instant download · 2–4 dense pages

More cheat sheets

ADB Command Cheat Sheet: Android & Google TV Debugging, Debloating, and Device ControlA 4-page ADB reference for Android phones and Google TV: Wi-Fi pairing, app installs, reversible debloating, logcat, remote control, and fixes.
Git Advanced Workflows & Recovery Cheat Sheet4-page Git cheat sheet: reflog recovery, fixup/autosquash, rebase --onto, bisect run, conflict tools, and a baseline config. Git 2.38+.