From c24b2a12bc7cb3f85c06f2785bfde40ed228ddaf Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Tue, 8 Sep 2020 08:50:48 +0800 Subject: [PATCH] Add eviction policy page This is a sync to English site change (#23478) --- .../scheduling-eviction/eviction-policy.md | 44 +++++++++++++++++++ .../scheduling-eviction/kube-scheduler.md | 2 - .../scheduler-perf-tuning.md | 4 +- .../scheduling-framework.md | 2 +- .../administer-cluster/out-of-resource.md | 28 +++--------- 5 files changed, 52 insertions(+), 28 deletions(-) create mode 100644 content/zh/docs/concepts/scheduling-eviction/eviction-policy.md diff --git a/content/zh/docs/concepts/scheduling-eviction/eviction-policy.md b/content/zh/docs/concepts/scheduling-eviction/eviction-policy.md new file mode 100644 index 0000000000000..f7dba04ca1367 --- /dev/null +++ b/content/zh/docs/concepts/scheduling-eviction/eviction-policy.md @@ -0,0 +1,44 @@ +--- +title: 驱逐策略 +content_template: templates/concept +weight: 60 +--- + + + + +本页提供 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" %}} + + +- 阅读[配置资源不足的处理](/zh/docs/tasks/administer-cluster/out-of-resource/), + 进一步了解驱逐信号、阈值以及处理方法。 + diff --git a/content/zh/docs/concepts/scheduling-eviction/kube-scheduler.md b/content/zh/docs/concepts/scheduling-eviction/kube-scheduler.md index 7d0e65d61944b..221cfd740f23f 100644 --- a/content/zh/docs/concepts/scheduling-eviction/kube-scheduler.md +++ b/content/zh/docs/concepts/scheduling-eviction/kube-scheduler.md @@ -5,11 +5,9 @@ weight: 50 --- diff --git a/content/zh/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md b/content/zh/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md index 0efa384a2739d..76586133bf019 100644 --- a/content/zh/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md +++ b/content/zh/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md @@ -1,14 +1,14 @@ --- title: 调度器性能调优 content_type: concept -weight: 70 +weight: 80 --- diff --git a/content/zh/docs/concepts/scheduling-eviction/scheduling-framework.md b/content/zh/docs/concepts/scheduling-eviction/scheduling-framework.md index d62f206d7620e..4b3cfd6627c26 100644 --- a/content/zh/docs/concepts/scheduling-eviction/scheduling-framework.md +++ b/content/zh/docs/concepts/scheduling-eviction/scheduling-framework.md @@ -3,7 +3,7 @@ reviewers: - ahg-g title: 调度框架 content_type: concept -weight: 60 +weight: 70 --- - -## 驱逐策略 - -`kubelet` 能够主动监测和防止计算资源的全面短缺。 -在那种情况下,`kubelet` 可以主动地结束一个或多个 Pod 以回收短缺的资源。 -当 `kubelet` 结束一个 Pod 时,它将终止 Pod 中的所有容器,而 Pod 的 `PodPhase` 将变为 `Failed`。 - -如果被驱逐的 Pod 由 Deployment 管理,这个 Deployment 会创建另一个 Pod 给 Kubernetes 来调度。 -| 驱逐信号 | 描述 | -|----------------------------|-----------------------------------------------------------------------| +| 驱逐信号 | 描述 | +|----------------------------|---------------------------------------------------------------------| | `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/)