Skip to content

Commit

Permalink
doc: Add maintenance mode improvements
Browse files Browse the repository at this point in the history
Related to: harvester/harvester#5069

Signed-off-by: Volker Theile <vtheile@suse.com>
  • Loading branch information
votdev committed Mar 11, 2024
1 parent 17ebd59 commit 07162d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/host/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Because Harvester is built on top of Kubernetes and uses etcd as its database, t

For admin users, you can click **Enable Maintenance Mode** to evict all VMs from a node automatically. It will leverage the `VM live migration` feature to migrate all VMs to other nodes automatically. Note that at least two active nodes are required to use this feature.

If you want to force a shutdown of a VM instead of migrating it to another node, add the label `harvesterhci.io/maintain-force-shutdown` and the value `true` to those VMs.
If you are looking to execute a special command before shutting down the VM, then you should look at the [container lifecycle hook](https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks) `PreStop`.

![node-maintenance.png](/img/v1.2/host/node-maintenance.png)

## Cordoning a Node
Expand Down

0 comments on commit 07162d1

Please sign in to comment.