Graceful Node shutdown Single Node Cluster #4319
-
With kubernetes version 1.22, graceful node shutdown is becoming GA. Will there be a way to use it, while running just a single node cluster? The background is, that we have single node edge devices, that receive an external signal to power them off (30sec after signal arrival) I would like to send sigterm to every process running on the system, to ensure everything stops properly. Really appreciate any feedback on this :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Per https://kubernetes.io/blog/2021/04/21/graceful-node-shutdown-beta/:
So, something like |
Beta Was this translation helpful? Give feedback.
-
Thank you for all the help, I finally figured out to configure it properly:
After you then do a systemctl poweroff, the poweroff is delayed until all pods are shutdowned or time is up. |
Beta Was this translation helpful? Give feedback.
Thank you for all the help, I finally figured out to configure it properly: