mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
48 lines
982 B
Plaintext
48 lines
982 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/node_maintenance/virt-resuming-node.adoc
|
|
|
|
[id="virt-resuming-node-maintenance-cli_{context}"]
|
|
= Resuming a node from maintenance mode in the CLI
|
|
|
|
Resume a node from maintenance mode and make it schedulable again by deleting
|
|
the `NodeMaintenance` object for the node.
|
|
|
|
.Procedure
|
|
|
|
. Find the `NodeMaintenance` object:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get nodemaintenance
|
|
----
|
|
|
|
. Optional: Insepct the `NodeMaintenance` object to ensure it is associated with the correct node:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc describe nodemaintenance <node02-maintenance>
|
|
----
|
|
+
|
|
.Example output
|
|
[source,yaml]
|
|
----
|
|
Name: node02-maintenance
|
|
Namespace:
|
|
Labels:
|
|
Annotations:
|
|
API Version: nodemaintenance.kubevirt.io/v1beta1
|
|
Kind: NodeMaintenance
|
|
...
|
|
Spec:
|
|
Node Name: node02
|
|
Reason: Replacing node02
|
|
----
|
|
|
|
. Delete the `NodeMaintenance` object:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete nodemaintenance <node02-maintenance>
|
|
----
|