CrashLoopBackOff is not an error itself—it is Kubernetes telling you that a container inside your Pod keeps starting, crashing, and waiting for an exponential backoff delay (10s, 20s, 40s, up to 5 minutes) before restarting again.
30-Second kubectl Diagnosis
Skip guessing and run these three commands in order to capture the exact exit code and crash logs before the container restarts again:
# 1. Check Last State & Exit Code (look for Reason: OOMKilled or Error) kubectl describe pod -n
# 2. Fetch logs from the PREVIOUS crashed container instance kubectl logs -n --previous --tail=100
# 3. Check cluster-level events sorted by time kubectl get events -n --sort-by= '.lastTimestamp'
Enter fullscreen mode
Exit fullscreen mode
Top 6 Root Causes & Exact Fixes
Exit Code 137 (OOMKilled): The container exceeded its memory limit.…