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
- Go to the OpenShift web console
- In the top banner, click the plus (+) icon to open the Import YAML dialog box.
- 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
- Click Create.
Adding the IBM CatalogSource
object by using the CLI
- 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
- Run the command below. Enter the name of the file you created in the first step:
$ oc apply -f filename
Next steps
Now that you have added the catalog source, follow the guidance in Installing operators.