From b439d46d27c257df04d3e4bfb8c59ab46b7c03bb Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Tue, 7 Jun 2022 15:05:34 +0530 Subject: [PATCH] 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 (cherry picked from commit 750faa5747a414f50f4eba6fdd1aae9773c464f2) --- deploy/examples/cluster-stretched-aws.yaml | 7 +++++-- deploy/examples/cluster-stretched.yaml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/deploy/examples/cluster-stretched-aws.yaml b/deploy/examples/cluster-stretched-aws.yaml index 5bf4b53b2..c4a7ad5b7 100644 --- a/deploy/examples/cluster-stretched-aws.yaml +++ b/deploy/examples/cluster-stretched-aws.yaml @@ -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: diff --git a/deploy/examples/cluster-stretched.yaml b/deploy/examples/cluster-stretched.yaml index cebd920d0..ed0b23092 100644 --- a/deploy/examples/cluster-stretched.yaml +++ b/deploy/examples/cluster-stretched.yaml @@ -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: