Skip to content

Commit 3aefd43

Browse files
committed
Updated node roles in docs
1 parent ea651f2 commit 3aefd43

File tree

2 files changed

+5
-3
lines changed
  • content/en/docs

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +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 for nodes by adding `node-role.kubernetes.io/<role>=` label 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 of labels.
144+
143145
You can use labels on Nodes in conjunction with node selectors on Pods to control
144146
scheduling. For example, you can constrain a Pod to only be eligible to run on
145147
a subset of the available nodes.

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

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

27402740
Type: Taint
27412741

2742-
Example: `node-role.kubernetes.io/control-plane:NoSchedule`
2742+
Example: `node-role.kubernetes.io/*:NoSchedule`
27432743

27442744
Used on: Node
27452745

@@ -2751,7 +2751,7 @@ be scheduled onto them. You can manually remove this taint with the following
27512751
command on a specific node.
27522752

27532753
```shell
2754-
kubectl taint nodes <node-name> node-role.kubernetes.io/control-plane:NoSchedule-
2754+
kubectl taint nodes <node-name> node-role.kubernetes.io/*:NoSchedule-
27552755
```
27562756

27572757
### node-role.kubernetes.io/master (deprecated) {#node-role-kubernetes-io-master-taint}
@@ -2760,7 +2760,7 @@ Type: Taint
27602760

27612761
Used on: Node
27622762

2763-
Example: `node-role.kubernetes.io/master:NoSchedule`
2763+
Example: `node-role.kubernetes.io/*:NoSchedule`
27642764

27652765
Taint that kubeadm previously applied on control plane nodes to allow only critical
27662766
workloads to schedule on them. Replaced by the

0 commit comments

Comments
 (0)