Skip to content

Commit c707f55

Browse files
committedOct 8, 2024·
OSDOCS-11850: migrating disconnected OLM content
1 parent fe7e771 commit c707f55

File tree

39 files changed

+131
-106
lines changed

39 files changed

+131
-106
lines changed
 

‎_topic_maps/_topic_map.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ Topics:
127127
File: installing-mirroring-disconnected
128128
- Name: Mirroring images for a disconnected installation using oc-mirror plugin v2
129129
File: about-installing-oc-mirror-v2
130+
- Name: Using OLM in disconnected environments
131+
File: using-olm
132+
Distros: openshift-origin,openshift-enterprise
130133
- Name: Updating a cluster in a disconnected environment
131134
Dir: updating
132135
Topics:
@@ -1890,7 +1893,7 @@ Topics:
18901893
- Name: Managing custom catalogs
18911894
File: olm-managing-custom-catalogs
18921895
Distros: openshift-origin,openshift-enterprise
1893-
- Name: Using OLM on restricted networks
1896+
- Name: Using OLM in disconnected environments
18941897
File: olm-restricted-networks
18951898
Distros: openshift-origin,openshift-enterprise
18961899
- Name: Catalog source pod scheduling

‎backup_and_restore/application_backup_and_restore/aws-sts/oadp-aws-sts.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include::snippets/oadp-mtc-operator.adoc[]
1212

1313
You configure {aws-short} for Velero, create a default `Secret`, and then install the Data Protection Application. For more details, see xref:../../..//backup_and_restore/application_backup_and_restore/installing/oadp-installing-operator.adoc#oadp-installing-operator-doc[Installing the OADP Operator].
1414

15-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks] for details.
15+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments] for details.
1616

1717
You can install {oadp-short} on an AWS {sts-first} (AWS STS) cluster manually. Amazon {aws-short} provides {aws-short} STS as a web service that enables you to request temporary, limited-privilege credentials for users. You use STS to provide trusted users with temporary access to resources via API calls, your {aws-short} console, or the {aws-short} command line interface (CLI).
1818

‎backup_and_restore/application_backup_and_restore/installing/installing-oadp-aws.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include::snippets/oadp-mtc-operator.adoc[]
1717

1818
You configure AWS for Velero, create a default `Secret`, and then install the Data Protection Application. For more details, see xref:../../..//backup_and_restore/application_backup_and_restore/installing/oadp-installing-operator.adoc#oadp-installing-operator-doc[Installing the OADP Operator].
1919

20-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks] for details.
20+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments] for details.
2121

2222

2323
//include::modules/oadp-installing-operator.adoc[leveloffset=+1]

‎backup_and_restore/application_backup_and_restore/installing/installing-oadp-azure.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include::snippets/oadp-mtc-operator.adoc[]
1515

1616
You configure Azure for Velero, create a default `Secret`, and then install the Data Protection Application. For more details, see xref:../../..//backup_and_restore/application_backup_and_restore/installing/oadp-installing-operator.adoc#oadp-installing-operator-doc[Installing the OADP Operator].
1717

18-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks] for details.
18+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments] for details.
1919

2020
// include::modules/oadp-installing-operator.adoc[leveloffset=+1]
2121
include::modules/migration-configuring-azure.adoc[leveloffset=+1]

‎backup_and_restore/application_backup_and_restore/installing/installing-oadp-gcp.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include::snippets/oadp-mtc-operator.adoc[]
1515

1616
You configure GCP for Velero, create a default `Secret`, and then install the Data Protection Application. For more details, see xref:../../..//backup_and_restore/application_backup_and_restore/installing/oadp-installing-operator.adoc#oadp-installing-operator-doc[Installing the OADP Operator].
1717

18-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks] for details.
18+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments] for details.
1919

2020
//include::modules/oadp-installing-operator.adoc[leveloffset=+1]
2121
include::modules/migration-configuring-gcp.adoc[leveloffset=+1]

‎backup_and_restore/application_backup_and_restore/installing/installing-oadp-kubevirt.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following storage options are excluded:
3030
3131
For more information, see xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-applications-restic-doc.adoc#oadp-backing-up-applications-restic-doc[Backing up applications with File System Backup: Kopia or Restic].
3232
====
33-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks] for details.
33+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. See xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments] for details.
3434

3535
include::modules/install-and-configure-oadp-kubevirt.adoc[leveloffset=+1]
3636

@@ -40,7 +40,7 @@ include::modules/install-and-configure-oadp-kubevirt.adoc[leveloffset=+1]
4040
* xref:../../../backup_and_restore/application_backup_and_restore/oadp-features-plugins.adoc#oadp-plugins_oadp-features-plugins[{oadp-short} plugins]
4141
* xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc#backing-up-applications[`Backup` custom resource (CR)]
4242
* xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/restoring-applications.adoc#restoring-applications[`Restore` CR]
43-
* xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks]
43+
* xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments]
4444

4545
include::modules/oadp-installing-dpa-1-3.adoc[leveloffset=+1]
4646
include::modules/oadp-configuring-node-agents.adoc[leveloffset=+2]

‎backup_and_restore/application_backup_and_restore/installing/installing-oadp-mcg.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include::snippets/technology-preview.adoc[]
2222

2323
You create a `Secret` for the backup location and then you install the Data Protection Application. For more details, see xref:../../..//backup_and_restore/application_backup_and_restore/installing/oadp-installing-operator.adoc#oadp-installing-operator-doc[Installing the OADP Operator].
2424

25-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. For details, see xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks].
25+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. For details, see xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments].
2626

2727
//include::modules/oadp-installing-operator.adoc[leveloffset=+1]
2828
include::modules/migration-configuring-mcg.adoc[leveloffset=+1]

‎backup_and_restore/application_backup_and_restore/installing/installing-oadp-ocs.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ include::snippets/technology-preview.adoc[]
2020

2121
You create a `Secret` for the backup location and then you install the Data Protection Application. For more details, see xref:../../..//backup_and_restore/application_backup_and_restore/installing/oadp-installing-operator.adoc#oadp-installing-operator-doc[Installing the OADP Operator].
2222

23-
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. For details, see xref:../../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks].
23+
To install the OADP Operator in a restricted network environment, you must first disable the default OperatorHub sources and mirror the Operator catalog. For details, see xref:../../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments].
2424

2525
//include::modules/oadp-installing-operator.adoc[leveloffset=+1]
2626
include::modules/oadp-about-backup-snapshot-locations-secrets.adoc[leveloffset=+1]

‎disconnected/connected-to-disconnected.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ include::modules/connected-to-disconnected-mirror-images.adoc[leveloffset=+1]
4646
[role="_additional-resources"]
4747
.Additional resources
4848

49-
* For more information about mirroring Operator catalogs, see xref:../operators/admin/olm-restricted-networks.adoc#olm-mirror-catalog_olm-restricted-networks[Mirroring an Operator catalog].
49+
* For more information about mirroring Operator catalogs, see xref:../disconnected/using-olm.adoc#olm-mirror-catalog_olm-restricted-networks[Mirroring an Operator catalog].
5050
* For more information about the `oc adm catalog mirror` command, see the xref:../cli_reference/openshift_cli/administrator-cli-commands.adoc#oc-adm-catalog-mirror[OpenShift CLI administrator command reference].
5151

5252
include::modules/connected-to-disconnected-config-registry.adoc[leveloffset=+1]

‎disconnected/mirroring/installing-mirroring-installation-images.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ include::modules/olm-mirroring-catalog.adoc[leveloffset=+1]
8585
[role="_additional-resources"]
8686
.Additional resources
8787

88-
* xref:../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks]
88+
* xref:../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments]
8989

9090
[id="olm-mirror-catalog-prerequisites_installing-mirroring-installation-images"]
9191
=== Prerequisites

‎disconnected/updating/disconnected-update-osus.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ To install the OpenShift Update Service, you must first install the OpenShift Up
7373

7474
[NOTE]
7575
====
76-
For clusters that are installed in disconnected environments, also known as disconnected clusters, Operator Lifecycle Manager by default cannot access the Red Hat-provided OperatorHub sources hosted on remote registries because those remote sources require full internet connectivity. For more information, see xref:../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks].
76+
For clusters that are installed in disconnected environments, also known as disconnected clusters, Operator Lifecycle Manager by default cannot access the Red Hat-provided OperatorHub sources hosted on remote registries because those remote sources require full internet connectivity. For more information, see xref:../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments].
7777
====
7878

7979
// Installing the OpenShift Update Service Operator by using the web console
@@ -134,7 +134,7 @@ The Cluster Version Operator (CVO) uses release image signatures to ensure that
134134
[NOTE]
135135
====
136136
If you have not recently installed or updated the OpenShift Update Service Operator, there might be a more recent version available.
137-
See xref:../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks] for more information about how to update your OLM catalog in a disconnected environment.
137+
See xref:../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments] for more information about how to update your OLM catalog in a disconnected environment.
138138
====
139139

140140
After you configure your cluster to use the installed OpenShift Update Service and local mirror registry, you can use any of the following update methods:

‎disconnected/updating/disconnected-update.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ include::modules/generating-icsp-object-scoped-to-a-registry.adoc[leveloffset=+1
6161
[role="_additional-resources"]
6262
== Additional resources
6363

64-
* xref:../../operators/admin/olm-restricted-networks.adoc#olm-restricted-networks[Using Operator Lifecycle Manager on restricted networks]
64+
* xref:../../disconnected/using-olm.adoc#olm-restricted-networks[Using Operator Lifecycle Manager in disconnected environments]
6565

6666
* xref:../../machine_configuration/index.adoc#machine-config-overview[Machine Config Overview]

‎disconnected/using-olm.adoc

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="olm-restricted-networks"]
3+
= Using Operator Lifecycle Manager in disconnected environments
4+
include::_attributes/common-attributes.adoc[]
5+
:context: olm-restricted-networks
6+
7+
toc::[]
8+
9+
For {product-title} clusters in disconnected environments, Operator Lifecycle Manager (OLM) by default cannot access the Red{nbsp}Hat-provided OperatorHub sources hosted on remote registries because those remote sources require full internet connectivity.
10+
11+
However, as a cluster administrator you can still enable your cluster to use OLM in a disconnected environment if you have a workstation that has full internet access. The workstation, which requires full internet access to pull the remote OperatorHub content, is used to prepare local mirrors of the remote sources, and push the content to a mirror registry.
12+
13+
The mirror registry can be located on a bastion host, which requires connectivity to both your workstation and the disconnected cluster, or a completely disconnected, or _airgapped_, host, which requires removable media to physically move the mirrored content to the disconnected environment.
14+
15+
This guide describes the following process that is required to enable OLM in disconnected environments:
16+
17+
* Disable the default remote OperatorHub sources for OLM.
18+
* Use a workstation with full internet access to create and push local mirrors of the OperatorHub content to a mirror registry.
19+
* Configure OLM to install and manage Operators from local sources on the mirror registry instead of the default remote sources.
20+
21+
After enabling OLM in a disconnected environment, you can continue to use your unrestricted workstation to keep your local OperatorHub sources updated as newer versions of Operators are released.
22+
23+
[IMPORTANT]
24+
====
25+
While OLM can manage Operators from local sources, the ability for a given Operator to run successfully in a disconnected environment still depends on the Operator itself meeting the following criteria:
26+
27+
* List any related images, or other container images that the Operator might require to perform their functions, in the `relatedImages` parameter of its `ClusterServiceVersion` (CSV) object.
28+
* Reference all specified images by a digest (SHA) and not by a tag.
29+
30+
You can search software on the link:https://catalog.redhat.com/software/search?p=1&deployed_as=Operator&type=Containerized%20application&badges_and_features=Disconnected[Red{nbsp}Hat Ecosystem Catalog] for a list of Red{nbsp}Hat Operators that support running in disconnected mode by filtering with the following selections:
31+
32+
[horizontal]
33+
Type:: Containerized application
34+
Deployment method:: Operator
35+
Infrastructure features:: Disconnected
36+
====
37+
38+
[role="_additional-resources"]
39+
.Additional resources
40+
41+
* xref:../operators/understanding/olm-rh-catalogs.adoc#olm-rh-catalogs[Red{nbsp}Hat-provided Operator catalogs]
42+
* xref:../operators/operator_sdk/osdk-generating-csvs.adoc#olm-enabling-operator-for-restricted-network_osdk-generating-csvs[Enabling your Operator for restricted network environments]
43+
44+
[id="olm-restricted-network-prereqs"]
45+
== Prerequisites
46+
47+
* You are logged in to your {product-title} cluster as a user with `cluster-admin` privileges.
48+
49+
* If you are using OLM in a disconnected environment on {ibm-z-name}, you must have at least 12 GB allocated to the directory where you place your registry.
50+
51+
include::modules/olm-restricted-networks-configuring-operatorhub.adoc[leveloffset=+1]
52+
53+
[id="olm-mirror-catalog_olm-restricted-networks"]
54+
== Mirroring an Operator catalog
55+
56+
For instructions about mirroring Operator catalogs for use with disconnected clusters, see xref:../disconnected/mirroring/installing-mirroring-installation-images.adoc#olm-mirror-catalog_installing-mirroring-installation-images[Mirroring Operator catalogs for use with disconnected clusters].
57+
58+
[IMPORTANT]
59+
====
60+
As of {product-title} 4.11, the default Red{nbsp}Hat-provided Operator catalog releases in the file-based catalog format. The default Red{nbsp}Hat-provided Operator catalogs for {product-title} 4.6 through 4.10 released in the deprecated SQLite database format.
61+
62+
The `opm` subcommands, flags, and functionality related to the SQLite database format are also deprecated and will be removed in a future release. The features are still supported and must be used for catalogs that use the deprecated SQLite database format.
63+
64+
Many of the `opm` subcommands and flags for working with the SQLite database format, such as `opm index prune`, do not work with the file-based catalog format. For more information about working with file-based catalogs, see xref:../operators/understanding/olm-packaging-format.adoc#olm-file-based-catalogs_olm-packaging-format[Operator Framework packaging format], xref:../operators/admin/olm-managing-custom-catalogs.adoc#olm-managing-custom-catalogs-fb[Managing custom catalogs], and xref:../disconnected/mirroring/installing-mirroring-disconnected.adoc#installing-mirroring-disconnected[Mirroring images for a disconnected installation using the oc-mirror plugin].
65+
====
66+
67+
include::modules/olm-creating-catalog-from-index.adoc[leveloffset=+1]
68+
69+
[role="_additional-resources"]
70+
.Additional resources
71+
72+
* xref:../operators/admin/olm-managing-custom-catalogs.adoc#olm-accessing-images-private-registries_olm-managing-custom-catalogs[Accessing images for Operators from private registries]
73+
* xref:../operators/understanding/olm/olm-understanding-olm.adoc#olm-catalogsource-image-template_olm-understanding-olm[Image template for custom catalog sources]
74+
* xref:../openshift_images/managing_images/image-pull-policy.adoc#image-pull-policy[Image pull policy]
75+
76+
[id="next-steps_olm-restricted-networks"]
77+
== Next steps
78+
79+
* xref:../operators/admin/olm-upgrading-operators.adoc#olm-upgrading-operators[Updating installed Operators]

‎edge_computing/ztp-preparing-the-hub-cluster.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ include::modules/ztp-acm-installing-disconnected-rhacm.adoc[leveloffset=+1]
2626
2727
* xref:../edge_computing/cnf-talm-for-cluster-upgrades.adoc#installing-topology-aware-lifecycle-manager-using-cli_cnf-topology-aware-lifecycle-manager[Installing {cgu-operator}]
2828
29-
* xref:../operators/admin/olm-restricted-networks.adoc#olm-mirror-catalog_olm-restricted-networks[Mirroring an Operator catalog]
29+
* xref:../disconnected/using-olm.adoc#olm-mirror-catalog_olm-restricted-networks[Mirroring an Operator catalog]
3030
3131
include::modules/ztp-acm-adding-images-to-mirror-registry.adoc[leveloffset=+1]
3232

0 commit comments

Comments
 (0)
Please sign in to comment.