STATUS ist nicht Phase
Die STATUS-Spalte von get pods ist eine Anzeige:
CrashLoopBackOff oder Terminating sind
keine Phase, status.phase bleibt etwa
Running. Erster Blick: describe pod.
describe zeigt Events seit v1.36 nur beim Einzelobjekt, für
mehrere --show-events.
CrashLoopBackOff: Neustart mit Backoff 10 s,
20 s, 40 s bis 5 min; logs --previous
zeigt den Absturz. OOMKilled steht nach dem Neustart in
lastState.terminated.reason.
ImagePullBackOff: das Event nennt die
Registry-Antwort. Pending: ist der Pod noch nicht eingeplant, nennt
FailedScheduling den Grund.
kubectl get pods -A --field-selector=status.phase=Pending
kubectl describe pod api-7c9f
kubectl events -n prod --types=Warning
kubectl get pod api-7c9f -o jsonpath=\
'{.status.containerStatuses[*].lastState.terminated.reason}'
kubectl debug pod/api-7c9f -it --copy-to=api-dbg \
--container=app -- sh