Skip to content

Commit 1ebc222

Browse files
committed
[zh-cn] sync architecture/nodes.md
1 parent db117c0 commit 1ebc222

File tree

1 file changed

+14
-2
lines changed
  • content/zh-cn/docs/concepts/architecture

1 file changed

+14
-2
lines changed

content/zh-cn/docs/concepts/architecture/nodes.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ When you want to create Node objects manually, set the kubelet flag `--register-
246246
247247
You can modify Node objects regardless of the setting of `--register-node`.
248248
For example, you can set labels on an existing Node or mark it unschedulable.
249+
250+
You can set optional node role(s) for nodes by adding one or more
251+
`node-role.kubernetes.io/<role>: <role>` labels to the node where characters of `<role>` are limited by the
252+
[syntax](/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for labels.
253+
254+
Kubernetes ignores the label value for node roles; by convention, you can set it to the same string you used for the node role in the label key.
249255
-->
250256
### 手动节点管理 {#manual-node-administration}
251257

@@ -257,6 +263,12 @@ For example, you can set labels on an existing Node or mark it unschedulable.
257263
你可以修改 Node 对象(忽略 `--register-node` 设置)。
258264
例如,你可以修改节点上的标签或并标记其为不可调度。
259265

266+
你可以通过在节点上添加一个或多个 `node-role.kubernetes.io/<role>: <role>` 标签,
267+
来为节点设置可选的节点角色。其中,`<role>`
268+
的字符受[标签键名格式](/zh-cn/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set)规则限制。
269+
270+
Kubernetes 会忽略节点角色标签的值;按照惯例,你可以将其设置为与标签键中的 `<role>` 相同的字符串。
271+
260272
<!--
261273
You can use labels on Nodes in conjunction with node selectors on Pods to control
262274
scheduling. For example, you can constrain a Pod to only be eligible to run on
@@ -668,7 +680,7 @@ Learn more about the following:
668680
* [Components](/docs/concepts/architecture/#node-components) that make up a node.
669681
* [API definition for Node](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#node-v1-core).
670682
* [Node](https://git.k8s.io/design-proposals-archive/architecture/architecture.md#the-kubernetes-node) section of the architecture design document.
671-
* [Cluster autoscaling](/docs/concepts/cluster-administration/cluster-autoscaling/) to
683+
* [Node autoscaling](/docs/concepts/cluster-administration/node-autoscaling/) to
672684
manage the number and size of nodes in your cluster.
673685
* [Taints and Tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/).
674686
* [Node Resource Managers](/docs/concepts/policy/node-resource-managers/).
@@ -681,7 +693,7 @@ Learn more about the following:
681693
* 架构设计文档中有关
682694
[Node](https://git.k8s.io/design-proposals-archive/architecture/architecture.md#the-kubernetes-node)
683695
的章节。
684-
* [集群自动扩缩](https://git.k8s.io/design-proposals-archive/architecture/architecture.md#the-kubernetes-node)
696+
* [节点自动扩缩](/zh-cn/docs/concepts/cluster-administration/node-autoscaling/)
685697
以管理集群中节点的数量和规模。
686698
* [污点和容忍度](/zh-cn/docs/concepts/scheduling-eviction/taint-and-toleration/)。
687699
* [节点资源管理器](/zh-cn/docs/concepts/policy/node-resource-managers/)。

0 commit comments

Comments
 (0)