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: machine_configuration/machine-config-pin-preload-images-about.adoc
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,18 @@
1
1
:_mod-docs-content-type: ASSEMBLY
2
2
[id="machine-config-pin-preload-images-about"]
3
-
= About preloading and pinning images
3
+
= About pinning and preloading images
4
4
include::_attributes/common-attributes.adoc[]
5
5
:context: machine-config-operator
6
6
7
7
toc::[]
8
8
9
-
Slow and unreliable connections to an image registry can interfere with operations that require pulling images, such as updating a cluster or deploying an application. This can be helpful in cluster with low bandwidth, unreliable internet connectivity, or in a disconnected environment.
9
+
Slow and unreliable connections to an image registry can interfere with operations that require pulling images, such as updating a cluster or deploying an application. This can include clusters that have low bandwidth, unreliable internet connectivity, or clusters in a disconnected environment.
10
10
11
-
For example, an cluster update might require pulling more than one hundred images. Failure to pull those images causes retries that can interfere with the upgrade process and might cause the update fail. One way to improve that is to _preload_ the required images by pulling them in advance, before they are actually needed. Then, ensuring that the images are available when needed by _pinning_ them to a machine config pool. Pinning and preloading images can provide a more consistent upgrade, which is important when scheduling upgrades into maintenance windows.
11
+
For example, a cluster update might require pulling more than one hundred images. Failure to pull those images could cause retries that can interfere with the upgrade process and might cause the update to fail. One way to improve that is to _preload_ the required images by pulling them in advance, before they are actually needed. Then, ensuring that the images are available when needed by _pinning_ them to a machine config pool. Pinning and preloading images can provide a more consistent upgrade, which is important when scheduling upgrades into maintenance windows.
12
12
13
-
Pinning and preloading images can benefit a cluster that has a low bandwidth or an unreliable connection to an image registry server when deploying applications, ensuring that the images are available and application will successfully deploy in a predictable time.
13
+
Pinning and preloading images ensures that the images are available and application can successfully deploy in a predictable time. Another benefit to pinning and preloading images is that image garbage collection does not remove the pinned images.
14
14
15
-
Preloading and pinning images prevents image garbage collection from removing the pinned images.
16
-
17
-
You can preload and pin images by using a a `PinnedImageSet` custom resource (CR) as described in the following section. Pinned images are stored in the file inside the `/etc/crio/crio.conf.d/50-pinned-iamges` directory. The contents of the file appear similar to the following example:
15
+
You can pin and preload images by using a a `PinnedImageSet` custom resource (CR) as described in the following section. Pinned images are stored on the nodes in the `/etc/crio/crio.conf.d/50-pinned-iamges` file. The contents of the file appear similar to the following example:
18
16
19
17
[source,terminal]
20
18
----
@@ -23,7 +21,7 @@ You can preload and pin images by using a a `PinnedImageSet` custom resource (CR
Before pulling the images, the Machine Config Operator (MCO) verifies that there is enough space available on each affected node to store the images. If the node has sufficient space, the MCO creates the pinned image file, pulls the images, and reloads CRI-O.
24
+
Before pulling the images, the Machine Config Operator (MCO) verifies that there is enough space available on each affected node to store the images. If the node has sufficient space, the MCO creates the pinned image file, pulls the images, and reloads CRI-O. If there is not sufficient space, the MCO does not pull the images and presents an error message.
You can preload and pin images by using a `PinnedImageSet` custom resource (CR). The pinned image set defines the list of images to preload and the machine config pool that the images should be pinned to.
9
+
You can pin and preload images by using a `PinnedImageSet` custom resource (CR). The pinned image set defines the list of images to preload and the machine config pool that the images should be pinned to.
10
10
11
-
The file is stored in the the `/etc/crio/crio.conf.d` directory under a name that is a concatenation of the name of the `PinnedImageSet` object and the UUID assigned to the object.
11
+
The images are stored in the the `/etc/crio/crio.conf.d/50-pinned-images` file on the nodes.
12
12
13
13
.Procedure
14
14
@@ -19,8 +19,8 @@ The file is stored in the the `/etc/crio/crio.conf.d` directory under a name tha
`labels`:: Specifies an optional node selector to specify the machine config pool to pin the images to. If not specified, the images are pinned to all nodes in the cluster. the relative path to the downloaded ISO file, for example, `rhcos-live.iso`.
34
+
`labels`:: Specifies an optional node selector to specify the machine config pool to pin the images to. If not specified, the images are pinned to all nodes in the cluster.
35
35
`pinnedImages`:: Specifies a list of one or more images to preload.
0 commit comments