Graceful Shutdown for Pods

Pods can shut down gracefully. The pattern.

preStop hook

Graceful shutdown is the discipline of having pods exit cleanly when terminated. The pod's in-flight work completes; new traffic is rejected; the termination is bounded. Without graceful shutdown, restarts and rolling updates produce dropped requests.

What preStop hooks provide:

preStop is the cleanup hook. The discipline is using it for the cleanup work each application needs.

Signal handling

The application receives SIGTERM. The signal handler is what makes the application graceful; without it, the application hard-exits at SIGTERM.

Signal handling is the application discipline. Graceful shutdown depends on the application code.

Test

The graceful shutdown is tested under load. Kill pods; verify no requests are dropped; the discipline is verified.

Graceful shutdown is one of those Kubernetes operational disciplines that prevents customer-visible failures during routine operations. Nova AI Ops integrates with cluster pod telemetry, surfaces shutdown patterns, and supports the team's reliability discipline.