mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * machine_management/control_plane_machine_management/cpmso-using.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="cpmso-feat-replace_{context}"]
|
|
= Replacing a control plane machine
|
|
|
|
To replace a control plane machine in a cluster that has a control plane machine set, you delete the machine manually. The control plane machine set replaces the deleted machine with one using the specification in the control plane machine set custom resource (CR).
|
|
|
|
.Procedure
|
|
|
|
. List the control plane machines in your cluster by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get machines \
|
|
-l machine.openshift.io/cluster-api-machine-role==master \
|
|
-n openshift-machine-api
|
|
----
|
|
|
|
. Delete a control plane machine by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete machine \
|
|
-n openshift-machine-api \
|
|
<control_plane_machine_name> <1>
|
|
----
|
|
<1> Specify the name of the control plane machine to delete.
|
|
+
|
|
[NOTE]
|
|
====
|
|
If you delete multiple control plane machines, the control plane machine set replaces them according to the configured update strategy:
|
|
|
|
* For clusters that use the default `RollingUpdate` update strategy, the Operator replaces one machine at a time until each machine is replaced.
|
|
|
|
* For clusters that are configured to use the `OnDelete` update strategy, the Operator creates all of the required replacement machines simultaneously.
|
|
|
|
Both strategies maintain etcd health during control plane machine replacement.
|
|
==== |