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
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ toc::[]
8
8
9
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.
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 _preloand_ 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, 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.
12
12
13
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.
<1> Optional: A 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.
31
-
<2> A list of one or more images to preload.
30
+
+
31
+
where:
32
+
+
33
+
--
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. the relative path to the downloaded ISO file, for example, `rhcos-live.iso`.
35
+
`pinnedImages`:: Specifies a list of one or more images to preload.
36
+
--
32
37
33
-
.. Create the `PinnedImageSet` object by running the following command:
38
+
. Create the `PinnedImageSet` object by running the following command:
34
39
+
35
40
[source,terminal]
36
41
----
@@ -39,7 +44,7 @@ $ oc create -f <file_name>.yaml
39
44
40
45
.Verification
41
46
42
-
. Check that the pinned image set is reported in the machine config node object for the affected machine config pool by running the following command:
47
+
* Check that the pinned image set is reported in the machine config node object for the affected machine config pool by running the following command:
43
48
+
44
49
[source,terminal]
45
50
----
@@ -74,7 +79,7 @@ status
74
79
It can take a few moments for the object to be fully updated.
75
80
====
76
81
77
-
. Check that the pinned image file is created and contains the correct images. The contents of the file appear similar to the following example:
82
+
* Check that the pinned image file is created and contains the correct images. The contents of the file appear similar to the following example:
78
83
79
84
.. Start a debug session for a node by running the following command:
0 commit comments