Repository navigation
feat: allow customization of taints for node drain detection - #6928
gbartolini merged 14 commits into
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
82c0133 to
62555cc
Compare
|
@sxd could you take a look at this one? apologies for the three separate PRs this seemed to turn into. |
62555cc to
dfffff7
Compare
|
/test limit=local depth=push tl=4 |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/13768982184 |
e20d65b to
771a652
Compare
|
Hi @MarcusDunn Hope you’re well. I think you may need to add back the drain taints check to the cluster_controller.go. Without that, I think it will trigger NodeToCluster reconciliation loop whenever a node is changed, added, removed from the cluster and it should only do that if a node is draining I believe. Thanks |
|
I would have liked to have a more clever check in For now (I think!) it only runs if any taints have changed. Suggestions welcome. |
|
Oh I thought that was going to be an operator level configuration, not individual cluster level.
It would be better to be an operator level configuration as all nodes in a k8 cluster are normally managed by the same auto scaler and therefore need the same taints.
…________________________________
From: Marcus Dunn ***@***.***>
Sent: Monday, March 10, 2025 8:52:26 PM
To: cloudnative-pg/cloudnative-pg ***@***.***>
Cc: FF-Ninja ***@***.***>; Comment ***@***.***>
Subject: Re: [cloudnative-pg/cloudnative-pg] feat: 5299 check for nodes cordoned by autoscalars (PR #6928)
I would have liked to have a more clever check in cluster_controller but because the drain taints are configured per-cluster, I don't think there was a great way to do it.
For now (I think!) it only runs if any taints have changed.
Suggestions welcome.
—
Reply to this email directly, view it on GitHub<#6928 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOLQMDVAPFMVTERQQIRG3JD2TYCRVAVCNFSM6AAAAABXUJMEFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJRG44TMNJSHA>.
You are receiving this because you commented.Message ID: ***@***.***>
[MarcusDunn]MarcusDunn left a comment (cloudnative-pg/cloudnative-pg#6928)<#6928 (comment)>
I would have liked to have a more clever check in cluster_controller but because the drain taints are configured per-cluster, I don't think there was a great way to do it.
For now (I think!) it only runs if any taints have changed.
Suggestions welcome.
—
Reply to this email directly, view it on GitHub<#6928 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOLQMDVAPFMVTERQQIRG3JD2TYCRVAVCNFSM6AAAAABXUJMEFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJRG44TMNJSHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
That seems pretty reasonable. |
|
/test limit=local depth=push tl=4 |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/13793207574 |
51e94b2 to
0affe1c
Compare
|
@armru Is there anything I can do to move this along? |
|
@mnencia we should put this in the queue so we can take a look and give feedback |
02cc0d2 to
f4b0c06
Compare
Signed-off-by: Marcus Dunn <[email protected]>
Signed-off-by: Marcus Dunn <[email protected]>
Mostly via formatting but had to ignore one because I did not want to spread URL across two lines. Signed-off-by: Marcus Dunn <[email protected]>
…up when reconcile is triggered Signed-off-by: Marcus Dunn <[email protected]>
Signed-off-by: Marcus Dunn <[email protected]>
Signed-off-by: Marcus Dunn <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
b4b28a3 to
14c074a
Compare
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
|
/test limit=local tl=4 depth=push |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/14083917537 |
Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
The issue has been introduced by merging #6928 Signed-off-by: Marco Nenciarini <[email protected]>
Introduce the
DRAIN_TAINTSoperator configuration option, enabling users to specify which taint keys should be recognized as indicators of node drain.By default, this includes commonly used taints from
kubectl, Cluster Autoscaler, and Karpenter:node.kubernetes.io/unschedulableToBeDeletedByClusterAutoscalerkarpenter.sh/disruptedkarpenter.sh/disruptionThis enhancement provides greater flexibility in handling node drain scenarios, allowing adaptation to different cluster configurations and scheduling strategies.
Fixes: #5299