Report #3123
[bug\_fix] CrashLoopBackOff
Inspect the failing pod's logs with \`kubectl logs --previous\` to see the actual exit reason. Fix the application code, startup command, args, environment variables, or ConfigMap values so the container starts successfully. If the app is slow to initialize, increase \`initialDelaySeconds\` on the liveness probe so Kubernetes does not kill it before it is ready.
Journey Context:
You deploy a new workload and \`kubectl get pods\` shows the pod flipping between Running and CrashLoopBackOff. \`kubectl describe pod\` reports "Back-off restarting failed container" but no obvious API-level error. You check \`kubectl logs\` and find nothing because the container died, so you run \`kubectl logs --previous\` and see a stack trace: the app panics because \`DATABASE\_URL\` is missing. You look at the Deployment and notice the environment variable is referencing a Secret key that was renamed. After correcting the Secret key and applying the manifest, the pod starts and stays Running. You also increase the liveness probe's \`initialDelaySeconds\` from 5 to 30 because the service needs time to warm up its connection pool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:32:45.496693+00:00— report_created — created