Install operators for API Connect, DataPower, and common services so that you can deploy
API Connect subsystems across multiple namespaces on OpenShift. If deploying subsystems in different
environments then the corresponding operator will need to be installed in each environment, for
example the DataPower operator in your Gateway environment, and the API Connect operator in your
Portal environment.
Before you begin
The API Connect operator and operand must be from the same release and
fix pack level. Table 1 lists the current version of the operator and operand for API Connect.
Table 1. API Connect operator and operand versions
API Connect (operand) |
Operator channel version |
Highest operator version |
10.0.5.8 |
v3.8 |
3.8.0 |
You can use any combination of API Connect 10.0.5.x
with DataPower Gateway 10.5.0.x or DataPower API
Gateway 10.5.0.x.
Procedure
- Obtain an entitlement key for the Entitled Registry:
- Log in to the IBM Container Library.
- In the Container software library, select Get entitlement
key.
- After the Access your container software heading, click
Copy key.
- Copy the key to a safe location.
-
Create a global pull secret:
- Open the OpenShift web console, click .
- Select the project
openshift-config
.
- Select
pull-secret
from the secret list.
- Select .
- Set Registry Server Address to
cp.icr.io
.
- Set Username to
cp
.
- Set Password to the entitlement key generated in Step 1.
- Click Save.
- Add the IBM Operator Catalog source:
- In the OpenShift web console, and click + (in the page banner)
to open the Import YAML dialog box.
- Paste the following 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"
publisher: IBM
sourceType: grpc
image: icr.io/cpopen/ibm-operator-catalog
updateStrategy:
registryPoll:
interval: 45m
- Click Create.
- Create the
apiconnect
subscription.
- Create the
apiconnect
subscription with the appropriate channel by
creating a file called apic-sub.yaml
and pasting in the following contents:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: ibm-apiconnect
namespace: openshift-operators
spec:
channel: v3.8
name: ibm-apiconnect
source: ibm-operator-catalog
sourceNamespace: openshift-marketplace
- Apply the subscription with the following command:
oc apply -f apic-sub.yaml
- Select , and ensure that Project: All Projects
is selected.
If any operators such as ibm-apiconnect
or
ibm-cert-manager-operator
show the status of "Upgrade available", approve the
upgrade by completing the following steps:
- Click Upgrade available.
- Click Preview InstallPlan.
- Click Approve.
- Wait for the
IBM API Connect
and IBM DataPower Gateway
operators to install.
The IBM DataPower Gateway
operator is a prerequisite to API
Connect and must not be removed.
- (10.0.5.3 and later) Create the
ibm-common-services-operator
subscription, if it does not already exist.
This step only applies when you install version 10.0.5.3 or later. If you are installing an older
version of API Connect, skip this step.
- Create a file called common-services-sub.yaml and paste in the
following contents:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: ibm-common-service-operator
namespace: openshift-operators
spec:
channel: <channel>
name: ibm-common-service-operator
source: ibm-operator-catalog
sourceNamespace: openshift-marketplace
Where <channel>
is one of the following values:
v3.23
if you are using IBM Cloud Pak foundational
services for CD (continuous delivery)
v3
if you are using IBM Cloud Pak foundational services
for LTSR (long term service release)
- Apply the subscription with the following command:
oc apply -f common-services-sub.yaml
- Select , and ensure that Project: All Projects
is selected.
If any operators such as ibm-apiconnect
or
ibm-cert-manager-operator
show the status of "Upgrade available", approve the
upgrade by completing the following steps:
- Click Upgrade available.
- Click Preview InstallPlan.
- Click Approve.
- Check the
ibm-common-services
namespace and ensure that all operators with a
status of "Upgrade available" are approved.
- Wait for the
IBM Cloud Pak foundational services
, IBM
NamespaceScope
, and Operand Deployment Lifecycle Manager
operators to
install.
- Create the namespaces for your API Connect subsystems either by selecting
in
the UI, or with the command:
oc create ns <APIC-namespace>
Note: The following namespaces cannot be used to install
API Connect
subsystems because
Red Hat OpenShift Container Platform (OCP) restricts the
use of default namespaces for installing non-cluster services:
- default
- kube-system
- kube-public
- openshift-node
- openshift-infra
- openshift
- (10.0.5.3 and later) Install cert manager:
This step only applies when you install version 10.0.5.3 or later. If you are installing an older
version of API Connect, skip this step.
- Create a file called cert-manager-operand-request.yaml and paste
in the following content:
apiVersion: operator.ibm.com/v1alpha1
kind: OperandRequest
metadata:
name: ibm-apiconnect-cert-manager
namespace: <namespace>
spec:
requests:
- operands:
- name: ibm-cert-manager-operator
registry: common-service
registryNamespace: ibm-common-services
- Create the
operandRequest
for cert-manager by running the following
command:
oc apply -f cert-manager-operand-request.yaml
- Select , and ensure that Project: All Projects
is selected.
Wait for the ibm-cert-manager-operator
to display and if it shows the status of
"Upgrade available", approve the upgrade by completing the following steps:
- Click Upgrade available.
- Click Preview InstallPlan.
- Click Approve.
- Wait for the
IBM Cert Manager
operator to install.
What to do next
Proceed to install the API Connect subsystems as explained in : Installing the Management subsystem