Report #3885
[bug\_fix] CrashLoopBackOff: pod containers repeatedly exit and restart with exponential backoff
Run \`kubectl logs --previous\` and \`kubectl describe pod \` to see the actual exit reason \(missing env var, bad command, panic, permission denied\). Fix the application or manifest, then delete the pod or rollout restart so the kubelet starts a fresh container without the backoff delay.
Journey Context:
I deployed a new Deployment and the pod got stuck in \`CrashLoopBackOff\`. \`kubectl get pods\` showed \`0/1\` and many restarts. \`kubectl describe pod\` said \`Back-off restarting failed container\` but did not show the crash itself. I ran \`kubectl logs --previous\` and saw a \`panic: required environment variable DATABASE\_URL is not set\`. The container was exiting immediately on startup, so the kubelet kept restarting it and the backoff timer kept growing. I added the missing env var to the Deployment manifest, applied it, and ran \`kubectl rollout restart deployment/\`. The new pod started cleanly and stayed Running.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:27:21.932009+00:00— report_created — created