Skip to content

Commit f679457

Browse files
committed
[zh] Sync reference/scheduling/config.md
1 parent 7811f25 commit f679457

File tree

1 file changed

+52
-9
lines changed
  • content/zh-cn/docs/reference/scheduling

1 file changed

+52
-9
lines changed

Diff for: content/zh-cn/docs/reference/scheduling/config.md

+52-9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ title: Scheduler Configuration
88
content_type: concept
99
weight: 20
1010
-->
11+
1112
{{< feature-state for_k8s_version="v1.25" state="stable" >}}
1213

1314
<!--
@@ -56,7 +57,8 @@ KubeSchedulerConfiguration v1beta3 is deprecated in v1.26 and will be removed in
5657
Please migrate KubeSchedulerConfiguration to [v1](/docs/reference/config-api/kube-scheduler-config.v1/).
5758
-->
5859
KubeSchedulerConfiguration v1beta3 在 v1.26 中已被弃用,
59-
并将在 v1.29 中被移除。请将 KubeSchedulerConfiguration 迁移到 [v1](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1/)。
60+
并将在 v1.29 中被移除。请将 KubeSchedulerConfiguration 迁移到
61+
[v1](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1/)。
6062
{{< /note >}}
6163
6264
<!--
@@ -154,7 +156,8 @@ extension points:
154156
and once one has done the binding, the remaining plugins are skipped. At
155157
least one bind plugin is required.
156158
-->
157-
10. `bind`:这个插件将 Pod 与节点绑定。`bind` 插件是按顺序调用的,只要有一个插件完成了绑定,其余插件都会跳过。`bind` 插件至少需要一个。
159+
10. `bind`:这个插件将 Pod 与节点绑定。`bind` 插件是按顺序调用的,只要有一个插件完成了绑定,
160+
其余插件都会跳过。`bind` 插件至少需要一个。
158161
<!--
159162
1. `postBind`: This is an informational extension point that is called after
160163
a Pod has been bound.
@@ -466,12 +469,18 @@ to get those pods scheduled.
466469

467470
{{< note >}}
468471
<!--
469-
Pod's scheduling events have `.spec.schedulerName` as the ReportingController.
470-
Events for leader election use the scheduler name of the first profile in the
471-
list.
472+
Pod's scheduling events have `.spec.schedulerName` as their `reportingController`.
473+
Events for leader election use the scheduler name of the first profile in the list.
474+
475+
For more information, please refer to the `reportingController` section under
476+
[Event API Reference](/docs/reference/kubernetes-api/cluster-resources/event-v1/).
472477
-->
473-
Pod 的调度事件把 `.spec.schedulerName` 字段值作为 ReportingController。
478+
Pod 的调度事件把 `.spec.schedulerName` 字段值作为它们的 `ReportingController`
474479
领导者选举事件使用列表中第一个配置文件的调度器名称。
480+
481+
有关更多信息,请参阅
482+
[Event API 参考文档](/zh-cn/docs/reference/kubernetes-api/cluster-resources/event-v1/)中的
483+
`reportingController` 一节。
475484
{{< /note >}}
476485

477486
{{< note >}}
@@ -495,7 +504,8 @@ profile config, `multiPoint`, which allows for easily enabling or disabling a pl
495504
across several extension points. The intent of `multiPoint` config is to simplify the
496505
configuration needed for users and administrators when using custom profiles.
497506
-->
498-
从 `kubescheduler.config.k8s.io/v1beta3` 开始,配置文件配置中有一个附加字段 `multiPoint`,它允许跨多个扩展点轻松启用或禁用插件。
507+
从 `kubescheduler.config.k8s.io/v1beta3` 开始,配置文件配置中有一个附加字段
508+
`multiPoint`,它允许跨多个扩展点轻松启用或禁用插件。
499509
`multiPoint` 配置的目的是简化用户和管理员在使用自定义配置文件时所需的配置。
500510

501511
<!--
@@ -703,6 +713,39 @@ In versions of the config before `v1beta3`, without `multiPoint`, the above snip
703713
-->
704714
在 `v1beta3` 之前的配置版本中,没有 `multiPoint`,上面的代码片段等同于:
705715

716+
<!--
717+
```yaml
718+
apiVersion: kubescheduler.config.k8s.io/v1beta2
719+
kind: KubeSchedulerConfiguration
720+
profiles:
721+
- schedulerName: multipoint-scheduler
722+
plugins:
723+
724+
# Disable the default QueueSort plugin
725+
queueSort:
726+
enabled:
727+
- name: 'CustomQueueSort'
728+
disabled:
729+
- name: 'DefaultQueueSort'
730+
731+
# Enable custom Filter plugins
732+
filter:
733+
enabled:
734+
- name: 'CustomPlugin1'
735+
- name: 'CustomPlugin2'
736+
- name: 'DefaultPlugin2'
737+
disabled:
738+
- name: 'DefaultPlugin1'
739+
740+
# Enable and reorder custom score plugins
741+
score:
742+
enabled:
743+
- name: 'DefaultPlugin2'
744+
weight: 1
745+
- name: 'DefaultPlugin1'
746+
weight: 3
747+
```
748+
-->
706749
```yaml
707750
apiVersion: kubescheduler.config.k8s.io/v1beta2
708751
kind: KubeSchedulerConfiguration
@@ -781,7 +824,7 @@ as well as its seamless integration with the existing methods for configuring ex
781824
* The scheduler plugin `NodeLabel` is deprecated; instead, use the [`NodeAffinity`](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) plugin (enabled by default) to achieve similar behavior.
782825
-->
783826
* 调度器插件 `NodeLabel` 已弃用;
784-
相反,要使用 [`NodeAffinity`](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
827+
相反,要使用 [`NodeAffinity`](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
785828
插件(默认启用)来实现类似的行为。
786829

787830
<!--
@@ -795,7 +838,7 @@ as well as its seamless integration with the existing methods for configuring ex
795838
* The scheduler plugin `NodePreferAvoidPods` is deprecated; instead, use [node taints](/docs/concepts/scheduling-eviction/taint-and-toleration/) to achieve similar behavior.
796839
-->
797840
* 调度器插件 `NodePreferAvoidPods` 已弃用;
798-
相反,使用 [节点污点](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/) 来实现类似的行为。
841+
相反,使用[节点污点](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/)来实现类似的行为。
799842

800843
<!--
801844
* A plugin enabled in a v1beta2 configuration file takes precedence over the default configuration for that plugin.

0 commit comments

Comments
 (0)