Install operators on disconnected clusters
Overview on operator deployments to disconnected clusters
Disconnected clusters are on a restricted network, typically behind a firewall. In this case, clusters can’t access remote registries where Red Hat provided OperatorHub sources reside. Instead, users can deploy operators to disconnected environments using a jump host and private registry to mirror the images. Disconnected installation mirroring is described in the OpenShift documentation.
How it works
About private registry
A private registry is used to mirror images that will be used by the operator catalog on a disconnected environment.
About jump host
A jump host has access to the public internet as well as the disconnected environment including the private registry defined above.
Overview on installing operators on disconnected clusters
The following describes the general process on how to install operators on disconnected clusters. Image registry repository mirroring is also described in the OpenShift documentation
- Authenticate to registries. This includes logging into the jump host, authenticating with Red Hat registry, and the user’s private registry.
- Generate a pull secret.
- Prepare authentication credentials. To prepare, users create a JSON file with their authentication credentials to the Red Hat registry and their private registry.
- Prepare the index catalog. This includes pruning the index catalog for selected packages, and then pushing the new index image to the private registry.
- Mirror content to the private registry. Content can be mirrored directly to the private registry or can be mirrored to removable media, and then to the private registry.
- Specify the
ImageContentSourcePolicy
orImageDigestMirrorSet
file. On the jump host, create the YAML file in your manifest directory. - Create a
CatalogSource
object that references the index image. - Install IBM Metrics Operator, IBM Data Reporter Operator, and product operators.
For detailed instructions, on the Install operators page, click the Disconnected tab or refer to Install operators on disconnected clusters using Workspace.
Install operators on disconnected clusters using Workspace
To install operators and container images on disconnected clusters, login and navigate to your software on Workspace, and then follow the installation instructions for disconnected environments.
Prerequisites
- OpenShift major version 4 with any available supported minor version
- Access to a private registry
- Access to a jump host
Procedure
- On the main menu, click Workspace, and then click Software.
- Click the product tile. The product page shows. On the Documentation tab, review available material related to product installation.
- Click the Operators tab, and then click Install operator. Note: when a product contains multiple operators, a list of available operators shows. Select an option from the list.
- To install operators on disconnected clusters, click the Disconnected tab, and then follow the instructions on the page.
Result
Operators installed on the disconnected clusters.
Next steps
- Follow the OpenShift documentation to configure the mirror registry.
- Enable usage reporting by installing IBM Metrics Operator and IBM Data Reporter Operator.
- Configure IBM Metrics Operator in disconnected mode
oc -n ibm-software-central patch --type='merge' marketplaceconfig marketplaceconfig -p '{"spec":{"isDisconnected":true}}'
- Usage data reports are stored in the IBM Metrics Operator’s Data Service until exported
- For products with usage reporting enabled, export usage data from the disconnected environment, and then import usage data to Workspace.
Export and import usage reports using Data collection CLI
For a disconnected environment, usage data must be exported from the cluster via Data collection CLI, and then imported to Workspace.
Install Data collection CLI
To get started, users must install Data collection CLI on their jump host. For more information, refer to the Data collection CLI repository.
Export and import usage reports
To export and import usage reports, login and navigate to Workspace and select Usage
- To export, click Download to download and review the usage data
- To import, click Upload usage data and follow the instructions on how to upload usage data
Prerequisites
- Install operators on disconnected clusters
- Install Data collection CLI on jump host
Procedure
- On the main menu, click Workspace, and then click Usage.
- Depending on your configuration, do one of the following options:
- When Usage has yet to be initialized and no data shows on the page, click Disconnected cluster.
- When Usage has been initialized and data shows on the page, click Upload usage data.
- To import usage reports, on the Upload usage data section, follow the instructions on the page.
Result
Usage data shows on Usage.