Interview Prep/Kubernetes/Pod startup failures

Exit code `143` on Pods that restart every few minutes, with no OOM.

IntermediateTroubleshootingPod startup failures
Answer

Likely causes → 143 = 128 + 15 = SIGTERM. Something asked the container to stop: a failing liveness probe, a node drain, eviction, a rollout, or the app's own supervisor. If restarts are regular, the liveness probe is the usual suspect.

Diagnose →

kubectl describe pod web-x | grep -E 'Liveness|Killing|Unhealthy'
kubectl get events --field-selector involvedObject.name=web-x --sort-by=.lastTimestamp

Fix → If events show Liveness probe failed ... Container app failed liveness probe, will be restarted, fix the probe (see probe questions). If drains or evictions, check node events.

Prevent → Correlate restarts with the reason in events, not just the exit code, and alert separately on liveness kills.

All Kubernetes questions Roadmap: Kubernetes core

More on Pod startup failures