You can ensure your Windows nodes have the latest updates by updating the Windows Machine Config Operator (WMCO).
You can update the WMCO in any of the following scenarios:
Within the current version. for example, from <10.y.z> to <10.y.z+1>.
To a new, contiguous version. For example, from <10.y> to <10.y+1>.
From an EUS version to another EUS version by using a Control Plane Only update. For example, from <10.y> to <10.y+2>.
When a new version of the Windows Machine Config Operator (WMCO) is released that is compatible with the current cluster version, the Operator is updated based on the update channel and subscription approval strategy it was installed with when using the Operator Lifecycle Manager (OLM). The WMCO update results in the Kubernetes components in the Windows machine being updated.
If you are updating to a new version of the WMCO and want to use cluster monitoring, you must have the |
For a non-disruptive update, the WMCO terminates the Windows machines configured by the previous version of the WMCO and recreates them using the current version. This is done by deleting the Machine
object, which results in the drain and deletion of the Windows node. To facilitate an update, the WMCO adds a version annotation to all the configured nodes. During an update, a mismatch in version annotation results in the deletion and recreation of a Windows machine. To have minimal service disruptions during an update, the WMCO only updates one Windows machine at a time.
After the update, it is recommended that you set the spec.os.name.windows
parameter in your workload pods. The WMCO uses this field to authoritatively identify the pod operating system for validation and is used to enforce Windows-specific pod security context constraints (SCCs).
The WMCO is only responsible for updating Kubernetes components, not for Windows operating system updates. You provide the Windows image when creating the VMs; therefore, you are responsible for providing an updated image. You can provide an updated Windows image by changing the image configuration in the |
OKD and Windows Machine Config Operator (WMCO) support updating from one EUS version to another EUS version of OKD, in a process called a Control Plane Only update. After upgrading the cluster, the Windows nodes are updated from the starting EUS version to the new EUS version while keeping the Windows workloads in a healthy state with no disruptions.
This update was previously known as an EUS-to-EUS update and is now referred to as a Control Plane Only update. These updates are only viable between even-numbered minor versions of OKD. |
You can use the OKD web console to perform a Control Plane Only update of the Windows Machine Config Operator (WMCO).
The cluster must be running on a supported EUS version of OKD.
All Windows nodes must be in a healthy state.
All Windows nodes must be running on the same version of the WMCO.
All the of the prerequisites of the Control Plane Only update are met, as described in "Performing a Control Plane Only update."
Uninstall WMCO operator by using the following the steps:
Delete the Operator only. Do not delete the Windows namespace or any Windows workloads. |
Log in to the OKD web console.
Navigate to Operators → OperatorHub.
Use the Filter by keyword box to search for Red Hat Windows Machine Config Operator
.
Click the Red Hat Windows Machine Config Operator tile. The Operator tile indicates it is installed.
In the Windows Machine Config Operator descriptor page, click Uninstall.
Update OKD by following the steps in "Performing a Control Plane Only update."
Install the new WMCO version by following the steps in "Installing the Windows Machine Config Operator using the web console."
You can use the OpenShift CLI (oc
) to perform a Control Plane Only update of the Windows Machine Config Operator (WMCO).
The cluster must be running on a supported EUS version of OKD.
All Windows nodes must be in a healthy state.
All Windows nodes must be running on the same version of the WMCO.
All the of the prerequisites of the Control Plane Only update are met, as described in "Performing a Control Plane Only update."
Uninstall the WMCO Operator from the cluster by following the steps in "Deleting Operators from a cluster using the CLI."
Delete the Operator only. Do not delete the Windows namespace or any Windows workloads. |
Update OKD by following the steps in "Performing a Control Plane Only update."
Install the new WMCO version by following the steps in "Installing the Windows Machine Config Operator using the CLI."
On the Verify that the Status shows Succeeded to confirm successful installation of the WMCO.