Skip to content

Commit b6f0036

Browse files
authored
Merge pull request #40852 from asa3311/safely-drain-node
[zh-cn] sync safely-drain-node
2 parents efd8be8 + eba2c63 commit b6f0036

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/zh-cn/docs/tasks/administer-cluster/safely-drain-node.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ configure a [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/).
5656
If availability is important for any applications that run or could run on the node(s)
5757
that you are draining, [configure a PodDisruptionBudgets](/docs/tasks/run-application/configure-pdb/)
5858
first and then continue following this guide.
59+
60+
It is recommended to set `AlwaysAllow` [Unhealthy Pod Eviction Policy](/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy)
61+
to your PodDisruptionBudgets to support eviction of misbehaving applications during a node drain.
62+
The default behavior is to wait for the application pods to become [healthy](/docs/tasks/run-application/configure-pdb/#healthiness-of-a-pod)
63+
before the drain can proceed.
5964
-->
6065
## (可选)配置干扰预算 {#configure-poddisruptionbudget}
6166

@@ -64,6 +69,12 @@ first and then continue following this guide.
6469
如果可用性对于正在清空的该节点上运行或可能在该节点上运行的任何应用程序很重要,
6570
首先 [配置一个 PodDisruptionBudgets](/zh-cn/docs/tasks/run-application/configure-pdb/) 并继续遵循本指南。
6671

72+
建议为你的 PodDisruptionBudgets 设置 `AlwaysAllow`
73+
[不健康 Pod 驱逐策略](/zh-cn/docs/tasks/run-application/configure-pdb/#healthiness-of-a-pod)
74+
以在节点清空期间支持驱逐异常的应用程序。
75+
默认行为是等待应用程序的 Pod 变为 [健康](/zh-cn/docs/tasks/run-application/configure-pdb/#healthiness-of-a-pod)后,
76+
才能进行清空操作。
77+
6778
<!--
6879
## Use `kubectl drain` to remove a node from service
6980

0 commit comments

Comments
 (0)