Deploying Db2 or Db2 Warehouse on your OpenShift or Kubernetes cluster

Before you can deploy Db2 or Db2 Warehouse on your cluster, you have to choose a custom resource, set up dedicated nodes within your cluster, accept license terms, and configure database storage.

Note: This topic is for Db2 Operator V2 deployments. If you are currently using a legacy deployment, refer to the documentation in Legacy deployment documentation. If you are unsure which deployment type you are using, use the version checker.

Before you begin

When you have installed the Db2® Operator to your OpenShift or Kubernetes cluster, you use the Db2uInstance CR to deploy Db2 or Db2 Warehouse. For successful deployment, you also need to set up any dedicated nodes within your cluster, accept the license terms, and configure database storage and security requirements. You may also add databases to your deployments using the manage_databases tools.

The Db2uInstance CR

The Db2uInstance CR provides a significant performance increase on cloud platforms such as Amazon Web Services (AWS) and Azure.

Accepting the Db2 or Db2 Warehouse on OpenShift® license terms

In order to successfully deploy Db2 or Db2 Warehouse, the license terms detailed inside the Db2uInstance custom resource topic need to be reviewed and accepted inside the Db2 Custom Resource.

Storage requirements

The storage class must exist in the cluster or a supported storage class must be provided accordingly. To deploy Db2 or Db2 Warehouse, you need a supported storage class.

During a Db2 or Db2 Warehouse deployment, storage can be dynamically created or pre-created PVs can be specified. Db2 or Db2 Warehouse needs the following storage locations:
  • System & Backup storage [Shared with RWX]
    • Db2 or Db2 Warehouse instance home directory
    • Diagnostic logs
    • Other global configuration directories
    • Backups, Restore or Load locations
  • User storage [Exclusive with RWO]
    • Database storage paths
    • Transaction logs
Software-defined Shared Zone [Meta] Data Zone [Data]
NFS Access Mode: RWX RWX (combined with Meta) or RWO
Portworx 2.9.1.3 Shared v4, RWX (based on NFS v4 protocol) io-profile: db_remote, RWO
ODF 4.12 or greater CephFS, RWX CephRBD(Block Device), RWO
Storage Scale CSI 2.1 or greater RWX RWO
Note: In cases where the storage layer supports it, a single storage location, defined as RWX, can be specified. Such a configuration would exhibit degraded performances.