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
// TODO: This title might need to update per sebastian's PR
134
+
* xref:../../installing/disconnected_install/installing-mirroring-disconnected.html#oc-mirror-updating-cluster-manifests_installing-mirroring-disconnected[Configuring your cluster to use the resources generated by oc-mirror]
* xref:../../updating/updating-restricted-network-cluster/index.adoc#about-restricted-network-updates[About cluster updates in a disconnected environment]
149
+
* xref:../../updating/updating-restricted-network-cluster/index.adoc#about-restricted-network-updates[About cluster updates in a disconnected environment]
Copy file name to clipboardExpand all lines: modules/oc-mirror-command-reference.adoc
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,9 @@ The following tables describe the `oc mirror` subcommands and flags:
65
65
|`--ignore-history`
66
66
|Ignore past mirrors when downloading images and packing layers. Disables incremental mirroring and might download more data.
67
67
68
+
|`--include-local-oci-catalogs`
69
+
|Enable mirroring for local OCI catalogs on disk to the target mirror registry.
70
+
68
71
|`--manifests-only`
69
72
|Generate manifests for `ImageContentSourcePolicy` objects to configure a cluster to use the mirror registry, but do not actually mirror any images.
70
73
@@ -74,14 +77,11 @@ The following tables describe the `oc mirror` subcommands and flags:
74
77
|`--max-per-registry <int>`
75
78
|Specify the number of concurrent requests allowed per registry. The default is `6`.
76
79
77
-
|`--oci-feature-action`
78
-
|The action to perform when using the Technology Preview OCI feature. The options are `copy` or `mirror`.
79
-
80
80
|`--oci-insecure-signature-policy`
81
-
|Do not push signatures when using the Technology Preview OCI feature.
81
+
|Do not push signatures when mirroring local OCI catalogs (with `--include-local-oci-catalogs`).
82
82
83
83
|`--oci-registries-config`
84
-
|Provide a registries configuration file to specify an alternative registry location to copy from when using the Technology Preview OCI feature.
84
+
|Provide a registries configuration file to specify an alternative registry location to copy from when mirroring local OCI catalogs (with `--include-local-oci-catalogs`).
85
85
86
86
|`--skip-cleanup`
87
87
|Skip removal of artifact directories.
@@ -108,7 +108,9 @@ The following tables describe the `oc mirror` subcommands and flags:
108
108
|Use plain HTTP for the source registry.
109
109
110
110
|`--use-oci-feature`
111
-
|Use the Technology Preview OCI feature for copying OCI-formatted images.
111
+
|Enable mirroring for local OCI catalogs on disk to the target mirror registry.
112
+
113
+
The `--use-oci-feature` flag is deprecated. Use the `--include-local-oci-catalogs` flag instead.
112
114
113
115
|`-v`, `--verbose``<int>`
114
116
|Specify the number for the log level verbosity. Valid values are `0` - `9`. The default is `0`.
Copy file name to clipboardExpand all lines: modules/oc-mirror-creating-image-set-config.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ mirror:
58
58
helm: {}
59
59
----
60
60
<1> Add `archiveSize` to set the maximum size, in GiB, of each file within the image set.
61
-
<2> Set the back-end location to save the image set metadata to. This location can be a registry or local directory. It is required to specify `storageConfig` values, unless you are using the Technology Preview OCI feature.
61
+
<2> Set the back-end location to save the image set metadata to. This location can be a registry or local directory. It is required to specify `storageConfig` values.
62
62
<3> Set the registry URL for the storage backend.
63
63
<4> Set the channel to retrieve the {product-title} images from.
64
64
<5> Add `graph: true` to build and push the graph-data image to the mirror registry. The graph-data image is required to create OpenShift Update Service (OSUS) applications. The `graph: true` field also generates the `UpdateService` CR manifest. The `oc` command-line interface (CLI) can use the `UpdateService` CR manifest to create OSUS applications. For more information, see _About the OpenShift Update Service_.
== Use case: Including the shortest {product-title} upgrade path
74
74
75
-
The following `ImageSetConfiguration` file uses a local storage backend and includes all {product-title} versions along the shortest upgrade path from the minimum version of `4.9.37` to the maximum version of `4.10.22`.
75
+
The following `ImageSetConfiguration` file uses a local storage backend and includes all {product-title} versions along the shortest upgrade path from the minimum version of `4.11.37` to the maximum version of `4.12.15`.
Copy file name to clipboardExpand all lines: modules/oc-mirror-oci-format.adoc
+53-85Lines changed: 53 additions & 85 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,25 @@
5
5
6
6
:_content-type: PROCEDURE
7
7
[id="oc-mirror-oci-format_{context}"]
8
-
= Mirroring file-based catalog Operator images in OCI format
8
+
= Including local OCI Operator catalogs
9
9
10
-
You can use the oc-mirror plugin to mirror Operators in the Open Container Initiative (OCI) image format, instead of Docker v2 format. You can copy Operator images to a file-based catalog on disk in OCI format. Then you can copy local OCI images to your target mirror registry.
10
+
While mirroring {product-title} releases, Operator catalogs, and additional images from a registry to a partially disconnected cluster, you can include Operator catalog images from a local file-based catalog on disk. The local catalog must be in the Open Container Initiative (OCI) format.
11
11
12
-
:FeatureName: Using the oc-mirror plugin to mirror Operator images in OCI format
13
-
include::snippets/technology-preview.adoc[]
12
+
The local catalog and its contents are mirrored to your target mirror registry based on the filtering information in the image set configuration file.
13
+
14
+
[IMPORTANT]
15
+
====
16
+
When mirroring local OCI catalogs, any {product-title} releases or additional images that you want to mirror along with the local OCI-formatted catalog must be pulled from a registry.
17
+
18
+
You cannot mirror OCI catalogs along with an oc-mirror image set file on disk.
19
+
====
20
+
21
+
One example use case for using the OCI feature is if you have a CI/CD system building an OCI catalog to a location on disk, and you want to mirror that OCI catalog along with an {product-title} release to your mirror registry.
22
+
23
+
[NOTE]
24
+
====
25
+
If you used the Technology Preview OCI local catalogs feature for the oc-mirror plugin for {product-title} 4.12, you can no longer use the OCI local catalogs feature of the oc-mirror plugin to copy a catalog locally and convert it to OCI format as a first step to mirroring to a fully disconnected cluster.
. Optional: Retrieve the catalogs and images that you require and save them to disk. If you already have the catalog image in OCI format on disk, you can skip this step.
24
-
25
-
.. Create the image set configuration file:
36
+
. Create the image set configuration file and adjust the settings as necessary.
37
+
+
38
+
The following example image set configuration mirrors an OCI catalog on disk along with an {product-title} release and a UBI image from `registry.redhat.io`.
26
39
+
27
-
.Example image set configuration file for copying to disk
When using the OCI feature, only the `mirror.operators.catalog` setting is available for use.
42
-
43
-
The `storageConfig` setting is ignored in favor of the location passed in to the `oc mirror` command.
44
-
====
63
+
<1> Set the back-end location to save the image set metadata to. This location can be a registry or local directory. It is required to specify `storageConfig` values.
64
+
<2> Optionally, include an {product-title} release to mirror from `registry.redhat.io`.
65
+
<3> Specify the absolute path to the location of the OCI catalog on disk. The path must start with `oci://` when using the OCI feature.
66
+
<4> Optionally, specify additional Operator catalogs to pull from a registry.
67
+
<5> Optionally, specify additional images to pull from a registry.
45
68
46
-
.. Run the `oc mirror` command to mirror the images from the specified image set configuration to disk:
69
+
. Run the `oc mirror` command to mirror the OCI catalog to a target mirror registry:
47
70
+
48
71
[source,terminal]
49
72
----
50
73
$ oc mirror --config=./imageset-config.yaml \ <1>
51
-
--use-oci-feature \ <2>
52
-
--oci-feature-action=copy \ <3>
53
-
oci://my-oci-catalog <4>
74
+
--include-local-oci-catalogs <2>
75
+
docker://registry.example:5000 <3>
54
76
----
55
77
<1> Pass in the image set configuration file. This procedure assumes that it is named `imageset-config.yaml`.
56
-
<2> Use the `--use-oci-feature` flag to enable the OCI feature.
57
-
<3> To copy the catalog to disk, set the `--oci-feature-action` flag to `copy`.
58
-
<4> Specify a directory on disk where you want to output the catalog. This procedure assumes that it is named `my-oci-catalog`. The path must start with `oci://`. If the specified directory is not a full path, the directory is created in the current working directory where the `oc mirror` command is run.
78
+
<2> Use the `--include-local-oci-catalogs` flag to enable mirroring local OCI catalogs along with other remote content.
79
+
<3> Specify the registry to mirror the content to. The registry must start with `docker://`. If you specify a top-level namespace for the mirror registry, you must also use this same namespace on subsequent executions.
80
+
+
81
+
Optionally, you can specify other flags to adjust the behavior of the OCI feature:
82
+
+
83
+
`--oci-insecure-signature-policy`:: Do not push signatures to the target mirror registry.
84
+
+
85
+
`--oci-registries-config`:: Specify the path to a TOML-formatted `registries.conf` file. You can use this to mirror from a different registry, such as a pre-production location for testing, without having to change the image set configuration file. This flag only affects local OCI catalogs, not any other mirrored content.
59
86
+
60
-
[NOTE]
61
-
====
62
-
You can optionally use the `--oci-registries-config` flag to specify the path to a TOML-formatted `registries.conf` file. You can use this to mirror from a different registry, such as a pre-production location for testing, without having to change the image set configuration file.
63
-
64
87
.Example registries.conf file
65
88
[source,toml]
66
89
----
@@ -75,61 +98,6 @@ You can optionally use the `--oci-registries-config` flag to specify the path to
75
98
insecure = false
76
99
----
77
100
78
-
Set the `location` field in the `registry.mirror` section to an alternative registry location that you want to pull images from. The `location` field in the `registry` section must be the same registry location as the one you specify in the image set configuration file.
79
-
====
80
-
81
-
.. List your directory contents and verify that the following directories were created:
82
-
+
83
-
[source,terminal]
84
-
----
85
-
$ ls -l
86
-
----
87
-
+
88
-
.Example output
89
-
[source,terminal]
90
-
----
91
-
my-oci-catalog <1>
92
-
oc-mirror-workspace <2>
93
-
olm_artifacts <3>
94
-
----
95
-
<1> Directory that contains the OCI catalog. This procedure assumes that it is named `my-oci-catalog`.
96
-
<2> Directory that contains each image in the catalog in its original format.
97
-
<3> Directory that contains the files that describe the Operator bundles that this catalog references.
98
-
99
-
. Update the image set configuration file to specify the location of the catalog on disk to mirror to the target mirror registry:
100
-
+
101
-
.Example image set configuration file for mirroring to mirror registry
<1> Specify the absolute path to the location of the OCI catalog on disk. This procedure assumes that you used `my-oci-catalog` as the directory and mirrored the `redhat-operator-index` catalog. The path must start with `oci://`.
113
-
114
-
. Run the oc mirror command to process the image set file on disk and mirror the contents to a target mirror registry:
115
-
+
116
-
[source,terminal]
117
-
----
118
-
$ oc mirror --config=./imageset-config.yaml \ <1>
119
-
--use-oci-feature \ <2>
120
-
--oci-feature-action=mirror \ <3>
121
-
docker://registry.example:5000 <4>
122
-
----
123
-
<1> Pass in the updated image set configuration file. This procedure assumes that it is named `imageset-config.yaml`.
124
-
<2> Use the `--use-oci-feature` flag to enable the OCI feature.
125
-
<3> To mirror the catalog to the target mirror registry, set the `--oci-feature-action` flag to `mirror`.
126
-
<4> Specify the registry to mirror the image set file to. The registry must start with `docker://`. If you specify a top-level namespace for the mirror registry, you must also use this same namespace on subsequent executions.
127
-
+
128
-
[NOTE]
129
-
====
130
-
You can optionally use the `--oci-insecure-signature-policy` flag to not push signatures to the target mirror registry.
131
-
====
132
-
133
101
.Next steps
134
102
135
103
* Configure your cluster to use the resources generated by oc-mirror.
Copy file name to clipboardExpand all lines: modules/oc-mirror-support.adoc
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,12 @@
7
7
[id="oc-mirror-support_{context}"]
8
8
= oc-mirror compatibility and support
9
9
10
-
The oc-mirror plugin supports mirroring {product-title} payload images and Operator catalogs for {product-title} versions 4.9 and later.
10
+
The oc-mirror plugin supports mirroring {product-title} payload images and Operator catalogs for {product-title} versions 4.10 and later.
11
11
12
12
Use the latest available version of the oc-mirror plugin regardless of which versions of {product-title} you need to mirror.
13
+
14
+
// TODO: Remove this in 4.14
15
+
[IMPORTANT]
16
+
====
17
+
If you used the Technology Preview OCI local catalogs feature for the oc-mirror plugin for {product-title} 4.12, you can no longer use the OCI local catalogs feature of the oc-mirror plugin to copy a catalog locally and convert it to OCI format as a first step to mirroring to a fully disconnected cluster.
Copy file name to clipboardExpand all lines: modules/preparing-an-inital-cluster-deployment-for-mce-disconnected.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ To mirror your {product-title} image repository to your mirror registry, you can
48
48
----
49
49
+
50
50
<1> Specify the maximum size, in GiB, of each file within the image set.
51
-
<2> Set the back-end location to receive the image set metadata. This location can be a registry or local directory. You must specify `storageConfig` values unless you are using the Technology Preview OCI feature.
51
+
<2> Set the back-end location to receive the image set metadata. This location can be a registry or local directory. It is required to specify `storageConfig` values.
52
52
<3> Set the registry URL for the storage backend.
53
53
<4> Set the channel that contains the {product-title} images for the version you are installing.
54
54
<5> Set the Operator catalog that contains the {product-title} images that you are installing.
0 commit comments