You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @iaguis for your presentation at HashiTalks2022!
You mentioned that there is no method to drain a node before an update, similar what the Flatcar Linux Update Operator does on Kubernetes. However, Nomad comes with a CLI command for that, e.g. nomad node drain -enable -self -force -yes force-drains the current node immediately.
This command could probably be run in a systemd service on reboot.target or shutdown.target. When the node is up again, you have to run nomad node drain -disable -self to remove the "drain" flag from the node again.
Thanks @iaguis for your presentation at HashiTalks2022!
You mentioned that there is no method to drain a node before an update, similar what the Flatcar Linux Update Operator does on Kubernetes. However, Nomad comes with a CLI command for that, e.g.
nomad node drain -enable -self -force -yesforce-drains the current node immediately.This command could probably be run in a systemd service on
reboot.targetorshutdown.target. When the node is up again, you have to runnomad node drain -disable -selfto remove the "drain" flag from the node again.