@@ -15,7 +15,8 @@ weight: 20
1515You can customize the behavior of the `kube-scheduler` by writing a configuration
1616file and passing its path as a command line argument.
1717-->
18- 你可以通过编写配置文件,并将其路径传给 ` kube-scheduler ` 的命令行参数,定制 ` kube-scheduler ` 的行为。
18+ 你可以通过编写配置文件,并将其路径传给 ` kube-scheduler ` 的命令行参数,
19+ 定制 ` kube-scheduler ` 的行为。
1920
2021<!-- overview -->
2122
@@ -102,72 +103,88 @@ extension points:
1021031. `queueSort`:这些插件对调度队列中的悬决的 Pod 排序。
103104 一次只能启用一个队列排序插件。
104105<!--
106+ 1. `placementGenerate` : These plugins generate potential placements (sets of
107+ nodes) where a considered PodGroup could be scheduled. This extension point
108+ is only applicable to PodGroup scheduling and requires Workload scheduling
109+ to be enabled.
110+ -->
111+ 2. `placementGenerate`:这些插件会生成潜在的部署位置(节点集合),
112+ 用于调度指定的 PodGroup。此扩展点仅适用于 PodGroup 调度,
113+ 并且需要启用工作负载调度。
114+ <!--
115+ 1. `placementScore` : These plugins score the placements proposed by
116+ ` placementGenerate` , to pick the optimal placement for the considered
117+ PodGroup.
118+ -->
119+ 3. `placementScore`:这些插件对 `placementGenerate`
120+ 提出的放置位置进行评分,以便为所考虑的 PodGroup 选择最佳放置位置。
121+ <!--
1051221. `preFilter` : These plugins are used to pre-process or check information
106123 about a Pod or the cluster before filtering. They can mark a pod as
107124 unschedulable.
108- -->
109- 2 . `preFilter`:这些插件用于在过滤之前预处理或检查 Pod 或集群的信息。
125+ -->
126+ 4 . `preFilter`:这些插件用于在过滤之前预处理或检查 Pod 或集群的信息。
110127 它们可以将 Pod 标记为不可调度。
111128<!--
1121291. `filter` : These plugins are the equivalent of Predicates in a scheduling
113130 Policy and are used to filter out nodes that can not run the Pod. Filters
114131 are called in the configured order. A pod is marked as unschedulable if no
115132 nodes pass all the filters.
116133-->
117- 3 . `filter`:这些插件相当于调度策略中的断言(Predicates),用于过滤不能运行 Pod 的节点。
134+ 5 . `filter`:这些插件相当于调度策略中的断言(Predicates),用于过滤不能运行 Pod 的节点。
118135 过滤器的调用顺序是可配置的。
119136 如果没有一个节点通过所有过滤器的筛选,Pod 将会被标记为不可调度。
120137<!--
1211381. `postFilter` : These plugins are called in their configured order when no
122139 feasible nodes were found for the pod. If any `postFilter` plugin marks the
123140 Pod _schedulable_, the remaining plugins are not called.
124141-->
125- 4 . `postFilter`:当无法为 Pod 找到可用节点时,按照这些插件的配置顺序调用他们。
142+ 6 . `postFilter`:当无法为 Pod 找到可用节点时,按照这些插件的配置顺序调用他们。
126143 如果任何 `postFilter` 插件将 Pod 标记为**可调度**,则不会调用其余插件。
127144<!--
1281451. `preScore` : This is an informational extension point that can be used
129146 for doing pre-scoring work.
130147-->
131- 5 . `preScore`:这是一个信息扩展点,可用于预打分工作。
148+ 7 . `preScore`:这是一个信息扩展点,可用于预打分工作。
132149<!--
1331501. `score` : These plugins provide a score to each node that has passed the
134151 filtering phase. The scheduler will then select the node with the highest
135152 weighted scores sum.
136153-->
137- 6 . `score`:这些插件给通过筛选阶段的节点打分。调度器会选择得分最高的节点。
154+ 8 . `score`:这些插件给通过筛选阶段的节点打分。调度器会选择得分最高的节点。
138155<!--
1391561. `reserve` : This is an informational extension point that notifies plugins
140157 when resources have been reserved for a given Pod. Plugins also implement an
141158 ` Unreserve` call that gets called in the case of failure during or after
142159 ` Reserve` .
143160-->
144- 7 . `reserve`:这是一个信息扩展点,当资源已经预留给 Pod 时,会通知插件。
161+ 9 . `reserve`:这是一个信息扩展点,当资源已经预留给 Pod 时,会通知插件。
145162 这些插件还实现了 `Unreserve` 接口,在 `Reserve` 期间或之后出现故障时调用。
146163<!--
1471641. `permit` : These plugins can prevent or delay the binding of a Pod.
148165-->
149- 8 . `permit`:这些插件可以阻止或延迟 Pod 绑定。
166+ 10 . `permit`:这些插件可以阻止或延迟 Pod 绑定。
150167<!--
1511681. `preBind` : These plugins perform any work required before a Pod is bound.
152169-->
153- 9 . `preBind`:这些插件在 Pod 绑定节点之前执行。
170+ 11 . `preBind`:这些插件在 Pod 绑定节点之前执行。
154171<!--
1551721. `bind` : The plugins bind a Pod to a Node. `bind` plugins are called in order
156173 and once one has done the binding, the remaining plugins are skipped. At
157174 least one bind plugin is required.
158175-->
159- 10 . `bind`:这个插件将 Pod 与节点绑定。`bind` 插件是按顺序调用的,只要有一个插件完成了绑定,
176+ 12 . `bind`:这个插件将 Pod 与节点绑定。`bind` 插件是按顺序调用的,只要有一个插件完成了绑定,
160177 其余插件都会跳过。`bind` 插件至少需要一个。
161178<!--
1621791. `postBind` : This is an informational extension point that is called after
163180 a Pod has been bound.
164181-->
165- 11 . `postBind`:这是一个信息扩展点,在 Pod 绑定了节点之后调用。
182+ 13 . `postBind`:这是一个信息扩展点,在 Pod 绑定了节点之后调用。
166183<!--
1671841. `multiPoint` : This is a config-only field that allows plugins to be enabled
168185 or disabled for all of their applicable extension points simultaneously.
169186-->
170- 12 . `multiPoint`:这是一个仅配置字段,允许同时为所有适用的扩展点启用或禁用插件。
187+ 14 . `multiPoint`:这是一个仅配置字段,允许同时为所有适用的扩展点启用或禁用插件。
171188
172189<!--
173190For each extension point, you could disable specific [default plugins](#scheduling-plugins)
@@ -259,7 +276,8 @@ extension points:
259276 [Pod topology spread](/docs/concepts/scheduling-eviction/topology-spread-constraints/).
260277 Extension points : ` preFilter` , `filter`, `preScore`, `score`.
261278-->
262- - ` PodTopologySpread` :实现了 [Pod 拓扑分布](/zh-cn/docs/concepts/scheduling-eviction/topology-spread-constraints/)。
279+ - ` PodTopologySpread` :实现了
280+ [Pod 拓扑分布](/zh-cn/docs/concepts/scheduling-eviction/topology-spread-constraints/)。
263281
264282 实现的扩展点:`preFilter`、`filter`、`preScore`、`score`。
265283
@@ -273,16 +291,20 @@ extension points:
273291 实现的扩展点:`filter`。
274292
275293<!--
276- - `NodeResourcesFit` : Checks if the node has all the resources that the Pod is
277- requesting. The score can use one of three strategies : ` LeastAllocated`
278- (default), `MostAllocated` and `RequestedToCapacityRatio`.
279- Extension points : ` preFilter` , `filter`, `score`.
294+ - `NodeResourcesFit` : For pod-by-pod scheduling checks if the node has all
295+ the resources that the Pod is requesting. The score can use one of three
296+ strategies : ` LeastAllocated` (default), `MostAllocated` and
297+ ` RequestedToCapacityRatio` .
298+ For PodGroup scheduling calculates the resource utilization in the entire evaluated placement.
299+ The score uses the `MostAllocated` strategy.
300+ Extension points : ` preFilter` , `filter`, `score`, `placementScore`.
280301-->
281- - ` NodeResourcesFit` :检查节点是否拥有 Pod 请求的所有资源。
282- 得分可以使用以下三种策略之一 :`LeastAllocated`(默认)、`MostAllocated`
302+ - ` NodeResourcesFit` :对于逐 Pod 调度,会检查节点是否拥有 Pod 请求的所有资源。
303+ 评分可以使用三种策略之一 :`LeastAllocated`(默认)、`MostAllocated`
283304 和 `RequestedToCapacityRatio`。
284-
285- 实现的扩展点:`preFilter`、`filter`、`score`。
305+ 对于 PodGroup 调度,会计算整个评估放置区域的资源利用率。
306+ 评分使用 `MostAllocated` 策略。
307+ 实现的扩展点:`preFilter`、`filter`、`score`、`placementScore`。
286308
287309<!--
288310- `NodeResourcesBalancedAllocation` : Favors nodes that would obtain a more
@@ -374,7 +396,8 @@ extension points:
374396 [inter-Pod affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity).
375397 Extension points : ` preFilter` , `filter`, `preScore`, `score`.
376398-->
377- - ` InterPodAffinity` :实现 [Pod 间亲和性与反亲和性](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)。
399+ - ` InterPodAffinity` :实现
400+ [Pod 间亲和性与反亲和性](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)。
378401
379402 实现的扩展点:`preFilter`、`filter`、`preScore`、`score`。
380403
@@ -402,6 +425,24 @@ extension points:
402425
403426 实现的扩展点:`postFilter`。
404427
428+ <!--
429+ - `TopologyPlacement` : Provides the default placement generation mechanism for PodGroup's topology
430+ constraints.
431+ Extension points : ` placementGenerate` .
432+ -->
433+ - ` TopologyPlacement` :为 PodGroup 的拓扑约束提供默认的放置生成机制。
434+
435+ 实现的扩展点:`placementGenerate`。
436+
437+ <!--
438+ - `PodGroupPodsCount` : Provides the placement scoring algorithm based on the number of pods that
439+ can be scheduled in the given placement.
440+ Extension points : ` placementScore` .
441+ -->
442+ - ` PodGroupPodsCount` :提供基于给定放置位置可调度 Pod 数量的放置评分算法。
443+
444+ 实现的扩展点:`placementScore`。
445+
405446<!--
406447You can also enable the following plugins, through the component config APIs,
407448that are not enabled by default :
@@ -413,7 +454,8 @@ that are not enabled by default:
413454 volume limits can be satisfied for the node.
414455 Extension points : ` filter` .
415456-->
416- - ` CinderLimits` :检查是否可以满足节点的 [OpenStack Cinder](https://docs.openstack.org/cinder/) 卷限制。
457+ - ` CinderLimits` :检查是否可以满足节点的
458+ [OpenStack Cinder](https://docs.openstack.org/cinder/) 卷限制。
417459
418460 实现的扩展点:`filter`。
419461
@@ -455,7 +497,8 @@ profiles:
455497Pods that want to be scheduled according to a specific profile can include
456498the corresponding scheduler name in its `.spec.schedulerName`.
457499-->
458- 对于那些希望根据特定配置文件来进行调度的 Pod,可以在 `.spec.schedulerName` 字段指定相应的调度器名称。
500+ 对于那些希望根据特定配置文件来进行调度的 Pod,可以在 `.spec.schedulerName`
501+ 字段指定相应的调度器名称。
459502
460503<!--
461504By default, one profile with the scheduler name `default-scheduler` is created.
@@ -815,7 +858,8 @@ as well as its seamless integration with the existing methods for configuring ex
815858 新的扩展结合了 `NodeResourcesLeastAllocated`、`NodeResourcesMostAllocated`
816859 和 `RequestedToCapacityRatio` 插件的功能。
817860 例如,如果你之前使用了 `NodeResourcesMostAllocated` 插件,
818- 则可以改用 `NodeResourcesFit`(默认启用)并添加一个 `pluginConfig` 和 `scoreStrategy`,类似于:
861+ 则可以改用 `NodeResourcesFit`(默认启用)并添加一个 `pluginConfig`
862+ 和 `scoreStrategy`,类似于:
819863
820864 ` ` ` yaml
821865 apiVersion: kubescheduler.config.k8s.io/v1beta2
@@ -844,7 +888,7 @@ as well as its seamless integration with the existing methods for configuring ex
844888* 调度程序插件 `ServiceAffinity` 已弃用;
845889 相反,使用 [`InterPodAffinity`](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
846890 插件(默认启用)来实现类似的行为。
847-
891+
848892<!--
849893* The scheduler plugin `NodePreferAvoidPods` is deprecated; instead, use [node taints](/docs/concepts/scheduling-eviction/taint-and-toleration/) to achieve similar behavior.
850894-->
@@ -859,7 +903,8 @@ as well as its seamless integration with the existing methods for configuring ex
859903<!--
860904* Invalid `host` or `port` configured for scheduler healthz and metrics bind address will cause validation failure.
861905-->
862- * 调度器的健康检查和审计的绑定地址,所配置的 `host` 或 `port` 无效将导致验证失败。
906+ * 调度器的健康检查和审计的绑定地址,所配置的 `host` 或 `port`
907+ 无效将导致验证失败。
863908
864909{{% /tab %}}
865910
0 commit comments