Skip to content

Commit

Permalink
sync safely-drain-node
Browse files Browse the repository at this point in the history
sync safely-drain-node
  • Loading branch information
asa3311 authored and rul3m4k3r committed Apr 28, 2023
1 parent dc434dd commit e0033c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/zh-cn/docs/tasks/administer-cluster/safely-drain-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ configure a [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/).
If availability is important for any applications that run or could run on the node(s)
that you are draining, [configure a PodDisruptionBudgets](/docs/tasks/run-application/configure-pdb/)
first and then continue following this guide.
It is recommended to set `AlwaysAllow` [Unhealthy Pod Eviction Policy](/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy)
to your PodDisruptionBudgets to support eviction of misbehaving applications during a node drain.
The default behavior is to wait for the application pods to become [healthy](/docs/tasks/run-application/configure-pdb/#healthiness-of-a-pod)
before the drain can proceed.
-->
## (可选)配置干扰预算 {#configure-poddisruptionbudget}

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

建议为你的 PodDisruptionBudgets 设置 `AlwaysAllow`
[不健康 Pod 驱逐策略](/zh-cn/docs/tasks/run-application/configure-pdb/#healthiness-of-a-pod)
以在节点清空期间支持驱逐异常的应用程序。
默认行为是等待应用程序的 Pod 变为 [健康](/zh-cn/docs/tasks/run-application/configure-pdb/#healthiness-of-a-pod)后,
才能进行清空操作。

<!--
## Use `kubectl drain` to remove a node from service
Expand Down

0 comments on commit e0033c6

Please sign in to comment.