-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Add windows node graceful shutdown doc #48474
Conversation
|
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @zylxjtu 👋 Just a reminder to take a look at Documenting for a release - PR Ready for Review to get your PR ready for review ahead of the "Ready for Review" deadline on Tuesday November 19th 2024 18:00 PST. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/easycla
63fe604
to
8833042
Compare
- stage: beta | ||
defaultValue: true | ||
fromVersion: "1.33" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want this in here, until we get to the 1.33 release and make a decision on this in the KEP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
|
||
If Kubelet is not running as a Windows service, it will not be able to set and monitor | ||
the [Preshutdown](https://learn.microsoft.com/en-us/windows/win32/api/winsvc/ns-winsvc-service_preshutdown_info) event, | ||
the node will have to go through the [Non-Graceful Node Shutdown](#non-graceful-node-shutdown) procedure mentioned above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the node will have to go through the [Non-Graceful Node Shutdown](#non-graceful-node-shutdown) procedure mentioned above. | |
the node will have to go through the [Non-Graceful Node Shutdown](#non-graceful-node-shutdown) procedure mentioned above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the user get a log? Will kubelet fail or will it silently continue on in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
- stage: alpha | ||
defaultValue: false | ||
fromVersion: "1.32" | ||
toVersion: "1.32" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean these 4 lines or the line 12?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature will not go away by the end of 1.32, right?
So line 12 should be removed.
content/en/docs/concepts/cluster-administration/node-shutdown.md
Outdated
Show resolved
Hide resolved
it will then have a registered [service control handler](https://learn.microsoft.com/en-us/windows/win32/services/service-control-handler-function) | ||
to delay the presshutdown event with a given duration. | ||
|
||
Windows graceful node shutdown is controlled with the `WindowsGracefulNodeShutdown` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows graceful node shutdown is controlled with the `WindowsGracefulNodeShutdown` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) | |
Windows graceful node shutdown is controlled with the `WindowsGracefulNodeShutdown` | |
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will update, just wondering what the visual difference will be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the perspective of the rendered HTML, nothing is different.
From the perspective of docs "source", we discourage long lines, because git diff works
on a line-by-line comparison basis. Changes to long lines are difficult to figure out
thus are difficult to review. For downstream localization teams, they need to track the
upstream changes on a line by line basis. Long lines make their lives suck.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tengqm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
LGTM label has been added. Git tree hash: b023a62ff23b7a5968106914519284cef03a8a7d
|
/sig windows |
/hold cancel |
|
||
Windows graceful node shutdown is controlled with the `WindowsGracefulNodeShutdown` | ||
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) | ||
which is introduced in 1.32 as an alpha feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zylxjtu, @SergeyKanzhelev If a user wants to use this feature, the GracefulNodeShutdown and WindowsGracefulNodeShutdown feature-gate must be turned on together. Is it correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, depends on which platform are you on, you only need to enable one of them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds like a bug. If GracefulNodeShutdown
is false, the kubelet shouldn't provide graceful node shutdown.
(or, we should document that the feature gate is misnamed and ought to be treated as if it were named LinuxGracefulNodeShutdown
).
Description
Issue
kubernetes/enhancements#4802
code PR:
kubernetes/kubernetes#127404
Closes: #