Skip to content

Commit

Permalink
[zh-cn]sync labels-annotations-taints/_index.md
Browse files Browse the repository at this point in the history
Signed-off-by: xin.li <[email protected]>
  • Loading branch information
my-git9 committed Feb 22, 2025
1 parent 47d2a6d commit 01fd5ee
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions content/zh-cn/docs/reference/labels-annotations-taints/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5311,6 +5311,42 @@ ignores that node while calculating Topology Aware Hints.
或者避免在控制平面上运行 Pod。如果设置了此标签,
[EndpointSlice 控制器](/zh-cn/docs/concepts/services-networking/topology-aware-routing/#implementation-control-plane)在计算拓扑感知提示时将忽略该节点。

<!--
### node-role.kubernetes.io/*

Type: Label

Example: `node-role.kubernetes.io/gpu: gpu`

Used on: Node
-->
### node-role.kubernetes.io/*

类别:标签

示例:`node-role.kubernetes.io/control-plane:NoSchedule`

用于:节点

<!--
This optional label is applied to a node when you want to mark a node role.
The node role (text following `/` in the label key) can be set, as long as the overall key follows the
[syntax](/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for
object labels.
-->
当你希望标记节点角色时,可以为节点添加此可选标签。
只要标签的整体键名符合对象标签的
[语法和字符集规则](/zh-cn/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set),
就可以设置为此节点的角色(标签键中 `/` 后面的文本)。

<!--
Kubernetes defines one specific node role, **control-plane**. A label you can use to mark that node
role is [`node-role.kubernetes.io/control-plane`](#node-role-kubernetes-io-control-plane).
-->
Kubernetes 定义了一个特定的节点角色:**控制平面(control-plane)**。你可以使用标签
[`node-role.kubernetes.io/control-plane`](#node-role-kubernetes-io-control-plane)
来标记此节点的角色。

<!--
### node-role.kubernetes.io/control-plane {#node-role-kubernetes-io-control-plane-taint}

Expand Down

0 comments on commit 01fd5ee

Please sign in to comment.