Report #3148
[bug\_fix] Init:CrashLoopBackOff
Inspect the init container logs with \`kubectl logs -c --previous\` \(or without \`--previous\` if it is the current attempt\). Fix the failing command, schema migration, permission, or dependency fetch in the init container spec. Ensure the init container has the correct environment variables, ConfigMaps, Secrets, and network access it needs.
Journey Context:
You deploy an application whose main container never starts; \`kubectl get pods\` shows Init:CrashLoopBackOff. The pod description shows the init container \`db-migrate\` exited with code 1. You run \`kubectl logs myapp-xyz -c db-migrate --previous\` and see the migration failed because it cannot resolve the database hostname \`postgres\` and therefore exits non-zero. The main container is blocked because init containers must complete before it starts. You update the init container to use the fully-qualified service name \`postgres.database.svc.cluster.local\` and provide the database password via a Secret it was missing. The init container completes and the main container starts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:35:44.365581+00:00— report_created — created