1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/update-using-custom-machine-config-pools-pause.adoc
2025-08-12 09:20:08 +00:00

33 lines
899 B
Plaintext

// Module included in the following assemblies:
//
// * updating/updating_a_cluster/update-using-custom-machine-config-pools.adoc
:_mod-docs-content-type: PROCEDURE
[id="update-using-custom-machine-config-pools-pause_{context}"]
= Pausing the machine config pools
After you create your custom machine config pools (MCPs), you then pause those MCPs. Pausing an MCP prevents the Machine Config Operator (MCO) from updating the nodes associated with that MCP.
.Procedure
. Patch the MCP that you want paused by running the following command:
+
[source,terminal]
----
$ oc patch mcp/<mcp_name> --patch '{"spec":{"paused":true}}' --type=merge
----
+
For example:
+
[source,terminal]
----
$ oc patch mcp/workerpool-canary --patch '{"spec":{"paused":true}}' --type=merge
----
+
.Example output
[source,terminal]
----
machineconfigpool.machineconfiguration.openshift.io/workerpool-canary patched
----