|
1 | 1 | // Module included in the following assemblies: |
2 | | -// |
3 | | -// * virt/node_maintenance/virt-node-maintenance.adoc |
4 | | -// * virt/node_maintenance/virt-setting-node-maintenance.adoc |
| 2 | +// virt/node_maintenance/virt-about-node-maintenance.adoc |
5 | 3 |
|
6 | 4 | [id="virt-understanding-node-maintenance_{context}"] |
7 | 5 | = Understanding node maintenance mode |
8 | 6 |
|
9 | | -Placing a node into maintenance marks the node as unschedulable and drains all |
10 | | -the virtual machines and pods from it. Virtual machine instances that have a |
11 | | -`LiveMigrate` eviction strategy are live migrated to another node without loss |
12 | | -of service. This eviction strategy is configured by default in virtual machine |
13 | | -created from common templates but must be configured manually for custom |
14 | | -virtual machines. |
| 7 | +Nodes can be placed into maintenance mode using the `oc adm` utility, or using `NodeMaintenance` custom resources (CRs). |
15 | 8 |
|
16 | | -Virtual machine instances without an eviction strategy will be deleted on the |
17 | | -node and recreated on another node. |
| 9 | +Placing a node into maintenance marks the node as unschedulable and drains all the virtual machines and pods from it. Virtual machine instances that have a `LiveMigrate` eviction strategy are live migrated to another node without loss of service. This eviction strategy is configured by default in virtual machine created from common templates but must be configured manually for custom virtual machines. |
| 10 | + |
| 11 | +Virtual machine instances without an eviction strategy are shut down. Virtual machines with a `RunStrategy` of `Running` or `RerunOnFailure` are recreated on another node. Virtual machines with a `RunStrategy` of `Manual` are not automatically restarted. |
18 | 12 |
|
19 | 13 | [IMPORTANT] |
20 | 14 | ==== |
21 | | -Virtual machines must have a persistent volume claim (PVC) with a shared |
22 | | -ReadWriteMany (RWX) access mode to be live migrated. |
| 15 | +Virtual machines must have a persistent volume claim (PVC) with a shared `ReadWriteMany` (RWX) access mode to be live migrated. |
23 | 16 | ==== |
24 | 17 |
|
| 18 | +When installed as part of OpenShift Virtualization, Node Maintenance Operator watches for new or deleted `NodeMaintenance` CRs. When a new `NodeMaintenance` CR is detected, no new workloads are scheduled and the node is cordoned off from the rest of the cluster. All pods that can be evicted are evicted from the node. When a `NodeMaintenance` CR is deleted, the node that is referenced in the CR is made available for new workloads. |
25 | 19 |
|
| 20 | +[NOTE] |
| 21 | +==== |
| 22 | +Using a `NodeMaintenance` CR for node maintenance tasks achieves the same results as the `oc adm cordon` and `oc adm drain` commands using standard {product-title} custom resource processing. |
| 23 | +==== |
0 commit comments