McKube 0 requests sent

Kubernetes Exit Code 143 (SIGTERM)

Understanding graceful SIGTERM exits during rolling updates, preemption, and liveness probe kills.

MEDIUM · Exit 143 / SIGTERM

Root Cause

The container received SIGTERM (128 + 15 = 143) and shut down gracefully before terminationGracePeriodSeconds elapsed.

How to Fix

  • Check Events to distinguish normal deployment rollouts from livenessProbe failures or node preemption.
  • Add a short lifecycle.preStop sleep (5-10s) so kube-proxy and Ingress controllers finish removing the endpoint before sockets close.

Diagnostic Commands

kubectl get events -n <ns> --sort-by=.lastTimestamp | tail -n 25