Skip to content

Commit

Permalink
Update node-shutdown.md
Browse files Browse the repository at this point in the history
4.0
  • Loading branch information
Eason1118 authored Dec 17, 2024
1 parent 56591c0 commit 169e2a8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ via the [Non-Graceful Node Shutdown](#non-graceful-node-shutdown) procedure ment
-->
{{< feature-state feature_gate_name="WindowsGracefulNodeShutdown" >}}
## Windows节点体面关闭说明

<!--
The Windows graceful node shutdown feature depends on kubelet running as a Windows service,
it will then have a registered [service control handler](https://learn.microsoft.com/en-us/windows/win32/services/service-control-handler-function)
Expand All @@ -519,6 +520,7 @@ Windows节点体面关闭功能依赖于kubelet作为Windows服务运行。
在这种情况下,
kubelet会注册一个[Service控制处理器](https://learn.microsoft.com/zh-cn/windows/win32/api/winsvc/ns-winsvc-service_preshutdown_info),
以在发生预关闭事件时延迟关闭操作一段指定时间。

<!--
Windows graceful node shutdown is controlled with the `WindowsGracefulNodeShutdown`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
Expand All @@ -531,6 +533,7 @@ which is introduced in 1.32 as an alpha feature.
Windows graceful node shutdown can not be cancelled.
-->
Windows节点体面关闭过程一旦启动,无法取消。

<!--
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,
Expand All @@ -539,6 +542,7 @@ the node will have to go through the [Non-Graceful Node Shutdown](#non-graceful-
如果kubelet未作为Windows服务运行,
它将无法设置和监控[预关闭事件(Preshutdown)](https://learn.microsoft.com/zh-cn/windows/win32/api/winsvc/ns-winsvc-service_preshutdown_info)。
此时,节点将执行[非体面节点关闭](#non-graceful-node-shutdown)流程。

<!--
In the case where the Windows graceful node shutdown feature is enabled, but the kubelet is not
running as a Windows service, the kubelet will continue running instead of failing. However,
Expand Down

0 comments on commit 169e2a8

Please sign in to comment.