Report #101917
[bug\_fix] CrashLoopBackOff
Inspect the previous container logs with \`kubectl logs --previous\`, then fix the failing command, missing dependency, bad config, or adjust the liveness/readiness probe thresholds if the app needs more startup time.
Journey Context:
You deploy a new Pod and \`kubectl get pods\` shows it flipping between Running and \`CrashLoopBackOff\`. \`kubectl describe pod\` says \`Back-off restarting failed container\`. First instinct is to check current logs, but the container is already dead, so \`kubectl logs\` returns nothing useful. You rerun with \`--previous\` and see a stack trace: the app panics because an environment variable is unset. After setting the missing env var in the Deployment, the Pod starts cleanly. In another case the app simply starts too slowly and the liveness probe kills it before initialization finishes; increasing \`initialDelaySeconds\` or switching to a startup probe stops the restart loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:39:38.235446+00:00— report_created — created