Skip to content

Commit 752e986

Browse files
authored
Merge pull request #87273 from mburke5678/wmco-eus-upgrade
WMCO EUS to EUS upgrade
2 parents 35aa2d4 + e858e00 commit 752e986

File tree

6 files changed

+113
-8
lines changed

6 files changed

+113
-8
lines changed

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ Topics:
28642864
File: creating-windows-machineset-vsphere
28652865
- Name: Scheduling Windows container workloads
28662866
File: scheduling-windows-workloads
2867-
- Name: Windows node upgrades
2867+
- Name: Windows node updates
28682868
File: windows-node-upgrades
28692869
- Name: Using Bring-Your-Own-Host Windows instances as nodes
28702870
File: byoh-windows-instance

modules/windows-upgrades-eus.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * windows_containers/windows-node-upgrades.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="wmco-upgrades-eus_{context}"]
7+
= Windows Machine Config Operator Control Plane Only update
8+
9+
{product-title} and Windows Machine Config Operator (WMCO) support updating from one EUS version to another EUS version of {product-title}, 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.
10+
11+
[IMPORTANT]
12+
====
13+
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 {product-title}.
14+
====
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * windows_containers/windows-node-upgrades.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="wmco-upgrades-eus-using-cli_{context}"]
7+
= WMCO Control Plane Only update by using the CLI
8+
9+
You can use the {oc-first} to perform a Control Plane Only update of the Windows Machine Config Operator (WMCO).
10+
11+
.Prerequisites
12+
* The cluster must be running on a supported EUS version of {product-title}.
13+
* All Windows nodes must be in a healthy state.
14+
* All Windows nodes must be running on the same version of the WMCO.
15+
* All the of the prerequisites of the Control Plane Only update are met, as described in "Performing a Control Plane Only update."
16+
17+
.Procedure
18+
19+
. Uninstall the WMCO Operator from the cluster by following the steps in "Deleting Operators from a cluster using the CLI."
20+
+
21+
[IMPORTANT]
22+
====
23+
Delete the Operator only. Do not delete the Windows namespace or any Windows workloads.
24+
====
25+
26+
. Update {product-title} by following the steps in "Performing a Control Plane Only update."
27+
28+
. Install the new WMCO version by following the steps in "Installing the Windows Machine Config Operator using the CLI."
29+
30+
.Verification
31+
32+
* On the Verify that the *Status* shows *Succeeded* to confirm successful installation of the WMCO.
33+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * windows_containers/windows-node-upgrades.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="wmco-upgrades-eus-using-web-console_{context}"]
7+
= WMCO Control Plane Only update by using the web console
8+
9+
You can use the {product-title} web console to perform a Control Plane Only update of the Windows Machine Config Operator (WMCO).
10+
11+
.Prerequisites
12+
* The cluster must be running on a supported EUS version of {product-title}.
13+
* All Windows nodes must be in a healthy state.
14+
* All Windows nodes must be running on the same version of the WMCO.
15+
* All the of the prerequisites of the Control Plane Only update are met, as described in "Performing a Control Plane Only update."
16+
17+
.Procedure
18+
19+
. Uninstall WMCO operator by using the following the steps:
20+
+
21+
[IMPORTANT]
22+
====
23+
Delete the Operator only. Do not delete the Windows namespace or any Windows workloads.
24+
====
25+
+
26+
.. Log in to the {product-title} web console.
27+
.. Navigate to *Operators -> OperatorHub*.
28+
.. Use the *Filter by keyword* box to search for `Red Hat Windows Machine Config Operator`.
29+
.. Click the *Red Hat Windows Machine Config Operator* tile. The Operator tile indicates it is installed.
30+
.. In the *Windows Machine Config Operator* descriptor page, click *Uninstall*.
31+
32+
. Update {product-title} by following the steps in "Performing a Control Plane Only update."
33+
34+
. Install the new WMCO version by following the steps in "Installing the Windows Machine Config Operator using the web console."

modules/wmco-upgrades.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
// * windows_containers/windows-node-upgrades.adoc
44

55
[id="wmco-upgrades_{context}"]
6-
= Windows Machine Config Operator upgrades
6+
= Windows Machine Config Operator updates
77

8-
When a new version of the Windows Machine Config Operator (WMCO) is released that is compatible with the current cluster version, the Operator is upgraded based on the upgrade channel and subscription approval strategy it was installed with when using the Operator Lifecycle Manager (OLM). The WMCO upgrade results in the Kubernetes components in the Windows machine being upgraded.
8+
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.
99

1010
[NOTE]
1111
====
12-
If you are upgrading to a new version of the WMCO and want to use cluster monitoring, you must have the `openshift.io/cluster-monitoring=true` label present in the WMCO namespace. If you add the label to a pre-existing WMCO namespace, and there are already Windows nodes configured, restart the WMCO pod to allow monitoring graphs to display.
12+
If you are updating to a new version of the WMCO and want to use cluster monitoring, you must have the `openshift.io/cluster-monitoring=true` label present in the WMCO namespace. If you add the label to a pre-existing WMCO namespace, and there are already Windows nodes configured, restart the WMCO pod to allow monitoring graphs to display.
1313
====
1414

15-
For a non-disruptive upgrade, 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 upgrade, the WMCO adds a version annotation to all the configured nodes. During an upgrade, a mismatch in version annotation results in the deletion and recreation of a Windows machine. To have minimal service disruptions during an upgrade, the WMCO only updates one Windows machine at a time.
15+
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.
1616

1717
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).
1818

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
11
:_mod-docs-content-type: ASSEMBLY
22
[id="windows-node-upgrades"]
3-
= Windows node upgrades
3+
= Windows node updates
44
include::_attributes/common-attributes.adoc[]
55
:context: windows-node-upgrades
66

77
toc::[]
88

9-
You can ensure your Windows nodes have the latest updates by upgrading the Windows Machine Config Operator (WMCO).
9+
You can ensure your Windows nodes have the latest updates by updating the Windows Machine Config Operator (WMCO).
10+
11+
You can update the WMCO in any of the following scenarios:
12+
13+
* Within the current version. for example, from <10.y.z> to <10.y.z+1>.
14+
* To a new, contiguous version. For example, from <10.y> to <10.y+1>.
15+
* From an EUS version to another EUS version by using a Control Plane Only update. For example, from <10.y> to <10.y+2>.
1016
1117
include::modules/wmco-upgrades.adoc[leveloffset=+1]
1218

13-
For more information on Operator upgrades using the Operator Lifecycle Manager (OLM), see xref:../operators/admin/olm-upgrading-operators.adoc#olm-upgrading-operators[Updating installed Operators].
19+
[role="_additional-resources"]
20+
.Additional resources
21+
* xref:../operators/admin/olm-upgrading-operators.adoc#olm-upgrading-operators[Updating installed Operators].
22+
23+
include::modules/windows-upgrades-eus.adoc[leveloffset=+1]
24+
include::modules/wmco-upgrades-eus-using-web-console.adoc[leveloffset=+2]
25+
26+
[role="_additional-resources"]
27+
.Additional resources
28+
* xref:../updating/updating_a_cluster/control-plane-only-update.adoc#control-plane-only-update[Performing a Control Plane Only update]
29+
* xref:../windows_containers/enabling-windows-container-workloads.adoc#installing-wmco-using-web-console_enabling-windows-container-workloads[Installing the Windows Machine Config Operator using the web console]
30+
31+
include::modules/wmco-upgrades-eus-using-cli.adoc[leveloffset=+2]
32+
33+
[role="_additional-resources"]
34+
.Additional resources
35+
* xref:../operators/admin/olm-deleting-operators-from-cluster.adoc#olm-deleting-operator-from-a-cluster-using-cli_olm-deleting-operators-from-a-cluster[Deleting Operators from a cluster using the CLI]
36+
* xref:../updating/updating_a_cluster/control-plane-only-update.adoc#control-plane-only-update[Performing a Control Plane Only update]
37+
* xref:../windows_containers/enabling-windows-container-workloads.adoc#installing-wmco-using-cli_enabling-windows-container-workloads[Installing the Windows Machine Config Operator using the CLI]

0 commit comments

Comments
 (0)