Skip to content

Commit 343a15a

Browse files
authored
Merge pull request #38731 from windsonsea/schconf
[zh] sync kube-scheduler-config.v1.md
2 parents aba444c + 15b448c commit 343a15a

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

content/zh-cn/docs/reference/config-api/kube-scheduler-config.v1.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ at least "minFeasibleNodesToFind" feasible nodes no matter what the va
181181
Example: if the cluster size is 500 nodes and the value of this flag is 30,
182182
then scheduler stops finding further feasible nodes once it finds 150 feasible ones.
183183
When the value is 0, default percentage (5%--50% based on the size of the cluster) of the
184-
nodes will be scored.
184+
nodes will be scored. It is overridden by profile level PercentageofNodesToScore.
185185
-->
186186
<p>
187187
<code>percentageOfNodesToScore</code> 字段为所有节点的百分比,一旦调度器找到所设置比例的、能够运行 Pod 的节点,
@@ -190,6 +190,7 @@ nodes will be scored.
190190
例如:当集群规模为 500 个节点,而此字段的取值为 30,
191191
则调度器在找到 150 个合适的节点后会停止继续寻找合适的节点。当此值为 0 时,
192192
调度器会使用默认节点数百分比(基于集群规模确定的值,在 5% 到 50% 之间)来执行打分操作。
193+
它可被配置文件级别的 PercentageofNodesToScore 覆盖。
193194
</p>
194195
</td>
195196
</tr>
@@ -267,7 +268,7 @@ NodeAffinityArgs holds arguments to configure the NodeAffinity plugin.
267268
<tr><td><code>kind</code><br/>string</td><td><code>NodeAffinityArgs</code></td></tr>
268269

269270
<tr><td><code>addedAffinity</code><br/>
270-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#nodeaffinity-v1-core"><code>core/v1.NodeAffinity</code></a>
271+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#nodeaffinity-v1-core"><code>core/v1.NodeAffinity</code></a>
271272
</td>
272273
<td>
273274
<!--
@@ -388,7 +389,7 @@ PodTopologySpreadArgs holds arguments used to configure the PodTopologySpread pl
388389
<tr><td><code>kind</code><br/>string</td><td><code>PodTopologySpreadArgs</code></td></tr>
389390

390391
<tr><td><code>defaultConstraints</code><br/>
391-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#topologyspreadconstraint-v1-core"><code>[]core/v1.TopologySpreadConstraint</code></a>
392+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#topologyspreadconstraint-v1-core"><code>[]core/v1.TopologySpreadConstraint</code></a>
392393
</td>
393394
<td>
394395
<!--
@@ -851,6 +852,29 @@ is scheduled with this profile.
851852
则该 Pod 会使用此方案来调度。</p>
852853
</td>
853854
</tr>
855+
<tr><td><code>percentageOfNodesToScore</code> <B><!--[Required]-->[必需]</B><br/>
856+
<code>int32</code>
857+
</td>
858+
<td>
859+
<!--
860+
PercentageOfNodesToScore is the percentage of all nodes that once found feasible
861+
for running a pod, the scheduler stops its search for more feasible nodes in
862+
the cluster. This helps improve scheduler's performance. Scheduler always tries to find
863+
at least &quot;minFeasibleNodesToFind&quot; feasible nodes no matter what the value of this flag is.
864+
Example: if the cluster size is 500 nodes and the value of this flag is 30,
865+
then scheduler stops finding further feasible nodes once it finds 150 feasible ones.
866+
When the value is 0, default percentage (5%--50% based on the size of the cluster) of the
867+
nodes will be scored. It will override global PercentageOfNodesToScore. If it is empty,
868+
global PercentageOfNodesToScore will be used.
869+
-->
870+
<p>percentageOfNodesToScore 是已发现可运行 Pod 的节点与所有节点的百分比,
871+
调度器所发现的可行节点到达此阈值时,将停止在集群中继续搜索可行节点。
872+
这有助于提高调度器的性能。无论此标志的值是多少,调度器总是尝试至少找到 “minFeasibleNodesToFind” 个可行的节点。
873+
例如:如果集群大小为 500 个节点并且此标志的值为 30,则调度器在找到 150 个可行节点后将停止寻找更多可行的节点。
874+
当值为 0 时,默认百分比(根据集群大小为 5% - 50%)的节点将被评分。此设置值将覆盖全局的 PercentageOfNodesToScore 值。
875+
如果为空,将使用全局 PercentageOfNodesToScore。</p>
876+
</td>
877+
</tr>
854878
<tr><td><code>plugins</code> <B><!--[Required]-->[必需]</B><br/>
855879
<a href="#kubescheduler-config-k8s-io-v1-Plugins"><code>Plugins</code></a>
856880
</td>
@@ -1054,6 +1078,14 @@ be invoked before default plugins, default plugins must be disabled and re-enabl
10541078
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
10551079
<tbody>
10561080

1081+
<tr><td><code>preEnqueue</code> <B><!--[Required]-->[必需]</B><br/>
1082+
<a href="#kubescheduler-config-k8s-io-v1-PluginSet"><code>PluginSet</code></a>
1083+
</td>
1084+
<td>
1085+
<!--PreEnqueue is a list of plugins that should be invoked before adding pods to the scheduling queue.-->
1086+
<p>preEnqueue 是在将 Pod 添加到调度队列之前应调用的插件的列表。</p>
1087+
</td>
1088+
</tr>
10571089
<tr><td><code>queueSort</code> <B><!--[Required]-->[必需]</B><br/>
10581090
<a href="#kubescheduler-config-k8s-io-v1-PluginSet"><code>PluginSet</code></a>
10591091
</td>

0 commit comments

Comments
 (0)