Report #87013
[bug\_fix] CrashLoopBackOff: pod container exits repeatedly with exponential backoff
Inspect \`kubectl describe pod\` Last State / exit code and \`kubectl logs --previous\`. Fix the underlying application error \(missing env var, bad config, uncaught exception\), then redeploy. If the container is failing a liveness probe too early, add or increase \`startupProbe\`/\`initialDelaySeconds\` so the app has time to initialize.
Journey Context:
You deploy a new image to a production Deployment. The rollout finishes, but \`kubectl get pods\` shows 0/1 and CrashLoopBackOff with the RESTARTS counter climbing. \`kubectl describe pod\` reveals Last State: Terminated, Reason: Error, Exit Code: 1. Current logs are empty because the container is not running, so you run \`kubectl logs --previous\` and see a stack trace ending in Error: missing required environment variable DB\_HOST. Looking back at the Deployment manifest, you notice the DB\_HOST env var was removed in the last refactor. The pod starts, the app panics within seconds, kubelet kills it, waits 10s, 20s, 40s, and enters CrashLoopBackOff. After adding the env var back, the container starts cleanly and the restart counter stops increasing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:38:30.465784+00:00— report_created — created