Skip to content

Commit a337ec3

Browse files
committed
made changes to better fit style guide
1 parent 76806ad commit a337ec3

File tree

2 files changed

+10
-4
lines changed
  • content/en/docs

2 files changed

+10
-4
lines changed

content/en/docs/concepts/architecture/nodes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ When you want to create Node objects manually, set the kubelet flag `--register-
140140
You can modify Node objects regardless of the setting of `--register-node`.
141141
For example, you can set labels on an existing Node or mark it unschedulable.
142142

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.
144145

145146
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.
146147

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,12 +2739,17 @@ ignores that node while calculating Topology Aware Hints.
27392739

27402740
Type: Label
27412741

2742-
Example: `node-role.kubernetes.io/*: *`
2742+
Example: `node-role.kubernetes.io/gpu: gpu`
27432743

27442744
Used on: Node
27452745

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).
27482753

27492754
### node-role.kubernetes.io/control-plane {#node-role-kubernetes-io-control-plane-taint}
27502755

0 commit comments

Comments
 (0)