draino
draino copied to clipboard
draino and kured
please, is there any simple way to integrate draino with kured? On successful drain, touch /var/run/reboot-required ...
Thanks!
or ... on successful drain, exec a command on the node ...
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 :)
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.
I ended up choosing to use only kured with alertmanager and a webhook.