Skip to content

Commit 3f6736d

Browse files
authored
Merge pull request #49862 from my-git9/np-23547
[zh-cn]sync labels-annotations-taints/_index.md
2 parents e85783d + cc66958 commit 3f6736d

File tree

1 file changed

+36
-0
lines changed
  • content/zh-cn/docs/reference/labels-annotations-taints

1 file changed

+36
-0
lines changed

content/zh-cn/docs/reference/labels-annotations-taints/_index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5311,6 +5311,42 @@ ignores that node while calculating Topology Aware Hints.
53115311
或者避免在控制平面上运行 Pod。如果设置了此标签,
53125312
[EndpointSlice 控制器](/zh-cn/docs/concepts/services-networking/topology-aware-routing/#implementation-control-plane)在计算拓扑感知提示时将忽略该节点。
53135313

5314+
<!--
5315+
### node-role.kubernetes.io/*
5316+
5317+
Type: Label
5318+
5319+
Example: `node-role.kubernetes.io/gpu: gpu`
5320+
5321+
Used on: Node
5322+
-->
5323+
### node-role.kubernetes.io/*
5324+
5325+
类别:标签
5326+
5327+
示例:`node-role.kubernetes.io/control-plane:NoSchedule`
5328+
5329+
用于:Node
5330+
5331+
<!--
5332+
This optional label is applied to a node when you want to mark a node role.
5333+
The node role (text following `/` in the label key) can be set, as long as the overall key follows the
5334+
[syntax](/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for
5335+
object labels.
5336+
-->
5337+
当你希望标记节点角色时,可以为 Node 添加此可选标签。
5338+
只要标签的整体键名符合对象标签的
5339+
[语法和字符集规则](/zh-cn/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set),
5340+
就可以用此标签设置节点的角色(标签键 `/` 后面的文本为节点角色名)。
5341+
5342+
<!--
5343+
Kubernetes defines one specific node role, **control-plane**. A label you can use to mark that node
5344+
role is [`node-role.kubernetes.io/control-plane`](#node-role-kubernetes-io-control-plane).
5345+
-->
5346+
Kubernetes 定义了一个特定的节点角色:**control-plane(控制平面)**。你可以使用标签
5347+
[`node-role.kubernetes.io/control-plane`](#node-role-kubernetes-io-control-plane)
5348+
来标记节点的这一角色。
5349+
53145350
<!--
53155351
### node-role.kubernetes.io/control-plane {#node-role-kubernetes-io-control-plane-taint}
53165352

0 commit comments

Comments
 (0)