Set environment variables and downloading operator package files with a bastion host

Before mirroring your images, you need to set the environment variables on your mirroring device. You also need to connect to the internet, so that you can download the corresponding operator package files. To finish preparing your host, complete the following steps.

Before you begin

These prerequisites apply only if you are applying fix packs prior to an upgrade:

  • Confirm that your operators are running properly.
  • If there are any pending operator updates that require manual approval, approve those before starting this procedure. Manual approval should not be configured for operator installs, because users cannot control what upgrades to apply; this strategy forces all possible upgrades to be done at the same time and can block upgrades.

Procedure

  1. Create the following environment variables with the installer image name and the image inventory on your host.
    export OPERATOR_PACKAGE_NAME=ibm-db2uoperator
    export OPERATOR_VERSION=<CASE version of latest Db2 Operator>
    You need to separately mirror each component of the Db2® Operator that you intend to use. Operator package files can be found in the IBM cloud-pak repository.
  2. Connect your host to the internet. It does not need to be connected to the network-restricted environment at this time.
  3. Download the operator package to your host. If you do not specify the operator version, it downloads the latest version.
    oc ibm-pak get $OPERATOR_PACKAGE_NAME --version $OPERATOR_VERSION
    Your host is now configured and you are ready to mirror your images.