|
| 1 | +:_mod-docs-content-type: ASSEMBLY |
| 2 | +[id="microshift-operators-olm"] |
| 3 | += Using Operator Lifecycle Manager with {microshift-short} |
| 4 | +include::_attributes/attributes-microshift.adoc[] |
| 5 | +:context: microshift-operators-olm |
| 6 | + |
| 7 | +toc::[] |
| 8 | + |
| 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]. |
| 10 | + |
| 11 | +* Cluster Operators as applied in {ocp} are not used in {microshift-short}. |
| 12 | +* You must create your own catalogs for the add-on Operators you want to use with your applications. Catalogs are not provided by default. |
| 13 | +** Each catalog must have an accessible `CatalogSource` added to a cluster, so that the OLM catalog Operator can use the catalog for content. |
| 14 | +* You must use the CLI to conduct OLM activities with {microshift-short}. The console and OperatorHub GUIs are not available. |
| 15 | +** Use the link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/cli_tools/opm-cli#cli-opm-install[Operator Package Manager `opm` CLI] with network-connected clusters, or for building catalogs for custom Operators that use an internal registry. |
| 16 | +** To mirror your catalogs and Operators for disconnected or offline clusters, install link:https://docs.openshift.com/container-platform/{ocp-version}/installing/disconnected_install/installing-mirroring-disconnected.html#installation-oc-mirror-installing-plugin_installing-mirroring-disconnected[the oc-mirror OpenShift CLI plugin]. |
| 17 | +
|
| 18 | +[IMPORTANT] |
| 19 | +==== |
| 20 | +Before using an Operator, verify with the provider that the Operator is supported on {product-title}. |
| 21 | +==== |
| 22 | + |
| 23 | +[id="microshift-installing-olm-options_{context}"] |
| 24 | +== Determining your OLM installation type |
| 25 | +You can install the OLM package manager for use with {microshift-short} 4.15 or newer versions. There are different ways to install OLM for {microshift-short} clusters, depending on your use case. |
| 26 | + |
| 27 | +* You can install the `microshift-olm` RPM at the same time you install the {microshift-short} RPM on {op-system-base-full}. |
| 28 | +* You can install the `microshift-olm` on an existing {microshift-short} {product-version}. Restart the {microshift-short} service after installing OLM for the changes to apply. |
| 29 | +See xref:../microshift_install/microshift-install-rpm.adoc#microshift-install-rpms-olm_microshift-install-rpm[Installing the Operator Lifecycle Manager (OLM) from an RPM package]. |
| 30 | +* You can embed OLM in a {op-system-ostree-first} image. See xref:../microshift_install/microshift-embed-in-rpm-ostree.adoc#microshift-adding-olm-to-blueprint_microshift-embed-in-rpm-ostree[Adding the Operator Lifecycle Manager (OLM) service to a blueprint]. |
| 31 | + |
| 32 | +include::modules/microshift-olm-namespaces.adoc[leveloffset=+1] |
| 33 | + |
| 34 | +include::modules/microshift-olm-build-op-catalogs.adoc[leveloffset=+1] |
| 35 | + |
| 36 | +//additional resources for builing catalogs module |
| 37 | +[role="_additional-resources"] |
| 38 | +.Additional resources |
| 39 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/cli_tools/opm-cli[`opm` CLI reference] |
| 40 | +* link:https://docs.openshift.com/container-platform/{ocp-version}/operators/understanding/olm-rh-catalogs.html#olm-about-catalogs_olm-rh-catalogs[About Operator catalogs] |
| 41 | +* For instructions about creating file-based catalogs by using the `opm` CLI, see link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/operators/administrator-tasks#olm-managing-custom-catalogs[Managing custom catalogs] |
| 42 | + |
| 43 | +include::modules/microshift-olm-deploy-ops-con.adoc[leveloffset=+1] |
| 44 | + |
| 45 | +//additional resources for deploying operators concept module |
| 46 | +[role="_additional-resources"] |
| 47 | +.Additional resources |
| 48 | +* link:https://docs.openshift.com/container-platform/4.14/operators/understanding/olm/olm-understanding-operatorgroups.html#olm-operatorgroups-membership_olm-understanding-operatorgroups[Operator group membership] |
| 49 | + |
| 50 | +include::modules/microshift-olm-deploy-ops-global-ns.adoc[leveloffset=+2] |
| 51 | + |
| 52 | +include::modules/microshift-olm-deploy-ops-spec-ns.adoc[leveloffset=+2] |
| 53 | + |
| 54 | +//additional resources for working with operators after deployment |
| 55 | +[role="_additional-resources"] |
| 56 | +.Additional resources |
| 57 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/operators/administrator-tasks#olm-upgrading-operators[Updating installed Operators] |
| 58 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/operators/administrator-tasks#olm-deleting-operator-from-a-cluster-using-cli_olm-deleting-operators-from-a-cluster[Deleting Operators from a cluster using the CLI] |
| 59 | + |
| 60 | +include::modules/microshift-olm-deploy-op-disconnected.adoc[leveloffset=+2] |
| 61 | + |
| 62 | +//additional resources for deploying operators in disconnected and offline environments |
| 63 | +[role="_additional-resources"] |
| 64 | +.Additional resources |
| 65 | +* 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] for more information. |
| 66 | +* link:https://docs.openshift.com/container-platform/{ocp-version}/installing/disconnected_install/installing-mirroring-disconnected.html#installing-mirroring-disconnected[Mirroring images for a disconnected installation using the oc-mirror plugin] |
| 67 | +* xref:../microshift_install/microshift-deploy-with-mirror-registry.adoc#microshift-configuring-hosts-for-mirror_microshift-deployment-mirror[Configuring hosts for mirror registry access] |
| 68 | +* xref:../microshift_networking/microshift-disconnected-network-config.adoc#microshift-disconnected-network-config[Configuring network settings for fully disconnected hosts] |
| 69 | +* xref:../microshift_install/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] |
| 70 | +* xref:../microshift_install/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] |
0 commit comments