mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
kubeadm: add missing taint for upgrade health check
This is part of the "master" -> "control-plane" rename that we missed. It's not critical for 1.21 as the "control-plane" taint is still not added to CP nodes, but it would be best to add the toleration preemptively like the KEP planned.
This commit is contained in:
parent
92c3349cef
commit
3e95f9d491
@ -126,7 +126,11 @@ func createJob(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration)
|
|||||||
},
|
},
|
||||||
Tolerations: []v1.Toleration{
|
Tolerations: []v1.Toleration{
|
||||||
{
|
{
|
||||||
Key: "node-role.kubernetes.io/master",
|
Key: constants.LabelNodeRoleOldControlPlane,
|
||||||
|
Effect: v1.TaintEffectNoSchedule,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Key: constants.LabelNodeRoleControlPlane,
|
||||||
Effect: v1.TaintEffectNoSchedule,
|
Effect: v1.TaintEffectNoSchedule,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user