kubernetes: Kubelet doesn't check taints
What happened:
The GeneralPredicates
method doesn’t check taints and tolerations.
This is problematic in 2 scenarios:
- If the users bypass scheduler by setting a value in
.spec.nodeName
- If the node restarts. The node would try to restart scheduled pods once it comes back up, even if it’s not ready (has a not-ready taint).
What you expected to happen:
Kubelet to check taints and tolerations.
How to reproduce it (as minimally and precisely as possible):
- Set a taint in a node.
- Create a Pod with
.spec.nodeName
set to the Node above, without a matching toleration.
/sig node /sig scheduling
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 15 (12 by maintainers)
/remove-lifecycle stale
PR in review: https://github.com/kubernetes/kubernetes/pull/101218
Please add me as reviewer