Skip to content

Commit e7bcf4c

Browse files
authored
Merge pull request #97064 from ShaunaDiaz/OSDOCS-13626
OSDOCS-13626: updates oc mirror to v2 MicroShift
2 parents 5c3a983 + 9d4b9c5 commit e7bcf4c

17 files changed

+342
-258
lines changed

microshift_running_apps/microshift_operators/microshift-operators-oc-mirror-disconnected.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ include::modules/microshift-olm-deploy-op-disconnected-con.adoc[leveloffset=+1]
1818
* xref:../../microshift_install_rpm_ostree/microshift-embed-in-rpm-ostree-offline-use.adoc#microshift-embed-rpm-ostree-offline-use[Embedding in a {op-system-ostree} image for offline use]
1919
* xref:../../microshift_networking/microshift-disconnected-network-config.adoc#microshift-networking-disconnected-hosts[Configuring network settings for fully disconnected hosts]
2020
21-
//OCP module, edit with conditionals and care
22-
include::modules/oc-mirror-dry-run.adoc[leveloffset=+2]
21+
include::modules/microshift-oc-mirror-dry-run.adoc[leveloffset=+2]
2322

2423
include::modules/microshift-oc-mirror-embed-ops-disconnected-use.adoc[leveloffset=+2]
2524

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,49 @@
11
:_mod-docs-content-type: ASSEMBLY
22
[id="microshift-operators-oc-mirror"]
3-
= Creating custom catalogs using the oc-mirror plugin
3+
= Creating custom Operator catalogs using the oc-mirror plugin
44
include::_attributes/attributes-microshift.adoc[]
55
:context: microshift-operators-oc-mirror
66

77
toc::[]
88

9-
You can create custom catalogs with widely available Operators and mirror them by using the oc-mirror OpenShift CLI (oc) plugin.
9+
You can create custom catalogs with widely available Operators and mirror them by using the oc-mirror {oc-first} plugin.
1010

11-
[id="microshift-olm-red-hat-ops-mirror_{context}"]
12-
== Using Red Hat-provided Operator catalogs and mirror registries
13-
You can filter and prune catalogs to get specific Operators and mirror them by using the oc-mirror OpenShift CLI (oc) plugin. You can also use Operators in disconnected settings or embedded in {op-system-ostree-first} images. To read more details about how to configure your systems for mirroring, use the links in the following "Additional resources" section. If you are ready to deploy Operators from Red Hat-provided Operator catalogs, mirror them, or to embed them in {op-system-ostree} images, start with the following section, "Inspecting catalog contents by using the oc-mirror plugin."
14-
15-
//additional resources for deploying operators in disconnected environments
16-
[role="_additional-resources"]
17-
.Additional resources
18-
* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/operators/administrator-tasks#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks]
19-
* xref:../../microshift_install_get_ready/microshift-deploy-with-mirror-registry.adoc#microshift-configuring-hosts-for-mirror_microshift-deployment-mirror[Configuring hosts for mirror registry access]
20-
* xref:../../microshift_networking/microshift-disconnected-network-config.adoc#microshift-disconnected-network-config[Configuring network settings for fully disconnected hosts]
21-
* xref:../../microshift_install_get_ready/microshift-deploy-with-mirror-registry.adoc#microshift-get-mirror-reg-container-image-list_microshift-deploy-with-mirror-registry[Getting the mirror registry container image list]
22-
* xref:../../microshift_install_rpm_ostree/microshift-embed-in-rpm-ostree-offline-use.adoc#microshift-embed-in-rpm-ostree-offline-use[Embedding in a {op-system-ostree} image for offline use]
11+
include::modules/microshift-olm-rh-ops-mirror.adoc[leveloffset=+1]
2312

2413
include::modules/microshift-oc-mirror-about-con.adoc[leveloffset=+1]
2514

26-
//additional resources for preqeq to using oc mirror
27-
[role="_additional-resources"]
28-
.Additional resources
29-
* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/installing/disconnected-installation-mirroring#prerequisites_installing-mirroring-disconnected[Installing the oc mirror plugin]
15+
include::modules/microshift-oc-mirror-connectivity.adoc[leveloffset=+2]
3016

31-
include::modules/microshift-oc-mirror-list-ops-catalogs.adoc[leveloffset=+2]
17+
include::modules/microshift-oc-mirror-list-ops-catalogs.adoc[leveloffset=+1]
3218

3319
//First, make the image sets
34-
include::modules/microshift-oc-mirror-creating-imageset-config.adoc[leveloffset=+2]
20+
include::modules/microshift-oc-mirror-creating-imageset-config.adoc[leveloffset=+1]
3521

3622
//OCP module, reference for valid imageset parameters for microshift; see conditionals
37-
include::modules/oc-mirror-imageset-config-params.adoc[leveloffset=+3]
23+
include::modules/oc-mirror-imageset-config-parameters-v2.adoc[leveloffset=+2]
3824

39-
//additional resources for creating image sets
40-
[role="_additional-resources"]
41-
.Additional resources
42-
* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/installing/disconnected-installation-mirroring#oc-mirror-image-set-examples_installing-mirroring-disconnected[Imageset configuration examples]
25+
//mirroring from mirror to mirror
26+
include::modules/microshift-oc-mirror-to-mirror.adoc[leveloffset=+1]
4327

44-
// OCP module, mirroring from mirror to mirror
45-
include::modules/oc-mirror-mirror-to-mirror.adoc[leveloffset=+2]
28+
//Convert the imageset file and add configuration to CRI-O
29+
include::modules/microshift-oc-mirror-transform-imageset-to-crio.adoc[leveloffset=+1]
4630

47-
//additional resources for microshift mirror to mirror module
31+
//Apply changes to cluster so it can use Operators
32+
include::modules/microshift-oc-mirror-install-catalog-cluster.adoc[leveloffset=+1]
33+
34+
[id="Additional-resources_microshift-operators-oc-mirror_{context}"]
4835
[role="_additional-resources"]
49-
.Additional resources
50-
* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/installing/disconnected-installation-mirroring#mirroring-image-set-partial[Mirroring an image set in a partially disconnected environment]
51-
* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/installing/disconnected-installation-mirroring#mirroring-image-set-full[Mirroring an image set in a fully disconnected environment]
36+
== Additional resources
5237

53-
//Convert the imageset file and add configuration to CRI-O
54-
include::modules/microshift-oc-mirror-transform-imageset-to-crio.adoc[leveloffset=+2]
38+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/disconnected_environments/mirroring-in-disconnected-environments#installation-oc-mirror-installing-plugin_about-installing-oc-mirror-v2[Installing the oc mirror plugin]
39+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/disconnected_environments/mirroring-in-disconnected-environments#oc-mirror-migration-v1-to-v2[Migrating from oc-mirror plugin v1 to v2]
40+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/disconnected_environments/mirroring-in-disconnected-environments#oc-mirror-custom-resources-v2_about-installing-oc-mirror-v2[About custom resources generated by oc-mirror plugin v2]
41+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/disconnected_environments/mirroring-in-disconnected-environments#oc-mirror-about-cache-and-workspace-dirs_about-installing-oc-mirror-v2[About the --cache-dir and --workspace flags]
42+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/operators/administrator-tasks#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments]
43+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html/disconnected_environments/mirroring-in-disconnected-environments#oc-mirror-procedure-delete-v2_about-installing-oc-mirror-v2[Deleting images from a disconnected environment]
5544

56-
//Apply changes to cluster so it can use Operators
57-
include::modules/microshift-oc-mirror-install-catalog-cluster.adoc[leveloffset=+2]
45+
{microshift-short} links::
46+
* xref:../../microshift_install_get_ready/microshift-deploy-with-mirror-registry.adoc#microshift-configuring-hosts-for-mirror_microshift-deployment-mirror[Configuring hosts for mirror registry access]
47+
* xref:../../microshift_networking/microshift-disconnected-network-config.adoc#microshift-disconnected-network-config[Configuring network settings for fully disconnected hosts]
48+
* xref:../../microshift_install_get_ready/microshift-deploy-with-mirror-registry.adoc#microshift-deploy-with-mirror-registry[Mirroring container images for disconnected installations]
49+
* xref:../../microshift_install_rpm_ostree/microshift-embed-in-rpm-ostree-offline-use.adoc#microshift-embed-in-rpm-ostree-offline-use[Embedding in a {op-system-ostree} image for offline use]

microshift_running_apps/microshift_operators/microshift-operators-olm.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ include::_attributes/attributes-microshift.adoc[]
66

77
toc::[]
88

9-
The Operator Lifecycle Manager (OLM) package manager is used in {microshift-short} for installing and running optional link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/architecture/control-plane#olm-operators_control-plane[add-on Operators].
9+
Operator Lifecycle Manager (OLM) is used in {microshift-short} for installing and running optional add-on Operators. See the following link for more information:
10+
11+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html/operators/understanding-operators#operator-lifecycle-manager-olm[Operator Lifecycle Manager]
1012
1113
[id="microshift-olm-considerations_{context}"]
1214
== Considerations for using OLM with {microshift-short}
Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
11
//Module included in the following assemblies:
22
//
3-
//* microshift_running_apps/microshift_operators/microshift-operators-olm.adoc
3+
//* microshift_running_apps/microshift_operators/microshift-operators-oc-mirror.adoc
44

55
:_mod-docs-content-type: CONCEPT
66
[id="microshift-using-oc-mirror_{context}"]
77
= About the oc-mirror plugin for creating a mirror registry
88

9-
You can use the oc-mirror OpenShift CLI (oc) plugin with {microshift-short} to filter and prune Operator catalogs. You can then mirror the filtered catalog contents to a mirror registry or use the container images in disconnected or offline deployments with {op-system-ostree}.
9+
You can use the oc-mirror OpenShift CLI (oc) plugin with {microshift-short} to filter and delete images from Operator catalogs. You can then mirror the filtered catalog contents to a mirror registry or use the container images in disconnected or offline deployments.
1010

11-
[NOTE]
12-
====
13-
{microshift-short} uses the generally available version (1) of the oc-mirror plugin. Do not use the following procedures with the Technical Preview version (2) of oc-mirror plugin.
14-
====
15-
16-
You can mirror the container images required by the desired Operators locally or to a container mirror registry that supports link:https://docs.docker.com/registry/[Docker v2-2], such as {quay}. The procedure to mirror content from Red Hat-hosted registries connected to the internet to a disconnected image registry is the same, independent of the registry you choose. After you mirror the contents of your catalog, configure each cluster to retrieve this content from your mirror registry.
17-
18-
[id="microshift-populate-mirror-registry-connectivity_{context}"]
19-
== Connectivity considerations when populating a mirror registry
20-
21-
When you populate your registry, you can use one of following connectivity scenarios:
22-
23-
Connected mirroring::
24-
If you have a host that can access both the internet and your mirror registry, but not your cluster node, you can directly mirror the content from that machine.
25-
26-
Disconnected mirroring::
27-
If you do not have a host that can access both the internet and your mirror registry, you must mirror the images to a file system and then bring that host or removable media into your disconnected environment.
28-
+
29-
[IMPORTANT]
30-
====
31-
A container registry must be reachable by every machine in the clusters that you provision. Installing, updating, and other operations, such as relocating workloads, might fail if the registry is unreachable.
32-
====
33-
34-
To avoid problems caused by an unreachable registry, use the following standard practices:
35-
36-
* Run mirror registries in a highly available way.
37-
* Ensure that the mirror registry at least matches the production availability of your clusters.
11+
The procedure to mirror content from Red Hat-hosted registries connected to the internet to a disconnected image registry is the same, independent of the registry you select. After you mirror the contents of your catalog, configure each cluster to retrieve this content from your mirror registry.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//Module included in the following assemblies:
2+
//
3+
//* microshift_running_apps/microshift_operators/microshift-operators-oc-mirror.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="microshift-connectivity-considerations_{context}"]
7+
= Connectivity considerations when populating a mirror registry
8+
9+
When you populate your registry, you can use one of following connectivity scenarios:
10+
11+
Connected mirroring::
12+
If you have a host that can access both the internet and your mirror registry, but not your cluster node, you can directly mirror the content from that machine.
13+
14+
Disconnected mirroring::
15+
If you do not have a host that can access both the internet and your mirror registry, you must mirror the images to a file system and then bring that host or removable media into your disconnected environment.
16+
+
17+
[IMPORTANT]
18+
====
19+
A container registry must be reachable by every machine in the cluster that you provision. Installing, updating, and other operations, such as relocating workloads, fail if the registry is unreachable.
20+
====
21+
22+
To avoid problems caused by an unreachable registry, use the following standard practices:
23+
24+
* Run mirror registries in a highly available way.
25+
* Ensure that the mirror registry at least matches the production availability of your clusters.

0 commit comments

Comments
 (0)