diff --git a/cmd/kubeadm/app/phases/upgrade/health.go b/cmd/kubeadm/app/phases/upgrade/health.go index 1f54cbe2d2d..7ac2fa317cc 100644 --- a/cmd/kubeadm/app/phases/upgrade/health.go +++ b/cmd/kubeadm/app/phases/upgrade/health.go @@ -126,7 +126,11 @@ func createJob(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration) }, Tolerations: []v1.Toleration{ { - Key: "node-role.kubernetes.io/master", + Key: constants.LabelNodeRoleOldControlPlane, + Effect: v1.TaintEffectNoSchedule, + }, + { + Key: constants.LabelNodeRoleControlPlane, Effect: v1.TaintEffectNoSchedule, }, },