You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/mco-update-boot-images-disable.adoc
+49-5Lines changed: 49 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,22 @@
10
10
[role="_abstract"]
11
11
You can disable the boot image management feature so that the Machine Config Operator (MCO) no longer manages or updates the boot image in the affected machine sets. For example, you could disable this feature for the worker nodes in order to use a custom boot image that you do not want changed.
12
12
13
+
[NOTE]
14
+
====
15
+
If you are updating an {azure-first} or {vmw-first} cluster from {product-title} 4.21 to 4.22, and you have not configured the `managedBootImages` parameter, the update is blocked with a _This cluster is Azure or vSphere but lacks a boot image configuration._ message. The update is blocked intentionally on {azure-short} or {vmw-short} clusters in order to alert you that the default boot image management behavior is changing between version 4.21 and 4.22 to enable boot images management by default on those platforms.
16
+
17
+
To allow the update, perform one of the following tasks:
18
+
19
+
* If you want to allow the feature to be enabled, acknowledge that you are aware of the change in the default behavior by patching the `admin-acks` config map by running the following command:
20
+
+
21
+
[source,terminal]
22
+
----
23
+
$ oc -n openshift-config patch cm admin-acks --patch '{"data":{"ack-4.21-boot-image-opt-out-in-4.22":"true"}}' --type=merge
24
+
----
25
+
26
+
* If you do not want the boot image management feature enabled, explicitly disable the feature for worker machine sets by using the following procedure.
27
+
====
28
+
13
29
You disable the boot image management feature for the control plane or worker machine sets in your cluster by editing the `MachineConfiguration` object.
14
30
15
31
[NOTE]
@@ -32,7 +48,9 @@ After disabling the feature, you can re-enable the feature at any time. For more
32
48
$ oc edit MachineConfiguration cluster
33
49
----
34
50
35
-
. Disable the feature for some or all of your machine sets:
51
+
. Disable the feature for some or all of your machine sets by making one or both of the following changes:
52
+
53
+
* Disable the feature for nodes in the worker machine sets by adding the following parameters:
36
54
+
37
55
[source,yaml]
38
56
----
@@ -48,6 +66,32 @@ spec:
48
66
resource: machinesets
49
67
selection:
50
68
mode: None
69
+
----
70
+
+
71
+
--
72
+
where:
73
+
74
+
`spec.managedBootImages`:: Specifies the parameters for the boot image management feature.
75
+
76
+
`spec.managedBootImages.machineManagers.apiGroup`:: Specifies the API group. This must be `machine.openshift.io`.
77
+
78
+
`spec.managedBootImages.machineManagers.resource.machinesets`:: Specifies that the `selection.mode` parameter applies to compute nodes.
79
+
80
+
`spec.managedBootImages.machineManagers.selection.mode.None`:: Specifies that the feature is disabled for the specified machine sets.
81
+
--
82
+
83
+
* Disable the feature for nodes in the control plane machine sets by adding the following parameters:
84
+
+
85
+
[source,yaml]
86
+
----
87
+
apiVersion: operator.openshift.io/v1
88
+
kind: MachineConfiguration
89
+
metadata:
90
+
name: cluster
91
+
spec:
92
+
# ...
93
+
managedBootImages:
94
+
machineManagers:
51
95
- apiGroup: machine.openshift.io
52
96
resource: controlplanemachinesets
53
97
selection:
@@ -57,13 +101,13 @@ spec:
57
101
--
58
102
where:
59
103
60
-
`spec.managedBootImages`:: Configures the boot image management feature.
104
+
`spec.managedBootImages`:: Specifies the parameters for the boot image management feature.
61
105
62
-
`spec.managedBootImages.machineManagers.selection.mode.None`:: Specifies that the feature is disabled for all machine sets in the cluster. Set the selection mode to `None` for one or both of the following resources to disable the feature for that resource.
106
+
`spec.managedBootImages.machineManagers.apiGroup`:: Specifies the API group. This must be `machine.openshift.io`.
63
107
64
-
* `controlplanemachinesets`: Disable boot image management for control plane machine sets.
108
+
`spec.managedBootImages.machineManagers.resource.controlplanemachinesets`:: Specifies that the `selection.mode` parameter applies to control plane nodes.
65
109
66
-
* `machinesets`: Disables boot image management for worker machine sets.
110
+
`spec.managedBootImages.machineManagers.selection.mode.None`:: Specifies that the feature is disabled for the specified machine sets.
0 commit comments