You can install the Db2®
Operator using the IBM Cloud Pak CLI tool.
About this task
The IBM Cloud Pak CLI (ibm-pak) provides significant benefits when dealing with air-gapped
(disconnected) environments for case management. It provides a common framework for IBM operators
around a consistent and optimized air gap install experience, using bastion, non-bastion or portable
storage.
You will need to install the ibm-pak tool before proceeding.
Procedure
- Download and extract the Container Application Software for Enterprises (CASE) bundle:
- Set up environment variables.
Review the following parameters for your environment and then
run the following commands to set up the
environment:
export CASE_NAME=ibm-db2uoperator
export CASE_VERSION=<CASE version of latest Db2 Operator>
- Download the CASE bundle:
$ oc ibm-pak get ${CASE_NAME} --version ${CASE_VERSION}
Downloading and extracting the CASE ...
- Success
Retrieving CASE version ...
- Success
Validating the CASE ...
Validating the signature for the ibm-db2uoperator CASE...
- Success
Creating inventory ...
- Success
Finding inventory items
- Success
Resolving inventory items ...
Parsing inventory items
- Success
- Install the Db2 catalog:
oc ibm-pak launch ${CASE_NAME} \
--version ${CASE_VERSION} \
--namespace openshift-marketplace \
--inventory db2uOperatorSetup \
--action installCatalog
- Install the Db2
operator:
export NAMESPACE=<namespace_name>
oc ibm-pak launch ${CASE_NAME} \
--version ${CASE_VERSION} \
--namespace ${NAMESPACE} \
--inventory db2uOperatorStandaloneSetup \
--action installOperator
- Deploy Db2 Warehouse, using the Db2 custom resource.