Report #3541
[bug\_fix] CrashLoopBackOff
Inspect the pod's previous container logs with \`kubectl logs --previous\` to find the actual exit error. Then fix the application code, environment variables, config mounts, liveness/readiness probe settings, or entrypoint so the container starts successfully and stays running.
Journey Context:
You deploy a new service and run \`kubectl get pods\`. The pod restarts over and over, status flips to \`CrashLoopBackOff\`, and the \`RESTARTS\` counter climbs. You check \`kubectl describe pod\` and see \`Back-off restarting failed container\` but no real reason. You try \`kubectl logs\` and it's empty because the current container is already gone. Then you run \`kubectl logs --previous\` and see the real stack trace: a missing env var causes the app to panic on boot, or the liveness probe hits before the app finishes initializing so kubelet kills it repeatedly. You fix the env/config, adjust \`initialDelaySeconds\` on the probe, or fix the binary, and the pod stops crashing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T17:31:17.473689+00:00— report_created — created