Merge pull request #23740 from tengqm/zh-sync-eviction-policy

[zh] Add eviction policy page
This commit is contained in:
Kubernetes Prow Robot
2020-09-07 23:05:42 -07:00
committed by GitHub
5 changed files with 52 additions and 28 deletions
@@ -29,24 +29,6 @@ nodes become unstable.
<!-- body -->
<!--
## Eviction Policy
The `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.
-->
## 驱逐策略
`kubelet` 能够主动监测和防止计算资源的全面短缺。
在那种情况下,`kubelet` 可以主动地结束一个或多个 Pod 以回收短缺的资源。
`kubelet` 结束一个 Pod 时,它将终止 Pod 中的所有容器,而 Pod 的 `PodPhase` 将变为 `Failed`
如果被驱逐的 Pod 由 Deployment 管理,这个 Deployment 会创建另一个 Pod 给 Kubernetes 来调度。
<!--
### Eviction Signals
@@ -61,16 +43,16 @@ the `kubelet` summary API.
每个信号的值在 description 列描述,基于 `kubelet` 摘要 API。
<!--
| Eviction Signal | Description |
|----------------------------|-----------------------------------------------------------------------|
| Eviction Signal | Description |
|----------------------------|---------------------------------------------------------------------|
| `memory.available` | `memory.available` := `node.status.capacity[memory]` - `node.stats.memory.workingSet` |
| `nodefs.available` | `nodefs.available` := `node.stats.fs.available` |
| `nodefs.inodesFree` | `nodefs.inodesFree` := `node.stats.fs.inodesFree` |
| `imagefs.available` | `imagefs.available` := `node.stats.runtime.imagefs.available` |
| `imagefs.inodesFree` | `imagefs.inodesFree` := `node.stats.runtime.imagefs.inodesFree` |
-->
| 驱逐信号 | 描述 |
|----------------------------|-----------------------------------------------------------------------|
| 驱逐信号 | 描述 |
|----------------------------|---------------------------------------------------------------------|
| `memory.available` | `memory.available` := `node.status.capacity[memory]` - `node.stats.memory.workingSet` |
| `nodefs.available` | `nodefs.available` := `node.stats.fs.available` |
| `nodefs.inodesFree` | `nodefs.inodesFree` := `node.stats.fs.inodesFree` |
@@ -131,7 +113,7 @@ support in favor of eviction in response to disk pressure.
-->
`imagefs` 可选。`kubelet` 使用 cAdvisor 自动发现这些文件系统。
`kubelet` 不关心其它文件系统。当前不支持配置任何其它类型。
例如,在专用 `filesytem` 中存储卷和日志是不可以的。
例如,在专用 `filesytem` 中存储卷和日志是 _不可以_ 的。
在将来的发布中,`kubelet`将废除当前存在的
[垃圾回收](/zh/docs/concepts/cluster-administration/kubelet-garbage-collection/)