@@ -145,7 +145,7 @@ your cluster. Those fields are:
145
145
- if you select `whenUnsatisfiable: ScheduleAnyway`, the scheduler gives higher
146
146
precedence to topologies that would help reduce the skew.
147
147
-->
148
- - ** maxSkew** 描述这些 Pod 可能被均匀分布的程度 。你必须指定此字段且该数值必须大于零。
148
+ - ** maxSkew** 描述这些 Pod 可能被不均匀分布的程度 。你必须指定此字段且该数值必须大于零。
149
149
其语义将随着 ` whenUnsatisfiable ` 的值发生变化:
150
150
151
151
- 如果你选择 ` whenUnsatisfiable: DoNotSchedule ` ,则 ` maxSkew ` 定义目标拓扑中匹配 Pod 的数量与
@@ -468,7 +468,7 @@ can use a manifest similar to:
468
468
-->
469
469
如果你希望新来的 Pod 均匀分布在现有的可用区域,则可以按如下设置其清单:
470
470
471
- {{< codenew file="pods/topology-spread-constraints/one-constraint.yaml" > }}
471
+ {{% code file="pods/topology-spread-constraints/one-constraint.yaml" % }}
472
472
473
473
<!--
474
474
From that manifest, `topologyKey: zone` implies the even distribution will only be applied
@@ -589,7 +589,7 @@ by node and by zone:
589
589
-->
590
590
可以组合使用 2 个拓扑分布约束来控制 Pod 在节点和可用区两个维度上的分布:
591
591
592
- {{< codenew file="pods/topology-spread-constraints/two-constraints.yaml" > }}
592
+ {{% code file="pods/topology-spread-constraints/two-constraints.yaml" % }}
593
593
594
594
<!--
595
595
In this case, to match the first constraint, the incoming Pod can only be placed onto
@@ -714,7 +714,7 @@ Similarly, Kubernetes also respects `spec.nodeSelector`.
714
714
以便将 Pod `mypod` 放置在可用区 `B` 上,而不是可用区 `C` 上。
715
715
同样,Kubernetes 也会一样处理 `spec.nodeSelector`。
716
716
717
- {{< codenew file="pods/topology-spread-constraints/one-constraint-with-nodeaffinity.yaml" > }}
717
+ {{% code file="pods/topology-spread-constraints/one-constraint-with-nodeaffinity.yaml" % }}
718
718
719
719
<!--
720
720
## Implicit conventions
0 commit comments