From 29cdafac2a4b90a8735a167a4a01783d9713b4c8 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 29 Aug 2025 21:38:12 -0500 Subject: [PATCH] scripts/shutdown-vmhost: Skip Longhorn nodes We **DO NOT** want to shut down the Longhorn Kubernetes nodes! Doing so would pretty much nuke everything running in the cluster. The shutdown script will need to migrate them online; fortunately, since they don't run anything except Longhorn, they should be able to migrate fine. --- scripts/shutdown-vmhost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/shutdown-vmhost.sh b/scripts/shutdown-vmhost.sh index 62fc70e..8935bbe 100755 --- a/scripts/shutdown-vmhost.sh +++ b/scripts/shutdown-vmhost.sh @@ -63,7 +63,7 @@ virsh uri || exit set -- nodes=$( - kubectl get node -o name -l '!node-role.kubernetes.io/control-plane' \ + kubectl get node -o name -l '!node-role.kubernetes.io/control-plane,!node-role.kubernetes.io/longhorn' \ | sed s@node/@@ ) for node in ${nodes}; do