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.
master
Dustin 2025-08-29 21:38:12 -05:00
parent c11a792eb8
commit 29cdafac2a
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ virsh uri || exit
set -- set --
nodes=$( 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/@@ | sed s@node/@@
) )
for node in ${nodes}; do for node in ${nodes}; do