-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tolerations for Kubernetes 1.24 #3731
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
kubeadm v1.24.0 will add both taints for control-plane Nodes and it seems to be a bug. But adding both tolerations has no side effects.
It seems an intended change: https://github.com/kubernetes/kubernetes/blame/master/CHANGELOG/CHANGELOG-1.24.md#L330
For new clusters, both the old taint node-role.kubernetes.io/master:NoSchedule and new taint node-role.kubernetes.io/control-plane:NoSchedule will be added to control plane nodes.
Codecov Report
@@ Coverage Diff @@
## main #3731 +/- ##
==========================================
- Coverage 64.60% 63.95% -0.65%
==========================================
Files 278 278
Lines 39640 39753 +113
==========================================
- Hits 25608 25426 -182
- Misses 12043 12370 +327
+ Partials 1989 1957 -32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@xliuxu could you resolve conflicts? |
55165d1
to
9384991
Compare
@xliuxu could you also update tolerations of antrea-controller? antrea/build/charts/antrea/values.yaml Lines 203 to 205 in 4a3b76c
Otherwise antrea-controller will never be scheduled to control-plane node. The title may need adjustment after that. |
9384991
to
db794a1
Compare
@tnqn Done. Thanks! |
build/charts/antrea/values.yaml
Outdated
@@ -203,6 +203,9 @@ controller: | |||
# Allow it to schedule onto master nodes. | |||
- key: node-role.kubernetes.io/master | |||
effect: NoSchedule | |||
# Control-plane taint since Kubernetes >= 1.24. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Control-plane taint since Kubernetes >= 1.24. | |
# Control-plane taint since Kubernetes 1.24. |
or
# Control-plane taint since Kubernetes >= 1.24. | |
# Control-plane taint for Kubernetes >= 1.24. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
db794a1
to
38523b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test-all |
The taints for control-plane Nodes are changed for cluster version >= 1.24. Add a new toleration for Pods running on control-plane Nodes to make sure they can be scheduled. Signed-off-by: Xu Liu <xliu2@vmware.com>
38523b7
to
4399c2b
Compare
/test-all |
@xliuxu could you please backport this PR to release 1.5 and 1.6? |
The taints and labels for control-plane Nodes will be changed for
cluster version >= 1.24.
kubeadm v1.24.0 will add both taints for control-plane Nodes and
it seems to be a bug. But adding both tolerations has no side effects.
Signed-off-by: Xu Liu xliu2@vmware.com