-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable graceful node shutdown for 1.30+ on AL2 #1544
base: main
Are you sure you want to change the base?
Conversation
/ci |
@cartermckinnon roger that! I've dispatched a workflow. 👍 |
@cartermckinnon the workflow that you requested has completed. 🎉
|
CI is broken after Packer finally pulled the plug on builtin plugins. Should be fixed by #1545 . |
/ci let's see if that did it... |
@cartermckinnon roger that! I've dispatched a workflow. 👍 |
@cartermckinnon the workflow that you requested has completed. 🎉
|
In my tests, this config didn't seem sufficient to actually block shutdown. I think we need to increase logind's |
@cartermckinnon EBS CSI FAQ troubleshooting section here proposes
But I still wonder how Karpenter or MNG node drain plays together with kubelet graceful shutdown. |
MNG and Karpenter will evict all the pods from a node before shutting it down, so you don't really need kubelet's graceful shutdown feature by the time the shutdown signal arrives (though some daemonsets could still benefit from it). The graceful shutdown feature is intended to honor your pods' own termination grace periods and cleanly shut them down when e.g. there is no orchestrator handling that for you (such as when the shutdown is unexpected). |
d858a25
to
786a770
Compare
141e688
to
f566d39
Compare
/ci |
f566d39
to
13e62ee
Compare
/ci |
@cartermckinnon roger that! I've dispatched a workflow. 👍 |
@cartermckinnon the workflow that you requested has completed. 🎉
|
/ci |
@cartermckinnon roger that! I've dispatched a workflow. 👍 |
@cartermckinnon the workflow that you requested has completed. 🎉
|
Agree, especially DaemonSets like EBS CSI would benefit from kubelet graceful node shutdown and the team even recommends it in its FAQ |
/ci |
@cartermckinnon is this blocked for a reason? Also what about AL2023? I was just looking through the code for Bottlerocket and I can't see any handling for |
Description of changes:
Configures a node shutdown period of 45 seconds, with the last 15 seconds reserved for critical pods, for Kubernetes versions 1.30 and above.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.