79719150

Date: 2025-07-29 19:49:37
Score: 0.5
Natty:
Report link

Is it guaranteed that user pods always receive a SIGTERM and have up to 15s for graceful shutdown, even on preemptible node shutdowns?

No, it is not guaranteed that user pods will always receive a SIGTERM signal or be given the full 15 second graceful shutdown window during preemptible node shutdowns in GKE. This states that a 15 second termination period for non-system Pods is provided on a best-effort basis. The kubelet tries to send a SIGTERM to non-system pods and allows up to 15 seconds for them to shut down, followed by another 15 seconds for system pods with system-cluster-critical or system-node-critical priority classes. However, this process is not guaranteed, particularly in situations involving resource constraints, node overload, or rapid VM termination.

Are there any known scenarios where this best-effort period is skipped or shortened (e.g. under load, node problems, shutdown method)?

Yes, there are possible scenarios where the best-effort 15 second graceful termination period may be skipped. These include :

How can I diagnose if kubelet failed to deliver the SIGTERM or the Pod didn’t get time to shut down?

For further information and reference you can refer to these documentations :

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (0.5):
Posted by: miracle