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/installation-bare-metal-config-yaml.adoc
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,7 +298,14 @@ ifdef::ibm-z,ibm-z-kvm[]
298
298
<15> Add the `additionalTrustBundle` parameter and value. 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.
299
299
endif::ibm-z,ibm-z-kvm[]
300
300
ifndef::openshift-origin[]
301
-
<16> Provide the `imageContentSources` section from the output of the command to mirror the repository.
301
+
<16> Provide the `imageContentSources` section according to the output of the command that you used to mirror the repository.
302
+
+
303
+
[IMPORTANT]
304
+
====
305
+
* When using the `oc adm release mirror` command, use the output from the `imageContentSources` section.
306
+
* When using `oc mirror` command, use the `repositoryDigestMirrors` section of the `ImageContentSourcePolicy` file that results from running the command.
307
+
* `ImageContentSourcePolicy` is deprecated. For more information see _Configuring image registry repository mirroring_.
308
+
====
302
309
endif::openshift-origin[]
303
310
ifdef::openshift-origin[]
304
311
<15> Provide the `imageContentSources` section from the output of the command to mirror the repository.
Copy file name to clipboardExpand all lines: modules/installation-initializing-manual.adoc
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,17 +144,29 @@ it in the `<installation_directory>`.
144
144
====
145
145
You must name this configuration file `install-config.yaml`.
146
146
====
147
+
147
148
ifdef::restricted,restricted-upi[]
149
+
148
150
** Unless you use a registry that {op-system} trusts by default, such as
149
151
`docker.io`, you must provide the contents of the certificate for your mirror
150
152
repository in the `additionalTrustBundle` section. In most cases, you must
151
153
provide the certificate for your mirror.
152
154
** You must include the `imageContentSources` section from the output of the command to
153
155
mirror the repository.
156
+
154
157
endif::restricted,restricted-upi[]
155
158
+
159
+
[IMPORTANT]
160
+
====
161
+
** The `ImageContentSourcePolicy` file is generated as an output of `oc mirror` after the mirroring process is finished.
162
+
** The `oc mirror` command generates an `ImageContentSourcePolicy` file which contains the YAML needed to define `ImageContentSourcePolicy`.
163
+
Copy the text from this file and paste it into your `install-config.yaml` file.
164
+
** You must run the 'oc mirror' command twice. The first time you run the `oc mirror` command, you get a full `ImageContentSourcePolicy` file. The second time you run the `oc mirror` command, you only get the difference between the first and second run.
165
+
Because of this behavior, you must always keep a backup of these files in case you need to merge them into one complete `ImageContentSourcePolicy` file. Keeping a backup of these two output files ensures that you have a complete `ImageContentSourcePolicy` file.
For some platform types, you can alternatively run `./openshift-install create install-config --dir <installation_directory>` to generate an `install-config.yaml` file. You can provide details about your cluster configuration at the prompts.
0 commit comments