You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/architecture/nodes.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,8 @@ When you want to create Node objects manually, set the kubelet flag `--register-
140
140
You can modify Node objects regardless of the setting of `--register-node`.
141
141
For example, you can set labels on an existing Node or mark it unschedulable.
142
142
143
-
You can set optional node role(s) for nodes by adding one or more `node-role.kubernetes.io/<role>: <role>` labels to the node where characters of `<role>` are limited by the [syntax](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for labels.
143
+
You can set optional node role(s) for nodes by adding one or more `node-role.kubernetes.io/<role>: <role>` labels to the node where characters of `<role>`
144
+
are limited by the [syntax](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for labels.
144
145
145
146
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 label key.
Copy file name to clipboardExpand all lines: content/en/docs/reference/labels-annotations-taints/_index.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2739,12 +2739,17 @@ ignores that node while calculating Topology Aware Hints.
2739
2739
2740
2740
Type: Label
2741
2741
2742
-
Example: `node-role.kubernetes.io/*: *`
2742
+
Example: `node-role.kubernetes.io/gpu: gpu`
2743
2743
2744
2744
Used on: Node
2745
2745
2746
-
This label is applied to a node when we want to register a custom node role.
2747
-
Here `*` can be any node role that satisfies the [syntax](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for labels.
2746
+
This optional label is applied to a node when you want to mark a node role.
2747
+
The node role (text following `/` in the label key) can be set, as long as the overall key follows the
2748
+
[syntax](/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set) rules for
2749
+
object labels.
2750
+
2751
+
Kubernetes defines one specific node role, **control-plane**. A label you can use to mark that node
2752
+
role is [`node-role.kubernetes.io/control-plane`](#node-role-kubernetes-io-control-plane).
0 commit comments