Adding online catalog sources to your OpenShift cluster

Adding the IBM operator catalog to your OpenShift cluster adds the IBM operators to the list of operators you can install. You must be an [os] cluster administrator to do so.

Note: This procedure applies only to clusters that are connected to the internet. For air-gapped installation, follow the guidance in Mirroring for a restricted (air-gapped) network environment.

Add the IBM CatalogSource object to your cluster with either:

Adding the IBM CatalogSource object by using the OpenShift web console

  1. Log into the OpenShift web consolewith your OpenShift cluster admin credentials.
  2. In the top banner, click the plus (+) icon to open the Import YAML dialog box.
  3. Paste this resource definition into the dialog box:
    apiVersion: operators.coreos.com/v1alpha1
    kind: CatalogSource
    metadata:
      name: ibm-operator-catalog
      namespace: openshift-marketplace
    spec:
      displayName: IBM Operator Catalog
      image: 'icr.io/cpopen/ibm-operator-catalog:latest'
      publisher: IBM
      sourceType: grpc
      updateStrategy:
        registryPoll:
          interval: 45m
  4. Click Create.

Adding the IBM CatalogSource object by using the CLI

  1. Copy this resource definition for IBM operators into a local file on your computer:
    apiVersion: operators.coreos.com/v1alpha1
    kind: CatalogSource
    metadata:
      name: ibm-operator-catalog
      namespace: openshift-marketplace
    spec:
      displayName: IBM Operator Catalog
      image: 'icr.io/cpopen/ibm-operator-catalog:latest'
      publisher: IBM
      sourceType: grpc
      updateStrategy:
        registryPoll:
          interval: 45m
  2. Run the command below. Enter the name of the file you created in the first step:
    $ oc apply -f filename