Questi tre stati coprono quasi tutti i blocchi quotidiani dei Pod Kubernetes. Sequenza diagnostica esatta in 3 comandi:
BASH
kubectl describe pod <pod> -n <ns> # eventi, exit code, imagePullSecrets
kubectl logs <pod> -n <ns> --previous # log del container appena crashato
kubectl get events -n <ns> --sort-by=.lastTimestampImagePullBackOff: tag immagine inesistente, typo nel registry oimagePullSecretsmancante/scaduto.OOMKilled(Exit Code 137): il container ha superatoresources.limits.memory. Verifica il profilo reale (heap JVM/Node/Python) e dimensionarequestselimitsrealistici.CrashLoopBackOff: l'app esce subito con errore (Exit Code 1/2: env var mancante, DB irraggiungibile, permessi file) oppure fallisce lalivenessProbetroppo aggressiva prima del boot completo (aggiungi unastartupProbe).