Skip to content
Preptima
mediumScenarioConceptMidSenior

A pod is stuck in CrashLoopBackOff. How do you debug it?

Kubernetes CrashLoopBackOff debugging starts with the previous container logs, exit code and pod events. Then separate application crashes from liveness probe kills, bad configuration, missing dependencies and OOMKilled restarts.

4 min readUpdated 2026-08-15

Answer

Short answer

Run kubectl logs --previous and inspect the last terminated state before guessing. Exit codes, events and probe messages usually tell whether the loop is an app crash, OOMKill, config issue or aggressive liveness probe.

Was this answer helpful?

Likely follow-ups

  • The logs are empty and the exit code is 137. What happened?
  • How would you debug a container that crashes before it can log anything?
  • How does this differ from ImagePullBackOff or CreateContainerConfigError?
  • What would you change so this is detected before it reaches production?

Related questions

Masterclass guide

Further reading

Related Topics