// Module included in the following assemblies:
//
// * edge_computing/day_2_core_cnf_clusters/updating/update-before-the-update.adoc

:_mod-docs-content-type: PROCEDURE
[id="update-pause-worker-nodes-before-update_{context}"]
= Pausing worker nodes before the update

[role="_abstract"]
You must pause the worker nodes before you proceed with the update.
In the following example, there are 2 `mcp` groups, `mcp-1` and `mcp-2`.
You patch the `spec.paused` field to `true` for each of the `MachineConfigPool` groups.

.Procedure

. Patch the `mcp` CRs to pause the nodes and drain and remove the pods from those nodes by running the following command:
+
[source,terminal]
----
$ oc patch mcp/mcp-1 --type merge --patch '{"spec":{"paused":true}}'
----
+
[source,terminal]
----
$ oc patch mcp/mcp-2 --type merge --patch '{"spec":{"paused":true}}'
----

. Get the status of the paused `mcp` groups:
+
[source,terminal]
----
$ oc get mcp -o json | jq -r '["MCP","Paused"], ["---","------"], (.items[] | [(.metadata.name), (.spec.paused)]) | @tsv' | grep -v worker
----
+
.Example output
[source,terminal]
----
MCP     Paused
---     ------
master  false
mcp-1   true
mcp-2   true
----
+
[NOTE]
====
The default control plane and worker `mcp` groups are not changed during an update.
====
