forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#23740 from tengqm/zh-sync-eviction-policy
[zh] Add eviction policy page
- Loading branch information
Showing
5 changed files
with
52 additions
and
28 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
content/zh/docs/concepts/scheduling-eviction/eviction-policy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: 驱逐策略 | ||
content_template: templates/concept | ||
weight: 60 | ||
--- | ||
<!-- | ||
title: Eviction Policy | ||
content_template: templates/concept | ||
weight: 60 | ||
--> | ||
|
||
<!-- overview --> | ||
<!-- | ||
This page is an overview of Kubernetes' policy for eviction. | ||
--> | ||
本页提供 Kubernetes 驱逐策略的概览。 | ||
|
||
<!-- body --> | ||
|
||
<!-- | ||
## Eviction Policy | ||
The {{< glossary_tooltip text="Kubelet" term_id="kubelet" >}} can proactively monitor for and prevent total starvation of a | ||
compute resource. In those cases, the `kubelet` can reclaim the starved | ||
resource by proactively failing one or more Pods. When the `kubelet` fails | ||
a Pod, it terminates all of its containers and transitions its `PodPhase` to `Failed`. | ||
If the evicted Pod is managed by a Deployment, the Deployment will create another Pod | ||
to be scheduled by Kubernetes. | ||
--> | ||
## 驱逐策略 {#eviction-policy} | ||
|
||
{{< glossary_tooltip text="Kubelet" term_id="kubelet" >}} 能够主动监测和防止计算资源的全面短缺。 | ||
在资源短缺的情况下,`kubelet` 可以主动地结束一个或多个 Pod 以回收短缺的资源。 | ||
当 `kubelet` 结束一个 Pod 时,它将终止 Pod 中的所有容器,而 Pod 的 `Phase` 将变为 `Failed`。 | ||
如果被驱逐的 Pod 由 Deployment 管理,这个 Deployment 会创建另一个 Pod 给 Kubernetes 来调度。 | ||
|
||
## {{% heading "whatsnext" %}} | ||
|
||
<!-- | ||
- Read [Configure out of resource handling](/docs/tasks/administer-cluster/out-of-resource/) to learn more about eviction signals, thresholds, and handling. | ||
--> | ||
- 阅读[配置资源不足的处理](/zh/docs/tasks/administer-cluster/out-of-resource/), | ||
进一步了解驱逐信号、阈值以及处理方法。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
content/zh/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ reviewers: | |
- ahg-g | ||
title: 调度框架 | ||
content_type: concept | ||
weight: 60 | ||
weight: 70 | ||
--- | ||
|
||
<!-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters