draino icon indicating copy to clipboard operation
draino copied to clipboard

draino and kured

Open limberger opened this issue 5 years ago • 4 comments

please, is there any simple way to integrate draino with kured? On successful drain, touch /var/run/reboot-required ...

Thanks!

limberger avatar Aug 11 '20 14:08 limberger

or ... on successful drain, exec a command on the node ...

limberger avatar Aug 11 '20 14:08 limberger

Can you walk this out a bit for me? Maybe kured could set a NodeCondition for us and we sit back and relax in the bliss of generality that is NodeConditions :)

jacobstr avatar Aug 29 '20 05:08 jacobstr

From kured doc:

Cordons & drains worker nodes before reboot, uncordoning them after

I see that the 2 systems would be competing on the cordon/drain activities. If draino takes the actions to cordon/drain, and then only kured reboots the node, the condition on the node should be removed from the node (if it makes sense, it may not depending on the signal/condition), else the uncordon by kured would be immediately reverted (back to cordon) by Draino.

dbenque avatar Sep 04 '20 06:09 dbenque

I ended up choosing to use only kured with alertmanager and a webhook.

limberger avatar Sep 05 '20 22:09 limberger