Upgrading the Db2uCluster or Db2uinstance resource

You can upgrade your Db2 Warehouse server by editing the source YAML of the custom resource (CR) that is associated with your Db2 Warehouse on Red Hat OpenShift cluster.

About this task

Note: If you have configured HADR for your Db2 Warehouse on OpenShift® deployment, do not proceed. See Upgrading HADR Db2 deployments.

When you have updated the CR version, the Db2 Operator automatically reconciles all the objects that were created and managed by the Db2 Operator when the CR was first created. The Db2 Operator also edits the Db2 engine OpenShift statefulset (Db2uCluster) or Db2uEngine (Db2uInstance) CR to point to the updated images, causing your Db2 engine pods to be recreated using the new images. This process automatically updates or upgrades Db2 on your OpenShift cluster.

Procedure

  1. From the console of your OpenShift cluster, select the Db2u Cluster tab.
  2. From the table, locate the custom resource (CR) that is linked to your Db2 deployment and, from the far-right column, click the ellipses (...) and select Edit Db2uCluster.
  3. In the text box that appears, go through the YAML file and change the value of version, under spec, to the target version number:
    spec:
      version: "s11.5.<x>.<y>-cn<z>>"
    where <x> is the latest mod pack number, <y> is the latest fix pack number, and <z> is the latest container layer enhanced release number.
  4. Save your changes.