How do I debug Kubernetes CrashLoopBackOff?
Short answer: Start with pod events and the previous container logs. CrashLoopBackOff is usually caused by process exit, failed probes, missing config, image issues, or startup dependency failures.
Steps
- Paste kubectl get pods, describe pod, events, and previous container logs.
- Check restart count, exit code, last state, image pull status, and probe failures.
- Verify ConfigMaps, Secrets, service accounts, resource limits, and startup dependencies.
- Run the smallest kubectl command that confirms the suspected failure mode.
Use debugtools
Open the Kubernetes Debug Helper to run this workflow in the browser.
Related tools
Log Trace RebuilderSecret ScannerOpenTelemetry Trace Viewer