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 a 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.

You can add the iBM CatalogSource object to your cluster by using the OpenShift web console or the CLI (the oc command-line tool).

Adding the IBM CatalogSource object by using the OpenShift web console

  1. Go to the OpenShift web console
  2. In the top banner, click the plus (+) icon to open the Import YAML dialog box.
  3. Paste the 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