Skip to content

Commit aa7dbff

Browse files
authored
Merge pull request #32227 from 0xff-dev/main
[zh] update assign-pod-node.md doc
2 parents 701d42c + 357efeb commit aa7dbff

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

content/zh/docs/concepts/scheduling-eviction/assign-pod-node.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,13 @@ To make use of that label prefix for node isolation:
185185
前缀设置或修改标签。要使用该标签前缀进行节点隔离:
186186

187187
<!--
188-
1. Check that you're using Kubernetes v1.11+ so that NodeRestriction is available.
189-
2. Ensure you are using the [Node authorizer](/docs/reference/access-authn-authz/node/) and have _enabled_ the [NodeRestriction admission plugin](/docs/reference/access-authn-authz/admission-controllers/#noderestriction).
190-
3. Add labels under the `node-restriction.kubernetes.io/` prefix to your Node objects, and use those labels in your node selectors.
188+
1. Ensure you are using the [Node authorizer](/docs/reference/access-authn-authz/node/) and have _enabled_ the [NodeRestriction admission plugin](/docs/reference/access-authn-authz/admission-controllers/#noderestriction).
189+
2. Add labels under the `node-restriction.kubernetes.io/` prefix to your Node objects, and use those labels in your node selectors.
191190
For example, `example.com.node-restriction.kubernetes.io/fips=true` or `example.com.node-restriction.kubernetes.io/pci-dss=true`.
192191
-->
193-
1. 检查是否在使用 Kubernetes v1.11+,以便 NodeRestriction 功能可用。
194-
2. 确保你在使用[节点授权](/zh/docs/reference/access-authn-authz/node/)并且已经_启用_
192+
1. 确保你在使用[节点授权](/zh/docs/reference/access-authn-authz/node/)并且已经 _启用_
195193
[NodeRestriction 准入插件](/zh/docs/reference/access-authn-authz/admission-controllers/#noderestriction)。
196-
3. 将 `node-restriction.kubernetes.io/` 前缀下的标签添加到 Node 对象,
194+
2. 将 `node-restriction.kubernetes.io/` 前缀下的标签添加到 Node 对象,
197195
然后在节点选择器中使用这些标签。
198196
例如,`example.com.node-restriction.kubernetes.io/fips=true` 或
199197
`example.com.node-restriction.kubernetes.io/pci-dss=true`
@@ -216,7 +214,7 @@ feature, greatly expands the types of constraints you can express. The key enhan
216214
3. you can constrain against labels on other pods running on the node (or other topological domain),
217215
rather than against labels on the node itself, which allows rules about which pods can and cannot be co-located
218216
-->
219-
1. 语言更具表现力(不仅仅是“对完全匹配规则的 AND”)
217+
1. 语言表达能力更强(不仅仅是“对完全匹配规则的 AND”)
220218
2. 你可以发现规则是“软需求”/“偏好”,而不是硬性要求,因此,
221219
如果调度器无法满足该要求,仍然调度该 Pod
222220
3. 你可以使用节点上(或其他拓扑域中)的 Pod 的标签来约束,而不是使用
@@ -369,7 +367,7 @@ in the [scheduler configuration](/docs/reference/scheduling/config/). For exampl
369367
例如:
370368

371369
```yaml
372-
apiVersion: kubescheduler.config.k8s.io/v1beta1
370+
apiVersion: kubescheduler.config.k8s.io/v1beta3
373371
kind: KubeSchedulerConfiguration
374372
375373
profiles:

0 commit comments

Comments
 (0)