Pod termination exceeds the grace period timeout when containers ignore SIGTERM, processes hang during shutdown, or finalization takes too long. Pods force-terminate without graceful cleanup.
Kubernetes sends SIGTERM to pods during shutdown (termination). The grace period (default 30 seconds) is the time allowed for graceful shutdown. If the pod does not terminate within this window, Kubernetes force-kills it (SIGKILL). This error indicates your application is not handling SIGTERM properly or takes longer than the grace period to shut down cleanly.
First diagnostic step
Second diagnostic step
Third diagnostic step
Fourth diagnostic step
Additional notes and platform-specific considerations.
Failed to connect to server: connection refused (HTTP/2)
How to fix "HTTP/2 connection refused" error in Kubernetes
missing request for cpu in container
How to fix "missing request for cpu in container" in Kubernetes HPA
error: invalid configuration
How to fix "error: invalid configuration" in Kubernetes
Fifth diagnostic step