Installing and preparing Db2 on the Db2 Operator

IBM® Db2® can be deployed in a Red Hat® OpenShift® cluster as a containerized micro-service, or pod, managed by Kubernetes. Install the Db2 Operator in your cluster and then run the provided scripts to prepare the database.

Before you begin

TRIRIGA® Application Suite includes entitlement to IBM Db2 Standard Edition, which is a restricted version that is suitable for Small deployments, or development and test environments. For more information about Db2 Standard Edition, see Db2 database product editions and Db2 offerings. You can use Db2 for Red Hat OpenShift and Kubernetes by installing the IBM Db2 Operator. For larger deployments, you can use IBM Db2 Warehouse on IBM Cloud Pak® For Data or purchase a license for Db2 Advanced Edition.

Procedure

  1. Install the Db2 Operator, see Installing the Db2 Operator from the IBM Operator Catalog.
  2. Install Operator Lifecycle Manager (OLM) and deploy the Db2 Operator, see Installing Operator Lifecycle Manager (OLM) to deploy the Db2 Operator.
  3. Deploy Db2, see Deploying Db2 using the Db2uCluster custom resource.
  4. Add an internal LDAP user by entering the following command:

    oc exec -it {{db2_namespace}} {{db2_ldap_pod_name}} - /opt/ibm/ldap_scripts/addLdapUser.py -u {{db2_ldap_username}} -r admin -p {{db2_ldap_password}}

    For more information about the command options and adding LDAP users, see Managing users with LDAP in a Db2 on OpenShift cluster.