Skip to content

Commit

Permalink
added paths to drainreboot
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxdepend committed Jan 22, 2025
1 parent 8721629 commit 4fb2643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/microk8s/drainreboot
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if [ -f /var/run/reboot-required ]; then
# fleetlock lock
. /etc/run-cosmos-fleetlock-conf
sunet-fleetlock --lock-group $fleetlock_group --lock || exit 1
/usr/local/bin/sunet-fleetlock --lock-group $fleetlock_group --lock || exit 1
# drain kube and reboot
kubectl drain $(hostname) --ignore-daemonsets && systemctl reboot
/snap/bin/kubectl drain $(hostname) --ignore-daemonsets && /usr/bin/systemctl reboot
fi

0 comments on commit 4fb2643

Please sign in to comment.