brainy-kilobyte-33711
07/24/2025, 2:27 PMharvester-system
namespace with a bash script that waits for /tmp/node_ready
to exist and then calls do_upgrade_node.sh pre-drain
2. Create a MutatingWebhookConfiguration to intercept just the pre-drain jobs which have a specific set of labels: <http://harvesterhci.io/upgradeComponent|harvesterhci.io/upgradeComponent>: node
& <http://harvesterhci.io/upgradeJobType|harvesterhci.io/upgradeJobType>: pre-drain
3. Create a webhook controller to process this and mutate the job request so it mounts your config map with the custom script and replaces the container command with one to run the custom script.
Now the upgrade pre-drain job which causes the drain and shutdowns of non migratable VMs won't be invoked until someone creates the /tmp/node_ready
file on the upgrade pre drain pod.
Hopefully this might help someone else.brainy-kilobyte-33711
07/24/2025, 2:29 PM<http://docker.io/longhornio/longhorn-engine|docker.io/longhornio/longhorn-engine>
images which come with python and not have to worry about loading custom images on to the nodesbrainy-kilobyte-33711
07/24/2025, 2:35 PMbland-article-62755
07/24/2025, 2:45 PMbland-article-62755
07/24/2025, 2:48 PMbland-article-62755
07/24/2025, 2:51 PMbrainy-kilobyte-33711
07/25/2025, 7:19 AMbrainy-kilobyte-33711
07/25/2025, 6:07 PM