-
Notifications
You must be signed in to change notification settings - Fork 544
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
Talos is not respecting kubelet node shutdown timers when overriden in kubelet config. #7138
Comments
I'm pretty sure it works (it gets passed to the kubelet), I wonder if it's something in the kubelet which doesn't accept such values. Talos itself ignores these values. If the kubelet itself got the values (it reports them on start on the log), there's nothing we can do on Talos side about it. |
Ok, I found it, looks like on Talos side the max supported inhibit delay (that's the mechanism behind graceful shutdown) is hardcoded to be 60s. So anything above 60s won't work, as kubelet will deny it. Not sure what exactly is the |
Thanks @smira for clarifying. For me it's ok if we close the issue if you do not want to add validation checks? |
I thought we could bump the default on Talos side. I don't think there's anything wrong about making the max higher |
Fixes siderolabs#7138 This brings max shutdown period to 20 min that kubelet would accept. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Fixes siderolabs#7138 This brings max shutdown period to 20 min that kubelet would accept. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Fixes siderolabs#7138 This brings max shutdown period to 20 min that kubelet would accept. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com> (cherry picked from commit 344746a)
ensure to wait as long as possibly given to kubelet shutdown timers. Related to fix of siderolabs#7138 Signed-off-by: Niklas Wik <niklas.wik@nokia.com>
Ensure to wait as long as possibly given to kubelet shutdown timers. Related to fix of siderolabs#7138 Signed-off-by: Niklas Wik <niklas.wik@nokia.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Ensure to wait as long as possibly given to kubelet shutdown timers. Related to fix of siderolabs#7138 Signed-off-by: Niklas Wik <niklas.wik@nokia.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com> (cherry picked from commit 339986d)
Bug Report
Description
When specifying custom timers for Kubelet node shutdown, Talos is proceeding with termination of kubelet immediately and not giving Kubelet the amount of time specified.
Using this kubelet configuration:
Logs
Talos proceeds immediately to terminate Kubelet even there should be graceperiod given to kubelet.
Environment
The text was updated successfully, but these errors were encountered: