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: installing/installing_with_agent_based_installer/understanding-disconnected-installation-mirroring.adoc
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,3 +18,5 @@ You can use one of the following procedures to mirror your {product-title} image
18
18
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.adoc#installing-mirroring-disconnected[Mirroring images for a disconnected installation using the oc-mirror plugin]
Copy file name to clipboardExpand all lines: modules/agent-install-about-mirroring-for-disconnected-registry.adoc
+13-26Lines changed: 13 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,9 @@
11
11
To use mirror images for a disconnected installation with the Agent-based Installer, you must modify the `install-config.yaml` file.
12
12
13
13
You can mirror the release image by using the output of either the `oc adm release mirror` or `oc mirror` command.
14
-
This is dependent on which command you used to set up the mirror registry. The following example shows the output of the `oc adm release mirror` command.
14
+
This is dependent on which command you used to set up the mirror registry.
15
15
16
+
The following example shows the output of the `oc adm release mirror` command.
Use the output of the command to update the `imageContentSources` field in the `install-config.yaml` file. Additionally, add the certificate file used for the mirror registry to the `additionalTrustBundle` field.
39
39
40
-
.Example `install-config.yaml` file
40
+
The following example shows part of the `imageContentSourcePolicy.yaml` file generated by the oc-mirror plugin. The file can be found in the results directory, for example `oc-mirror-workspace/results-1682697932/`.
The value must be the contents of the certificate file that you used for your mirror registry. The certificate file can be an existing, trusted certificate authority, or the self-signed certificate that you generated for the mirror registry.
51
-
52
-
If you are using the optional method of the {ztp} manifests, there are two mirror configuration files: `registries.conf` and `ca- bundle.crt` . These files must be added to the `mirror/directory` path to add the mirror configuration in the agent ISO image.
53
-
54
-
You can create the `registries.conf` file from the output of either the `oc adm release mirror` or `oc mirror` command. The format of the `/etc/containers/registries.conf` file has changed . It is now version 2 and in TOML format.
= Configuring the Agent-based Installer to use mirrored images
7
+
8
+
You must use the output of either the `oc adm release mirror` command or the oc-mirror plugin to configure the Agent-based Installer to use mirrored images.
9
+
10
+
.Procedure
11
+
12
+
. If you used the oc-mirror plugin to mirror your release images:
13
+
14
+
.. Open the `imageContentSourcePolicy.yaml` located in the results directory, for example `oc-mirror-workspace/results-1682697932/`.
15
+
16
+
.. Copy the text in the `repositoryDigestMirrors` section of the yaml file.
17
+
18
+
. If you used the `oc adm release mirror` command to mirror your release images:
19
+
20
+
* Copy the text in the `imageContentSources` section of the command output.
21
+
22
+
. Paste the copied text into the `imageContentSources` field of the `install-config.yaml` file.
23
+
24
+
. Add the certificate file used for the mirror registry to the `additionalTrustBundle` field of the yaml file.
25
+
+
26
+
[IMPORTANT]
27
+
====
28
+
The value must be the contents of the certificate file that you used for your mirror registry.
29
+
The certificate file can be an existing, trusted certificate authority, or the self-signed certificate that you generated for the mirror registry.
. If you are using {ztp} manifests: add the `registries.conf` and `ca-bundle.crt` files to the `mirror` path to add the mirror configuration in the agent ISO image.
43
+
+
44
+
[NOTE]
45
+
====
46
+
You can create the `registries.conf` file from the output of either the `oc adm release mirror` command or the `oc mirror` plugin. The format of the `/etc/containers/registries.conf` file has changed. It is now version 2 and in TOML format.
0 commit comments