Skip to content

Commit 001a41b

Browse files
authored
Merge pull request #57440 from mburke5678/mco-update-icsp
Updating imagecontentsourcepolicy should not trigger a node drain
2 parents 48f2198 + 8b76c7b commit 001a41b

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

modules/troubleshooting-disabling-autoreboot-mco.adoc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,9 @@
77

88
When configuration changes are made by the Machine Config Operator (MCO), {op-system-first} must reboot for the changes to take effect. Whether the configuration change is automatic or manual, an {op-system} node reboots automatically unless it is paused.
99

10-
[NOTE]
10+
[NOTE]
1111
====
12-
The following modifications do not trigger a node reboot:
13-
14-
* When the MCO detects any of the following changes, it applies the update without draining or rebooting the node:
15-
16-
** Changes to the SSH key in the `spec.config.passwd.users.sshAuthorizedKeys` parameter of a machine config.
17-
** Changes to the global pull secret or pull secret in the `openshift-config` namespace.
18-
** Automatic rotation of the `/etc/kubernetes/kubelet-ca.crt` certificate authority (CA) by the Kubernetes API Server Operator.
19-
20-
* When the MCO detects changes to the `/etc/containers/registries.conf` file, such as adding or editing an `ImageDigestMirrorSet` or `ImageTagMirrorSet` object, it drains the corresponding nodes, applies the changes, and uncordons the nodes. The node drain does not happen when there is a mirror configuration change in the object, such as adding a new mirror to an existing registry by using an `ImageDigestMirrorSet` object. The MCO does restart the nodes if you add a new mirror to an existing registry by uisng an`ImageTagMirrorSet` object.
12+
include::snippets/node-icsp-no-drain.adoc[]
2113
====
2214

2315
To avoid unwanted disruptions, you can modify the machine config pool (MCP) to prevent automatic rebooting after the Operator makes changes to the machine config.

modules/understanding-machine-config-operator.adoc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,7 @@ To prevent the nodes from automatically rebooting after machine configuration ch
4848
4949
Make sure the pools are unpaused when the CA certificate rotation happens. If the MCPs are paused, the MCO cannot push the newly rotated certificates to those nodes. This causes the cluster to become degraded and causes failure in multiple `oc` commands, including `oc debug`, `oc logs`, `oc exec`, and `oc attach`. You receive alerts in the Alerting UI of the {product-title} web console if an MCP is paused when the certificates are rotated.
5050
51-
The following modifications do not trigger a node reboot:
52-
53-
* When the MCO detects any of the following changes, it applies the update without draining or rebooting the node:
54-
55-
** Changes to the SSH key in the `spec.config.passwd.users.sshAuthorizedKeys` parameter of a machine config.
56-
** Changes to the global pull secret or pull secret in the `openshift-config` namespace.
57-
** Automatic rotation of the `/etc/kubernetes/kubelet-ca.crt` certificate authority (CA) by the Kubernetes API Server Operator.
58-
59-
* When the MCO detects changes to the `/etc/containers/registries.conf` file, such as adding or editing an `ImageDigestMirrorSet` or `ImageTagMirrorSet` object, it drains the corresponding nodes, applies the changes, and uncordons the nodes.The node drain does not happen when there is a mirror configuration change in the object, such as adding a new mirror to an existing registry by using an `ImageDigestMirrorSet` object. The MCO does restart the nodes if you add a new mirror to an existing registry by using an`ImageTagMirrorSet` object.
51+
include::snippets/node-icsp-no-drain.adoc[]
6052
====
6153

6254
There might be situations where the configuration on a node does not fully match what the currently-applied machine config specifies. This state is called _configuration drift_. The Machine Config Daemon (MCD) regularly checks the nodes for configuration drift. If the MCD detects configuration drift, the MCO marks the node `degraded` until an administrator corrects the node configuration. A degraded node is online and operational, but, it cannot be updated.

snippets/node-icsp-no-drain.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Text snippet included in the following modules:
2+
//
3+
// * modules/about-crio.adoc
4+
// * modules/nodes-containers-using.adoc
5+
6+
:_content-type: SNIPPET
7+
8+
The following modifications do not trigger a node reboot:
9+
10+
* When the MCO detects any of the following changes, it applies the update without draining or rebooting the node:
11+
12+
** Changes to the SSH key in the `spec.config.passwd.users.sshAuthorizedKeys` parameter of a machine config.
13+
** Changes to the global pull secret or pull secret in the `openshift-config` namespace.
14+
** Automatic rotation of the `/etc/kubernetes/kubelet-ca.crt` certificate authority (CA) by the Kubernetes API Server Operator.
15+
16+
* When the MCO detects changes to the `/etc/containers/registries.conf` file, such as adding or editing an `ImageDigestMirrorSet` or `ImageTagMirrorSet` object, it drains the corresponding nodes, applies the changes, and uncordons the nodes.The node drain does not happen for the following changes:
17+
** The addition of a registry with the `pull-from-mirror = "digest-only"` parameter set for each mirror.
18+
** The addition of a mirror with the `pull-from-mirror = "digest-only"` parameter set in a registry.
19+
** The addition of items to the `unqualified-search-registries` list.
20+

0 commit comments

Comments
 (0)