You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Allow primary to keep running on cordoned/unschedulable node #9997
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
Cordoning a node with a cluster primary pod on it, forces a switchover regardless of the users's DRAIN_TAINTS setting. This is because the node.Spec.Unschedulable is currently hardcoded to cause a switchover, even if the unschedulable taint is overridden in DRAIN_TAINTS.
I think the intention of #6928 was to allow users to override this, but this line of code prevents users from overriding it completely.
Describe the solution you'd like
I want to be able to cordon nodes without forcing a switchover, atleast if I specifically configure DRAIN_TAINTS to not respect the "node.kubernetes.io/unschedulable" taint.
should return false instead of "node.Spec.Unschedulable".
Describe alternatives you've considered
The alternative is for me to think of a node cordon as a node drain, but I am not aware of any other workloads that act is if the node is about to be drained just because it is cordoned. I may just be unaware here though.
Additional context
No response
Backport?
No
Are you willing to actively contribute to this feature?
Yes
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by dosubot, Lars Bing Bong., Remp69, Jordan Pittier, Serge, legrandlegrand and priprd
I was looking for a way to stop drains on NoSchedule taints and found this issue. I am happy to submit fix if maintainers agree to stop honouring node.Spec.Unschedulable if DRAIN_TAINTS are set.
Activity
redbaron commentedon Apr 7, 2026
I was looking for a way to stop drains on NoSchedule taints and found this issue. I am happy to submit fix if maintainers agree to stop honouring
node.Spec.UnschedulableifDRAIN_TAINTSare set.github-actions commentedon Jun 7, 2026
This issue is stale because it has been open for 60 days with no activity.
redbaron commentedon Jun 7, 2026
Still relevant.
github-actions commentedon Sep 12, 2026
This issue is stale because it has been open for 60 days with no activity.
redbaron commentedon Sep 13, 2026
keep it up
github-actions commentedon Nov 17, 2026
This issue is stale because it has been open for 60 days with no activity.
redbaron commentedon Nov 17, 2026
not stale