Este contenido no está disponible en el idioma seleccionado.
Chapter 5. Deleting a machine
You can delete a specific machine.
5.1. Deleting a specific machine Copiar enlaceEnlace copiado en el portapapeles!
You can delete a specific machine.
You cannot delete a control plane machine.
Prerequisites
- Install an OpenShift Container Platform cluster.
-
Install the OpenShift CLI ().
oc -
Log in to as a user with
ocpermission.cluster-admin
Procedure
View the machines that are in the cluster and identify the one to delete:
$ oc get machine -n openshift-machine-apiThe command output contains a list of machines in the
format.<clusterid>-worker-<cloud_region>Delete the machine:
$ oc delete machine <machine> -n openshift-machine-apiImportantBy default, the machine controller tries to drain the node that is backed by the machine until it succeeds. In some situations, such as with a misconfigured pod disruption budget, the drain operation might not be able to succeed in preventing the machine from being deleted. You can skip draining the node by annotating "machine.openshift.io/exclude-node-draining" in a specific machine. If the machine being deleted belongs to a machine set, a new machine is immediately created to satisfy the specified number of replicas.