Skip to content

Commit 49ce771

Browse files
authored
Merge pull request #76917 from subhtk/ocm-v2-assembly-1
OSDOCS-8197: Added oc-mirror v2 section in disconnected installing assembly
2 parents 4100e5c + 32257fc commit 49ce771

File tree

5 files changed

+104
-7
lines changed

5 files changed

+104
-7
lines changed

_topic_maps/_topic_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# trunk-ignore-all(prettier)
12
# This configuration file dictates the organization of the topic groups and
23
# topics on the main page of the doc site for this branch. Each record
34
# consists of the following:
@@ -131,6 +132,8 @@ Topics:
131132
File: installing-mirroring-installation-images
132133
- Name: Mirroring images for a disconnected installation using the oc-mirror plugin
133134
File: installing-mirroring-disconnected
135+
- Name: Mirroring images for a disconnected installation using oc-mirror V2
136+
File: about-installing-oc-mirror-v2
134137
- Name: Installing on Alibaba
135138
Dir: installing_alibaba
136139
Distros: openshift-origin,openshift-enterprise
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="about-installing-oc-mirror-v2"]
3+
= Mirroring images for a disconnected installation using the version 2
4+
include::_attributes/common-attributes.adoc[]
5+
:context: installing-mirroring-disconnected
6+
7+
toc::[]
8+
9+
:FeatureName: oc-mirror version 2
10+
include::snippets/technology-preview.adoc[]
11+
12+
Running your cluster in a restricted network without direct internet connectivity is possible by installing the cluster from a mirrored set of {product-title} container images in a private registry. This registry must be running at all times provided that the cluster is running. See "Prerequisites" section for more information.
13+
14+
You can use the oc-mirror OpenShift CLI (`oc`) plugin to mirror images to a mirror registry in your fully or partially disconnected environments. You must run oc-mirror from a system with internet connectivity in order to download the required images from the official Red Hat registries.
15+
16+
.High level workflow
17+
18+
The following steps outline the high-level workflow on how to use the oc-mirror plugin to mirror images to a mirror registry:
19+
20+
. Create an image set configuration file.
21+
22+
. Mirror the image set to the target mirror registry by using one of the following workflows:
23+
24+
** Mirror an image set directly to the target mirror registry (Mirror-to-Mirror).
25+
26+
** Mirror an image set to disk (Mirror-to-Disk), transfer the tar file to the target environment, then mirror the image set to the target mirror registry (Disk-to-Mirror).
27+
28+
. Configure your cluster to use the resources generated by the oc-mirror.
29+
30+
. Repeat these steps to update your target mirror registry as necessary.
31+
32+
// AboutVv2
33+
include::modules/oc-mirror-v2-about.adoc[leveloffset=+1]
34+
35+
// oc-mirror compatibility and support
36+
include::modules/oc-mirror-v2-support.adoc[leveloffset=+1]
37+
38+
39+
[id="prerequisites_oc-mirror-v2_{context}"]
40+
== Prerequisites
41+
42+
* You must have a container image registry that supports link:https://docs.docker.com/registry/spec/manifest-v2-2[Docker V2-2] in the location that will host the {product-title} cluster, such as Red Hat Quay.
43+
+
44+
[NOTE]
45+
====
46+
If you use Red Hat Quay, you must use version 3.6 or later with the oc-mirror plugin. If you have an entitlement to Red Hat Quay, see the documentation on deploying Red Hat Quay link:https://access.redhat.com/documentation/en-us/red_hat_quay/3/html/deploy_red_hat_quay_for_proof-of-concept_non-production_purposes/[for proof-of-concept purposes] or link:https://access.redhat.com/documentation/en-us/red_hat_quay/3/html/deploying_the_red_hat_quay_operator_on_openshift_container_platform/index[by using the Red Hat Quay Operator]. If you need additional assistance selecting and installing a registry, contact your sales representative or Red Hat Support.
47+
====
48+
49+
If you do not have an existing solution for a container image registry, {product-title} subscribers receive a mirror registry for Red Hat OpenShift. This mirror registry is included with your subscription and serves as a small-scale container registry that can be used to mirror the necessary container images of {product-title} for disconnected installations.
50+
51+
* Every machine in the provisioned clusters must have access to the mirror registry. If the registry is unreachable, tasks like installation, updating, or routine operations such as workload relocation may fail. Therefore, mirror registries must be operated in a highly available manner, ensuring their availability aligns with the production availability of your {product-title} clusters.
52+
53+
* You have set the umask parameter to `0022` on the operating system that uses oc-mirror.

modules/oc-mirror-support.adoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,4 @@ The oc-mirror plugin supports mirroring {product-title} payload images and Opera
1414
On `aarch64`, `ppc64le`, and `s390x` architectures the oc-mirror plugin is only supported for {product-title} versions 4.14 and later.
1515
====
1616

17-
Use the latest available version of the oc-mirror plugin regardless of which versions of {product-title} you need to mirror.
18-
19-
// TODO: Remove this in 4.14
20-
[IMPORTANT]
21-
====
22-
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.
23-
====
17+
Use the latest available version of the oc-mirror plugin regardless of which versions of {product-title} you need to mirror.

modules/oc-mirror-v2-about.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/disconnected_install/about-installing-oc-mirror-v2.adoc
4+
// * updating/updating_a_cluster/updating_disconnected_cluster/mirroring-image-repository.adoc
5+
6+
:_mod-docs-content-type: CONCEPT
7+
[id="installation-oc-mirror-v2-about_{context}"]
8+
= About oc-mirror plugin version 2
9+
You can use the oc-mirror OpenShift CLI (`oc`) plugin as a single tool to mirror all required {product-title} content and other images to your mirror registry.
10+
11+
To use oc-mirror, add the `--v2` flag to the oc-mirror command line. The new tool is is available as a Tech Preview feature.
12+
13+
oc-mirror version 2 (V2) provides the following features:
14+
15+
* Verifies that the complete image set specified in the image set config is mirrored to the mirrored registry, regardless of whether the images were previously mirrored or not.
16+
17+
* Uses a cache system instead of metadata.
18+
19+
* Maintains minimal archive sizes by incorporating only new images into the archive.
20+
21+
* Generate mirroring archives with content selected by mirroring date.
22+
23+
* Can generate IDMS and ITMS (instead of ICSP) for the full image set, rather than just the incremental changes.
24+
25+
* Filter Operator versions by bundle name.
26+
27+
* Does not perform automatic pruning; instead, it introduces a `Delete` feature, granting users more control over the image deletion.
28+
29+
* Introduces support for `registries.conf`, facilitating mirroring to multiple enclaves using the same cache.

modules/oc-mirror-v2-support.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
4+
// * installing/disconnected_install/about-installing-oc-mirror-v2.adoc
5+
// * updating/updating_a_cluster/updating_disconnected_cluster/mirroring-image-repository.adoc
6+
7+
:_mod-docs-content-type: CONCEPT
8+
[id="oc-mirror-v2-support_{context}"]
9+
= oc-mirror V2 compatibility and support
10+
11+
The oc-mirror plugin V2 supports mirroring {product-title} payload images and Operator catalogs for {product-title} versions 4.12 and later.
12+
13+
[NOTE]
14+
====
15+
On `aarch64`, `ppc64le`, and `s390x` architectures the oc-mirror plugin is only supported for {product-title} versions 4.14 and later.
16+
====
17+
18+
Use the latest available version of the oc-mirror plugin regardless of which versions of {product-title} you need to mirror.

0 commit comments

Comments
 (0)