Tagged articles
2 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Dec 21, 2023 · Cloud Native

Why Does a Kubernetes Pod Stay in Terminating State for 30 Seconds?

This article explains why a Kubernetes pod may remain in the Terminating state for up to 30 seconds, detailing the graceful shutdown process, the role of terminationGracePeriodSeconds and preStop hooks, and how to modify startup scripts to ensure prompt pod deletion.

Init ContainerKubernetesPod Termination
0 likes · 6 min read
Why Does a Kubernetes Pod Stay in Terminating State for 30 Seconds?
Open Source Linux
Open Source Linux
Sep 26, 2021 · Cloud Native

How to Gracefully Shut Down Kubernetes Pods Without Losing Traffic

During a Kubernetes deployment, the old pod is terminated while the new one starts, and by adding a preStop hook and properly configuring terminationGracePeriodSeconds, you can ensure graceful shutdown, propagate SIGTERM to all processes, avoid traffic loss, and handle signal forwarding for multi‑process containers.

Graceful ShutdownKubernetesPod Termination
0 likes · 6 min read
How to Gracefully Shut Down Kubernetes Pods Without Losing Traffic