What are the common causes of CrashLoopBackOff in production and how do you triage quickly?
IntermediateProductionReliability & Rollouts
Answer
Application error or bad config (check kubectl logs --previous), missing Secret/ConfigMap, OOMKilled (exit 137), failing liveness probe, permissions on mounted volumes, wrong command/entrypoint (exit 126/127), or dependency unavailable at start. Triage order: events, previous logs, exit code, probes, resources.
kubectl describe pod web-7c9d | sed -n '/Last State/,/Ready/p'
kubectl logs web-7c9d --previous --tail=100
More on Reliability & Rollouts
What are the must-have settings for a production Deployment?BeginnerWhy use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerWhy do rollouts sometimes cause brief 502/503 errors?BeginnerHow many replicas should you run and how do you spread them?Beginner