DevOps & CI/CD

Kubernetes Pod Graceful Termination Lifecycle

DevOps & CI/CD diagram · made in Skemio

Flowchart depicting Kubernetes pod termination flow: endpoint removal, SIGTERM signal, in-flight request draining check, and SIGKILL timeout handling.
Flowchart depicting Kubernetes pod termination flow: endpoint removal, SIGTERM signal, in-flight request draining check, and SIGKILL timeout handling.

What it shows

  • Endpoint removal and preStop hooks trigger concurrently upon pod deletion.
  • A SIGTERM signals your app to stop accepting traffic and flush buffers.
  • terminationGracePeriodSeconds guarantees a SIGKILL if jobs hang.

The takeaway

Graceful shutdowns prevent dropped connections by synchronizing network endpoint teardown with SIGTERM handling.

More devops & ci/cd diagrams