Skip to content

Commit 2c38402

Browse files
committed
Update some translation in scheduling config page
1 parent 248bad3 commit 2c38402

File tree

1 file changed

+53
-53
lines changed
  • content/zh/docs/reference/scheduling

1 file changed

+53
-53
lines changed

content/zh/docs/reference/scheduling/config.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ title: 调度器配置
33
content_type: concept
44
weight: 20
55
---
6-
<!--
6+
<!--
77
title: Scheduler Configuration
88
content_type: concept
99
weight: 20
1010
-->
1111
{{< feature-state for_k8s_version="v1.19" state="beta" >}}
1212

13-
<!--
13+
<!--
1414
You can customize the behavior of the `kube-scheduler` by writing a configuration
15-
file and passing its path as a command line argument.
15+
file and passing its path as a command line argument.
1616
-->
1717
你可以通过编写配置文件,并将其路径传给 `kube-scheduler` 的命令行参数,定制 `kube-scheduler` 的行为。
1818

@@ -82,14 +82,14 @@ extension points:
8282
-->
8383
1. `QueueSort`:这些插件对调度队列中的悬决的 Pod 排序。
8484
一次只能启用一个队列排序插件。
85-
<!--
85+
<!--
8686
2. `PreFilter`: These plugins are used to pre-process or check information
8787
about a Pod or the cluster before filtering. They can mark a pod as
8888
unschedulable.
8989
-->
9090
2. `PreFilter`:这些插件用于在过滤之前预处理或检查 Pod 或集群的信息。
9191
它们可以将 Pod 标记为不可调度。
92-
<!--
92+
<!--
9393
3. `Filter`: These plugins are the equivalent of Predicates in a scheduling
9494
Policy and are used to filter out nodes that can not run the Pod. Filters
9595
are called in the configured order. A pod is marked as unschedulable if no
@@ -98,7 +98,7 @@ extension points:
9898
3. `Filter`:这些插件相当于调度策略中的断言(Predicates),用于过滤不能运行 Pod 的节点。
9999
过滤器的调用顺序是可配置的。
100100
如果没有一个节点通过所有过滤器的筛选,Pod 将会被标记为不可调度。
101-
<!--
101+
<!--
102102
4. `PreScore`: This is an informational extension point that can be used
103103
for doing pre-scoring work.
104104
-->
@@ -127,13 +127,13 @@ extension points:
127127
least one bind plugin is required.
128128
-->
129129
9. `Bind`:这个插件将 Pod 与节点绑定。绑定插件是按顺序调用的,只要有一个插件完成了绑定,其余插件都会跳过。绑定插件至少需要一个。
130-
<!--
130+
<!--
131131
10. `PostBind`: This is an informational extension point that is called after
132132
a Pod has been bound.
133133
-->
134134
10. `PostBind`:这是一个信息扩展点,在 Pod 绑定了节点之后调用。
135135

136-
<!--
136+
<!--
137137
For each extension point, you could disable specific [default plugins](#scheduling-plugins)
138138
or enable your own. For example:
139139
-->
@@ -154,18 +154,18 @@ profiles:
154154
weight: 1
155155
```
156156

157-
<!--
157+
<!--
158158
You can use `*` as name in the disabled array to disable all default plugins
159159
for that extension point. This can also be used to rearrange plugins order, if
160160
desired.
161161
-->
162162
你可以在 `disabled` 数组中使用 `*` 禁用该扩展点的所有默认插件。
163163
如果需要,这个字段也可以用来对插件重新顺序。
164-
164+
165165
<!-- ### Scheduling plugins -->
166166
### 调度插件 {#scheduling-plugin}
167167

168-
<!--
168+
<!--
169169
1. `UnReserve`: This is an informational extension point that is called if
170170
a Pod is rejected after being reserved and put on hold by a `Permit` plugin.
171171
-->
@@ -190,47 +190,47 @@ extension points:
190190
- `SelectorSpread`:对于属于 {{< glossary_tooltip text="Services" term_id="service" >}}、
191191
{{< glossary_tooltip text="ReplicaSets" term_id="replica-set" >}} 和
192192
{{< glossary_tooltip text="StatefulSets" term_id="statefulset" >}} 的 Pod,偏好跨多个节点部署。
193-
193+
194194
实现的扩展点:`PreScore`,`Score`。
195195
<!--
196196
- `ImageLocality`: Favors nodes that already have the container images that the
197197
Pod runs.
198198
Extension points: `Score`.
199199
-->
200200
- `ImageLocality`:选择已经存在 Pod 运行所需容器镜像的节点。
201-
201+
202202
实现的扩展点:`Score`。
203203
<!--
204204
- `TaintToleration`: Implements
205205
[taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/).
206206
Implements extension points: `Filter`, `Prescore`, `Score`.
207207
-->
208208
- `TaintToleration`:实现了[污点和容忍](/zh/docs/concepts/scheduling-eviction/taint-and-toleration/)。
209-
209+
210210
实现的扩展点:`Filter`,`Prescore`,`Score`。
211211
<!--
212212
- `NodeName`: Checks if a Pod spec node name matches the current node.
213213
Extension points: `Filter`.
214214
-->
215215
- `NodeName`:检查 Pod 指定的节点名称与当前节点是否匹配。
216-
216+
217217
实现的扩展点:`Filter`。
218218
<!--
219219
- `NodePorts`: Checks if a node has free ports for the requested Pod ports.
220220
Extension points: `PreFilter`, `Filter`.
221221
-->
222222
- `NodePorts`:检查 Pod 请求的端口在节点上是否可用。
223-
223+
224224
实现的扩展点:`PreFilter`,`Filter`。
225225
<!--
226226
- `NodePreferAvoidPods`: Scores nodes according to the node
227227
{{< glossary_tooltip text=" " term_id="annotation" >}}
228228
`scheduler.alpha.kubernetes.io/preferAvoidPods`.
229229
Extension points: `Score`.
230230
-->
231-
- `NodePreferAvoidPods`:基于节点的 {{< glossary_tooltip text="注解" term_id="annotation" >}}
231+
- `NodePreferAvoidPods`:基于节点的 {{< glossary_tooltip text="注解" term_id="annotation" >}}
232232
`scheduler.alpha.kubernetes.io/preferAvoidPods` 打分。
233-
233+
234234
实现的扩展点:`Score`。
235235
<!--
236236
- `NodeAffinity`: Implements
@@ -240,130 +240,130 @@ extension points:
240240
-->
241241
- `NodeAffinity`:实现了[节点选择器](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
242242
和[节点亲和性](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)。
243-
243+
244244
实现的扩展点:`Filter`,`Score`.
245245
<!--
246246
- `PodTopologySpread`: Implements
247247
[Pod topology spread](/docs/concepts/workloads/pods/pod-topology-spread-constraints/).
248248
Extension points: `PreFilter`, `Filter`, `PreScore`, `Score`.
249249
-->
250250
- `PodTopologySpread`:实现了 [Pod 拓扑分布](/zh/docs/concepts/workloads/pods/pod-topology-spread-constraints/)。
251-
251+
252252
实现的扩展点:`PreFilter`,`Filter`,`PreScore`,`Score`。
253253
<!--
254254
- `NodeUnschedulable`: Filters out nodes that have `.spec.unschedulable` set to
255255
true.
256256
Extension points: `Filter`.
257257
-->
258258
- `NodeUnschedulable`:过滤 `.spec.unschedulable` 值为 true 的节点。
259-
259+
260260
实现的扩展点:`Filter`。
261261
<!--
262262
- `NodeResourcesFit`: Checks if the node has all the resources that the Pod is
263263
requesting.
264264
Extension points: `PreFilter`, `Filter`.
265265
-->
266266
- `NodeResourcesFit`:检查节点是否拥有 Pod 请求的所有资源。
267-
267+
268268
实现的扩展点:`PreFilter`,`Filter`。
269269
<!--
270270
- `NodeResourcesBalancedAllocation`: Favors nodes that would obtain a more
271271
balanced resource usage if the Pod is scheduled there.
272272
Extension points: `Score`.
273273
-->
274274
- `NodeResourcesBalancedAllocation`:调度 Pod 时,选择资源使用更为均衡的节点。
275-
275+
276276
实现的扩展点:`Score`。
277277
<!--
278278
- `NodeResourcesLeastAllocated`: Favors nodes that have a low allocation of
279279
resources.
280280
Extension points: `Score`.
281281
-->
282282
- `NodeResourcesLeastAllocated`:选择资源分配较少的节点。
283-
283+
284284
实现的扩展点:`Score`。
285285
<!--
286286
- `VolumeBinding`: Checks if the node has or if it can bind the requested
287287
{{< glossary_tooltip text="volumes" term_id="volume" >}}.
288288
Extension points: `PreFilter`, `Filter`, `Reserve`, `PreBind`.
289289
-->
290290
- `VolumeBinding`:检查节点是否有请求的卷,或是否可以绑定请求的卷。
291-
291+
292292
实现的扩展点: `PreFilter`,`Filter`,`Reserve`,`PreBind`。
293-
<!--
293+
<!--
294294
- `VolumeRestrictions`: Checks that volumes mounted in the node satisfy
295295
restrictions that are specific to the volume provider.
296-
Extension points: `Filter`.
296+
Extension points: `Filter`.
297297
-->
298298
- `VolumeRestrictions`:检查挂载到节点上的卷是否满足卷提供程序的限制。
299-
299+
300300
实现的扩展点:`Filter`。
301301
<!--
302302
- `VolumeZone`: Checks that volumes requested satisfy any zone requirements they
303303
might have.
304304
Extension points: `Filter`.
305305
-->
306306
- `VolumeZone`:检查请求的卷是否在任何区域都满足。
307-
307+
308308
实现的扩展点:`Filter`。
309-
<!--
309+
<!--
310310
- `NodeVolumeLimits`: Checks that CSI volume limits can be satisfied for the
311311
node.
312-
Extension points: `Filter`.
312+
Extension points: `Filter`.
313313
-->
314314
- `NodeVolumeLimits`:检查该节点是否满足 CSI 卷限制。
315-
315+
316316
实现的扩展点:`Filter`。
317317
<!--
318318
- `EBSLimits`: Checks that AWS EBS volume limits can be satisfied for the node.
319319
Extension points: `Filter`.
320320
-->
321321
- `EBSLimits`:检查节点是否满足 AWS EBS 卷限制。
322-
322+
323323
实现的扩展点:`Filter`。
324324
<!--
325325
- `GCEPDLimits`: Checks that GCP-PD volume limits can be satisfied for the node.
326326
Extension points: `Filter`.
327327
-->
328328
- `GCEPDLimits`:检查该节点是否满足 GCP-PD 卷限制。
329-
329+
330330
实现的扩展点:`Filter`。
331331
<!--
332332
- `AzureDiskLimits`: Checks that Azure disk volume limits can be satisfied for
333333
the node.
334334
Extension points: `Filter`.
335335
-->
336336
- `AzureDiskLimits`:检查该节点是否满足 Azure 卷限制。
337-
337+
338338
实现的扩展点:`Filter`。
339339
<!--
340340
- `InterPodAffinity`: Implements
341341
[inter-Pod affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity).
342342
Extension points: `PreFilter`, `Filter`, `PreScore`, `Score`.
343343
-->
344344
- `InterPodAffinity`:实现 [Pod 间亲和性与反亲和性](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)。
345-
345+
346346
实现的扩展点:`PreFilter`,`Filter`,`PreScore`,`Score`。
347347
<!--
348348
- `PrioritySort`: Provides the default priority based sorting.
349349
Extension points: `QueueSort`.
350350
-->
351351
- `PrioritySort`:提供默认的基于优先级的排序。
352-
352+
353353
实现的扩展点:`QueueSort`。
354354
<!--
355355
- `DefaultBinder`: Provides the default binding mechanism.
356356
Extension points: `Bind`.
357357
-->
358358
- `DefaultBinder`:提供默认的绑定机制。
359-
359+
360360
实现的扩展点:`Bind`。
361361
<!--
362362
- `DefaultPreemption`: Provides the default preemption mechanism.
363363
Extension points: `PostFilter`.
364364
-->
365365
- `DefaultPreemption`:提供默认的抢占机制。
366-
366+
367367
实现的扩展点:`PostFilter`。
368368

369369
<!--
@@ -378,39 +378,39 @@ that are not enabled by default:
378378
Extension points: `Score`.
379379
-->
380380
- `NodeResourcesMostAllocated`:选择已分配资源多的节点。
381-
381+
382382
实现的扩展点:`Score`。
383383
<!--
384384
- `RequestedToCapacityRatio`: Favor nodes according to a configured function of
385385
the allocated resources.
386386
Extension points: `Score`.
387387
-->
388388
- `RequestedToCapacityRatio`:根据已分配资源的某函数设置选择节点。
389-
389+
390390
实现的扩展点:`Score`。
391391
<!--
392392
- `NodeResourceLimits`: Favors nodes that satisfy the Pod resource limits.
393393
Extension points: `PreScore`, `Score`.
394394
-->
395395
- `NodeResourceLimits`:选择满足 Pod 资源限制的节点。
396-
396+
397397
实现的扩展点:`PreScore`,`Score`。
398398
<!--
399399
- `CinderVolume`: Checks that OpenStack Cinder volume limits can be satisfied
400400
for the node.
401401
Extension points: `Filter`.
402402
-->
403403
- `CinderVolume`:检查该节点是否满足 OpenStack Cinder 卷限制。
404-
404+
405405
实现的扩展点:`Filter`。
406406
<!--
407407
- `NodeLabel`: Filters and / or scores a node according to configured
408408
{{< glossary_tooltip text="label(s)" term_id="label" >}}.
409409
Extension points: `Filter`, `Score`.
410410
-->
411-
- `NodeLabel`:根据配置的 {{< glossary_tooltip text="标签" term_id="label" >}}
411+
- `NodeLabel`:根据配置的 {{< glossary_tooltip text="标签" term_id="label" >}}
412412
过滤节点和/或给节点打分。
413-
413+
414414
实现的扩展点:`Filter`,`Score`。
415415
<!--
416416
- `ServiceAffinity`: Checks that Pods that belong to a
@@ -422,7 +422,7 @@ that are not enabled by default:
422422
- `ServiceAffinity`:检查属于某个 {{< glossary_tooltip term_id="service" >}} 的 Pod
423423
与配置的标签所定义的节点集是否适配。
424424
这个插件还支持将属于某个 Service 的 Pod 分散到各个节点。
425-
425+
426426
实现的扩展点:`PreFilter`,`Filter`,`Score`。
427427

428428
<!-- ### Multiple profiles -->
@@ -462,14 +462,14 @@ profiles:
462462
Pods that want to be scheduled according to a specific profile can include
463463
the corresponding scheduler name in its `.spec.schedulerName`.
464464
-->
465-
希望根据特定配置文件调度的 Pod,可以在 `.spec.schedulerName` 字段指定相应的调度器名称。
465+
对于那些希望根据特定配置文件来进行调度的 Pod,可以在 `.spec.schedulerName` 字段指定相应的调度器名称。
466466

467467
<!--
468468
By default, one profile with the scheduler name `default-scheduler` is created.
469469
This profile includes the default plugins described above. When declaring more
470470
than one profile, a unique scheduler name for each of them is required.
471471
-->
472-
默认情况下,将创建一个名为 `default-scheduler` 的配置文件。
472+
默认情况下,将创建一个调度器名为 `default-scheduler` 的配置文件。
473473
这个配置文件包括上面描述的所有默认插件。
474474
声明多个配置文件时,每个配置文件中调度器名称必须唯一。
475475

@@ -478,8 +478,8 @@ If a Pod doesn't specify a scheduler name, kube-apiserver will set it to
478478
`default-scheduler`. Therefore, a profile with this scheduler name should exist
479479
to get those pods scheduled.
480480
-->
481-
如果 Pod 未指定调度器名称,kube-apiserver 将会把它设置为 `default-scheduler`。
482-
因此,应该存在一个名为 `default-scheduler` 的配置文件来调度这些 Pod。
481+
如果 Pod 未指定调度器名称,kube-apiserver 将会把调度器名设置为 `default-scheduler`。
482+
因此,应该存在一个调度器名为 `default-scheduler` 的配置文件来调度这些 Pod。
483483

484484
{{< note >}}
485485
<!--
@@ -488,7 +488,7 @@ Events for leader election use the scheduler name of the first profile in the
488488
list.
489489
-->
490490
Pod 的调度事件把 `.spec.schedulerName` 字段值作为 ReportingController。
491-
领导者选择事件使用列表中第一个配置文件的调度器名称
491+
领导者选举事件使用列表中第一个配置文件的调度器名称
492492
{{< /note >}}
493493

494494
{{< note >}}
@@ -498,7 +498,7 @@ the same configuration parameters (if applicable). This is because the scheduler
498498
only has one pending pods queue.
499499
-->
500500
所有配置文件必须在 QueueSort 扩展点使用相同的插件,并具有相同的配置参数(如果适用)。
501-
这是因为调度器只有一个的队列保存悬决的 Pod。
501+
这是因为调度器只有一个保存 pending 状态 Pod 的队列
502502

503503
{{< /note >}}
504504

@@ -509,4 +509,4 @@ only has one pending pods queue.
509509
* Learn about [scheduling](/docs/concepts/scheduling-eviction/kube-scheduler/)
510510
-->
511511
* 阅读 [kube-scheduler 参考](/zh/docs/reference/command-line-tools-reference/kube-scheduler/)
512-
* 了解[调度](/zh/docs/concepts/scheduling-eviction/kube-scheduler/)
512+
* 了解[调度](/zh/docs/concepts/scheduling-eviction/kube-scheduler/)

0 commit comments

Comments
 (0)