CrashLoopBackOff
⚠️ What It Tells You
CrashLoopBackOff is a symptom, not a root cause. The container process starts, executes, and exits with a non-zero status code. Kubelet restarts it with an exponential back-off delay (10s, 20s, 40s up to 5m).
🔍 Common Root Causes
- Missing or malformed environment variables, ConfigMaps, or Secrets.
- Unhandled application panic, null pointer, or missing database migration.
- Incorrect
ENTRYPOINTorCMDarguments in container spec. - Failing liveness probe killing the container prematurely.
- Exit code 137 (OOM killed) or 139 (segmentation fault).
⌨️ Diagnostic Commands & Remediation
Fix: Check --previous logs for the stack trace. Verify ConfigMaps and Secrets referenced in envFrom exist. Ensure application dependencies (DB, Redis) are reachable before startup.