mon: update node labels as per new key value
From kube v1.24 onwards, Kubeadm applies a "node-role" label to its
control plane Nodes.Currently this label key is node-role.kubernetes.io/master
and it will be renamed to node-role.kubernetes.io/control-plane. Kubeadm
also uses the same "node-role" as key for a taint it applies on control
plane Nodes. This taint key should also be renamed to
"node-role.kubernetes.io/control-plane".
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit 750faa5747)
This commit is contained in:
1 parent
f40cacd0f8
commit
b439d46d27
2 files changed
+10
-4
No files matched your search
@@ -126,10 +126,13 @@ spec:
|
||||
placement:
|
||||
# The arbiter mon can have its own placement settings that will be different from the mons.
|
||||
# If the arbiter section is not included in the placement, the arbiter will use the same placement
|
||||
# settings as other mons. In this example, the arbiter has a toleration to run on a master node.
|
||||
# settings as other mons. In this example, the arbiter has a toleration to run on a control-plane node.
|
||||
arbiter:
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/master
|
||||
# kubernetes v1.24 clusters would need the taint `node-role.kubernetes.io/control-plane`
|
||||
# configuration. For earlier versions you may use `node-role.kubernetes.io/master` if
|
||||
# available in your cluster.
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: Exists
|
||||
effect: NoSchedule
|
||||
priorityClassNames:
|
||||
|
||||
@@ -54,10 +54,13 @@ spec:
|
||||
placement:
|
||||
# The arbiter mon can have its own placement settings that will be different from the mons.
|
||||
# If the arbiter section is not included in the placement, the arbiter will use the same placement
|
||||
# settings as other mons. In this example, the arbiter has a toleration to run on a master node.
|
||||
# settings as other mons. In this example, the arbiter has a toleration to run on a control-plane node.
|
||||
arbiter:
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/master
|
||||
# kubernetes v1.24 clusters would need the taint `node-role.kubernetes.io/control-plane`
|
||||
# configuration. For earlier versions you may use `node-role.kubernetes.io/master` if
|
||||
# available in your cluster.
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: Exists
|
||||
effect: NoSchedule
|
||||
osd:
|
||||
|
||||
Reference in new issue
Block a user