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