Tagged articles
8 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?
System Architect Go
System Architect Go
Mar 27, 2023 · Cloud Native

Understanding Kubernetes Endpoint Propagation and Graceful Pod Deletion

Deleting a pod triggers endpoint removal, but various components like kube-proxy, CoreDNS, and ingress controllers may still route traffic until the endpoint fully propagates, so you must wait or use preStop hooks to delay deletion and handle SIGTERM gracefully within the configurable shutdown period.

Endpoint PropagationGraceful ShutdownKubernetes
0 likes · 5 min read
Understanding Kubernetes Endpoint Propagation and Graceful Pod Deletion
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
Code Ape Tech Column
Code Ape Tech Column
May 28, 2021 · Backend Development

Why kill -9 Can Corrupt Your Data and How to Gracefully Shut Down Spring Boot

The article explains the dangers of using kill -9 to terminate Java processes, illustrates how it can cause data loss in database operations, and provides several practical approaches—including SIGTERM, ConfigurableApplicationContext.close(), Spring Boot Actuator, and a custom Tomcat shutdown hook—to gracefully stop Spring Boot services while preserving data integrity.

ActuatorGraceful ShutdownJava
0 likes · 21 min read
Why kill -9 Can Corrupt Your Data and How to Gracefully Shut Down Spring Boot
Node Underground
Node Underground
Oct 25, 2016 · Backend Development

How to Gracefully Shut Down Your Application: A Step-by-Step Guide

Graceful application shutdown prevents blocked requests, accidental data writes, and operation failures by releasing resources, closing database connections, and handling SIGTERM signals, and this article outlines a practical step-by-step process—including load balancer coordination and sample Node.js code—to ensure clean termination.

Graceful ShutdownResource CleanupSIGTERM
0 likes · 2 min read
How to Gracefully Shut Down Your Application: A Step-by-Step Guide