Skip to content

Conversation

@D3luxee
Copy link

@D3luxee D3luxee commented Jun 12, 2025

This PR introduces the concept of "Inhibiting Blockers" and implements the node annotation blocker.

We have the use case in which we have to drain the node and once all pods are gone some final work will be done on the node. In cloud we have the cluster-autoscaler.kubernetes.io/scale-down-disabled annotation to prevent the cluster autoscaler to scale down to early.

We needed a similar mechanism for baremetal with kured so the idea was to also let kured check for a configured annotation and block the reboot.
However the current implementation of blockers also block draining the node so i had to introduce a new type of Blockers which i named "Inhibiting Blockers" in the flags.

This code was build and verified in one of our dev clusters.

This PR might also be a starting point to resolve #1130

I will also provide the necessary changes on the helm chart once i know that the flags etc will stay with the names.

@D3luxee D3luxee force-pushed the blocking_node_annotation branch from 21eec48 to bba1f03 Compare June 12, 2025 10:28
@evrardjp evrardjp added the FEATURE-v2 This is a feature improvement that needs to be taken into consideration for v2 label Jul 14, 2025
D3luxee added 3 commits August 7, 2025 14:26
Signed-off-by: Georg Doser <georg.doser@nitrado.net>
Inhibiting blockers will only block the final reboot command not the draining of nodes.

Signed-off-by: Georg Doser <georg.doser@nitrado.net>
…dition

Signed-off-by: Georg Doser <georg.doser@nitrado.net>
@D3luxee D3luxee force-pushed the blocking_node_annotation branch from 0699368 to ac17245 Compare August 7, 2025 12:26
@evrardjp evrardjp added the enhancement This was triaged as an enhancement label Aug 11, 2025
@github-actions
Copy link

This PR was automatically considered stale due to lack of activity. Please refresh it and/or join our slack channels to highlight it, before it automatically closes (in 7 days).

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

Labels

enhancement This was triaged as an enhancement FEATURE-v2 This is a feature improvement that needs to be taken into consideration for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] New flag that cordons and locks kured on the first available node until it reboots

2 participants