Skip to content

Commit 7e386e5

Browse files
authored
Merge pull request #33170 from kinzhi/kinzhi22
[zh]Update content/zh/docs/reference/glossary/api-eviction.md
2 parents adcce7a + 87edc6a commit 7e386e5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/zh/docs/reference/glossary/api-eviction.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,21 @@ You can request eviction either by directly calling the Eviction API
3838
using a client of the kube-apiserver, like the `kubectl drain` command.
3939
When an `Eviction` object is created, the API server terminates the Pod.
4040
41+
API-initiated evictions respect your configured [`PodDisruptionBudgets`](/docs/tasks/run-application/configure-pdb/)
42+
and [`terminationGracePeriodSeconds`](/docs/concepts/workloads/pods/pod-lifecycle#pod-termination).
43+
4144
API-initiated eviction is not the same as [node-pressure eviction](/docs/concepts/scheduling-eviction/eviction/#kubelet-eviction).
4245
-->
4346
你可以通过 kube-apiserver 的客户端,比如 `kubectl drain` 这样的命令,直接调用 Eviction API 发起驱逐。
4447
`Eviction` 对象创建出来之后,该对象将驱动 API 服务器终止选定的Pod。
4548

49+
API 发起的驱逐取决于你配置的 [`PodDisruptionBudgets`](/zh/docs/tasks/run-application/configure-pdb/)
50+
[`terminationGracePeriodSeconds`](/zh/docs/concepts/workloads/pods/pod-lifecycle#pod-termination)
51+
4652
API 发起的驱逐不同于
4753
[节点压力引发的驱逐](/zh/docs/concepts/scheduling-eviction/eviction/#kubelet-eviction)
54+
55+
<!--
56+
* See [API-initiated eviction](/docs/concepts/scheduling-eviction/api-eviction/) for more information.
57+
-->
58+
* 有关详细信息,请参阅 [API 发起的驱逐](/zh/docs/concepts/scheduling-eviction/api-eviction/)

0 commit comments

Comments
 (0)