|
| 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. |
0 commit comments