Skip to content

Commit 6d6b91f

Browse files
authored
Merge pull request #23740 from tengqm/zh-sync-eviction-policy
[zh] Add eviction policy page
2 parents 3a4b604 + c24b2a1 commit 6d6b91f

File tree

5 files changed

+52
-28
lines changed

5 files changed

+52
-28
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: 驱逐策略
3+
content_template: templates/concept
4+
weight: 60
5+
---
6+
<!--
7+
title: Eviction Policy
8+
content_template: templates/concept
9+
weight: 60
10+
-->
11+
12+
<!-- overview -->
13+
<!--
14+
This page is an overview of Kubernetes' policy for eviction.
15+
-->
16+
本页提供 Kubernetes 驱逐策略的概览。
17+
18+
<!-- body -->
19+
20+
<!--
21+
## Eviction Policy
22+
23+
The {{< glossary_tooltip text="Kubelet" term_id="kubelet" >}} can proactively monitor for and prevent total starvation of a
24+
compute resource. In those cases, the `kubelet` can reclaim the starved
25+
resource by proactively failing one or more Pods. When the `kubelet` fails
26+
a Pod, it terminates all of its containers and transitions its `PodPhase` to `Failed`.
27+
If the evicted Pod is managed by a Deployment, the Deployment will create another Pod
28+
to be scheduled by Kubernetes.
29+
-->
30+
## 驱逐策略 {#eviction-policy}
31+
32+
{{< glossary_tooltip text="Kubelet" term_id="kubelet" >}} 能够主动监测和防止计算资源的全面短缺。
33+
在资源短缺的情况下,`kubelet` 可以主动地结束一个或多个 Pod 以回收短缺的资源。
34+
`kubelet` 结束一个 Pod 时,它将终止 Pod 中的所有容器,而 Pod 的 `Phase` 将变为 `Failed`
35+
如果被驱逐的 Pod 由 Deployment 管理,这个 Deployment 会创建另一个 Pod 给 Kubernetes 来调度。
36+
37+
## {{% heading "whatsnext" %}}
38+
39+
<!--
40+
- Read [Configure out of resource handling](/docs/tasks/administer-cluster/out-of-resource/) to learn more about eviction signals, thresholds, and handling.
41+
-->
42+
- 阅读[配置资源不足的处理](/zh/docs/tasks/administer-cluster/out-of-resource/)
43+
进一步了解驱逐信号、阈值以及处理方法。
44+

content/zh/docs/concepts/scheduling-eviction/kube-scheduler.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ weight: 50
55
---
66

77
<!--
8-
---
98
title: Kubernetes Scheduler
109
content_type: concept
1110
weight: 50
12-
---
1311
-->
1412
<!-- overview -->
1513

content/zh/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: 调度器性能调优
33
content_type: concept
4-
weight: 70
4+
weight: 80
55
---
66
<!--
77
reviewers:
88
- bsalamat
99
title: Scheduler Performance Tuning
1010
content_type: concept
11-
weight: 70
11+
weight: 80
1212
-->
1313

1414
<!-- overview -->

content/zh/docs/concepts/scheduling-eviction/scheduling-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ reviewers:
33
- ahg-g
44
title: 调度框架
55
content_type: concept
6-
weight: 60
6+
weight: 70
77
---
88

99
<!--

content/zh/docs/tasks/administer-cluster/out-of-resource.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ nodes become unstable.
2929

3030
<!-- body -->
3131

32-
<!--
33-
## Eviction Policy
34-
35-
The `kubelet` can proactively monitor for and prevent total starvation of a
36-
compute resource. In those cases, the `kubelet` can reclaim the starved
37-
resource by proactively failing one or more Pods. When the `kubelet` fails
38-
a Pod, it terminates all of its containers and transitions its `PodPhase` to `Failed`.
39-
40-
If the evicted Pod is managed by a Deployment, the Deployment will create another Pod
41-
to be scheduled by Kubernetes.
42-
-->
43-
## 驱逐策略
44-
45-
`kubelet` 能够主动监测和防止计算资源的全面短缺。
46-
在那种情况下,`kubelet` 可以主动地结束一个或多个 Pod 以回收短缺的资源。
47-
`kubelet` 结束一个 Pod 时,它将终止 Pod 中的所有容器,而 Pod 的 `PodPhase` 将变为 `Failed`
48-
49-
如果被驱逐的 Pod 由 Deployment 管理,这个 Deployment 会创建另一个 Pod 给 Kubernetes 来调度。
5032

5133
<!--
5234
### Eviction Signals
@@ -61,16 +43,16 @@ the `kubelet` summary API.
6143
每个信号的值在 description 列描述,基于 `kubelet` 摘要 API。
6244

6345
<!--
64-
| Eviction Signal | Description |
65-
|----------------------------|-----------------------------------------------------------------------|
46+
| Eviction Signal | Description |
47+
|----------------------------|---------------------------------------------------------------------|
6648
| `memory.available` | `memory.available` := `node.status.capacity[memory]` - `node.stats.memory.workingSet` |
6749
| `nodefs.available` | `nodefs.available` := `node.stats.fs.available` |
6850
| `nodefs.inodesFree` | `nodefs.inodesFree` := `node.stats.fs.inodesFree` |
6951
| `imagefs.available` | `imagefs.available` := `node.stats.runtime.imagefs.available` |
7052
| `imagefs.inodesFree` | `imagefs.inodesFree` := `node.stats.runtime.imagefs.inodesFree` |
7153
-->
72-
| 驱逐信号 | 描述 |
73-
|----------------------------|-----------------------------------------------------------------------|
54+
| 驱逐信号 | 描述 |
55+
|----------------------------|---------------------------------------------------------------------|
7456
| `memory.available` | `memory.available` := `node.status.capacity[memory]` - `node.stats.memory.workingSet` |
7557
| `nodefs.available` | `nodefs.available` := `node.stats.fs.available` |
7658
| `nodefs.inodesFree` | `nodefs.inodesFree` := `node.stats.fs.inodesFree` |
@@ -131,7 +113,7 @@ support in favor of eviction in response to disk pressure.
131113
-->
132114
`imagefs` 可选。`kubelet` 使用 cAdvisor 自动发现这些文件系统。
133115
`kubelet` 不关心其它文件系统。当前不支持配置任何其它类型。
134-
例如,在专用 `filesytem` 中存储卷和日志是不可以的
116+
例如,在专用 `filesytem` 中存储卷和日志是 _不可以_
135117

136118
在将来的发布中,`kubelet`将废除当前存在的
137119
[垃圾回收](/zh/docs/concepts/cluster-administration/kubelet-garbage-collection/)

0 commit comments

Comments
 (0)