Installing Db2 on a Red Hat OpenShift cluster

You install Db2® on your Red Hat® OpenShift® cluster using a script, db2u-install. Running the script pulls the required container images from their repository and installs other necessary components.

About this task

Before you run the installation script, ensure that your Red Hat OpenShift cluster meets the following requirements:

  • OpenShift version 3.11 or greater, up to and including 4.x versions
  • Helm version 2
  • A cluster administrator account
  • An IBM Cloud account
Ensure that the node that will host your Db2 container meets the following system requirements:
  • Minimum 5.7 CPU per worker node (2 for the Db2 engine and 3.7 for Db2 auxiliary services)
  • Minimum 10.4 GiB Memory (4GiB for the Db2 engine and 6.4 GiB for Db2 auxiliary services)
Ensure that your Red Hat OpenShift cluster uses one of the following storage options:
  • NFS
  • IBM Cloud File Storage (gold storage class)
  • Portworx
  • Red Hat OpenShift Container Storage 4.3 and above
  • A HostPath PV that is a mounted clustered filesystem


  1. Log in to your Red Hat OpenShift cluster and create a new project for your Db2 installation.
  2. Set the required security privileges on your Red Hat OpenShift cluster.
  3. Set up your Red Hat OpenShift cluster for communicating with the IBM Container Registry.
  4. Download and configure the Helm charts for your Db2 instance.
  5. Locate the installation script and customize the values in the install arguments section to suit your environment.
  6. Run the install script from the Helm charts and install the Db2 Community Edition container image.
    Note: For the most current information on performing these steps, go to the Db2 Community Edition Readme page on Git Hub.

What to do next

  • Run the get pods command from the Red Hat OpenShift CLI to view all of the components of your Db2 on Red Hat OpenShift installation.
  • Connect to your Db2 instance, using the OpenShift NodePort service.