Deploy IBM Sterling Order Manager Software on OpenShift — Part 2

Bala Sivasubramanian
4 min readApr 9, 2022

--

Read the previous article

For this article, I am going to walk through simple setup of DB2 running on Openshift which is required for IBM Sterling Order Manager Software.

Important Step:

Follow this step in DB2 project so the images are pulled successfully and deployed into OpenShift Cluster.

(1) Obtaining your entitlement key

  1. Go to the Container software library.
  1. Click Copy key.
  2. Copy the entitlement key to a safe place so you can use it when you add the pull secret in the next section.

(2) ibm-registry secret

Create the secret with entitlement key which you received from above steps

(3) Add the secret “ibm-registry” to the ServiceAccount:imagePullSecret which will be used to Deploy DB2 on the OpenShift

Note: Repeat steps (2) and (3) for the new Secret called “ibm-entitlement” which is required sometimes for DB2

Deploy the IBM DB2 on the OpenShift Cluster

To enable the IBM Operator Catalog in your OpenShift cluster:

  • From your OpenShift UI console, select Import YAML. Paste the following YAML and Click Import

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

As a result, you will see DB2 Operator in the OperatorHub

Select the DB2 Operator and Click Install which will ask you project/namespace to be installed.

As result, you will see operator got installed successfully in the selected project.

Next step is to create the db2 instance-cluster. Depending on the Storage (OCS or Portworx), you need to modify the storage classes in the YAML and create the instances

OpenShift Container Storage Class YAML

StorageClass :

Portworx Storage Class YAML

StorageClass:

  • portworx-db2-rwo-sc
  • portworx-db2-rwx-sc

As a result of creating db2 instances, you will be seeing following outcome

DB2 Pods

DB2 Services

Persistent Volume Claim

Verification

  • Login to Red Hat OpenShift Console and switch to “Developer” view on the top left hand corner.
  • Click Topology which will display DB2 applications running on installed namespace

Verify the DB2 is running

Go to pod related to db2ucluster-XXX and open terminal

su — db2inst1
db2 list db directory
db2 connect to OMDB

Congrats !! DB2 is successfully deployed on OpenShift Cluster.

Special thanks to Robert Borovsky for helping.

References:

  1. Apply IBM Cloud Pak Entitlement Key
  2. Retrieve your Entitlement Key based on IBMId
  3. DB2 Operator Infocenter
  4. DB2 OpenShift Reference
  5. Deployment of OCS & Portworx on OpenShift

--

--