Skip to content

[Feature]: Allow primary to keep running on cordoned/unschedulable node #9997

Open

Description

@lhp-nemlig

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.

See the code here for specifics:

return node.Spec.Unschedulable

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.

In my opinion the function at

return node.Spec.Unschedulable
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

Activity

  1. added
    triage
    on Feb 16, 2026
  2. redbaron commented on Apr 7, 2026

    @redbaron
    Contributor

    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.

  3. github-actions commented on Jun 7, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  4. redbaron commented on Jun 7, 2026

    @redbaron
    Contributor

    Still relevant.

  5. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  6. redbaron commented on Sep 13, 2026

    @redbaron
    Contributor

    keep it up

  7. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  8. redbaron commented on Nov 17, 2026

    @redbaron
    Contributor

    not stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions