Debug a Workload in Kubernetes

From the Kubernetes Essentials cheat sheet ยท Troubleshooting ยท verified Aug 2026

Debug a Workload

Follow a repeatable inspection sequence.

bash
kubectl get pods
kubectl describe pod web
kubectl logs web
๐Ÿ“Œ Start with status, describe, events, then logs
๐Ÿ’ก --previous reads the last crashed container
๐Ÿ” debug can add an ephemeral container
โš ๏ธ Debug images still operate inside the cluster
debugeventslogs

Continue with Kubernetes Essentials

Save the full cheat sheet or work through every related task.

Back to the full Kubernetes Essentials cheat sheet