Report #149
[bug\_fix] Init:CrashLoopBackOff
Use 'kubectl describe pod ' to identify which init container is failing, then read its logs with 'kubectl logs -c --previous'. Fix the init container's script, dependency, or resource limit so it exits 0, because Kubernetes will not start app containers until every init container succeeds.
Journey Context:
A pod shows STATUS Init:CrashLoopBackOff and never reaches Running. Init containers are a hard gate: they run to completion in order before any app container starts, and if one crashes Kubernetes restarts it with the same exponential backoff as a main container. The describe output shows which init container is in CrashLoopBackOff and its exit code. kubectl logs -c --previous reveals the actual failure, which is usually a waiting script that hard-failed when the database was unreachable, a migration command with a bad connection string, a chmod on a read-only filesystem, or an OOMKilled init container that had no memory limit. Because app containers are not running yet, application logs are empty and the issue is easy to misattribute. Once the init container's command succeeds, the pod immediately proceeds to start the main containers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-12T18:36:19.673479+00:00— report_created — created