CrashLoopBackOff

Pod restart loop diagnosis, previous logs, init containers, liveness probes, resource limits, and config errors.

Overview

Overview

CrashLoopBackOff is a Kubernetes status meaning a container keeps crashing and Kubernetes waits longer before each restart. The backoff starts at 10 seconds and doubles (20s, 40s, 80s... up to 5 minutes). The status is not the error itself: the repeated crashing is.

The loop has three steps, and it repeats until the cause is fixed.

  • The container starts.
  • It crashes with a non-zero exit code.
  • Kubernetes waits out the backoff, 10s, then 20s, 40s, 80s and so on, capped at 5 minutes between restarts, and starts the container again.

Key concepts

  • kubectl logs --previous
  • Exit code 137
  • Exit code 1
  • Liveness probe
  • Init container

Interview questions

  • A pod is in CrashLoopBackOff. Walk through your complete diagnosis.

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio