Setting up a mirroring environment with a bastion host
Before you install the Db2® Operator on an air-gapped environment, you must set up a host that can be connected to the internet to complete configuring your mirroring environment. To set up your mirroring environment, complete the following steps:
Before you begin
Configure your environment
- A Docker V2 registry that is available and accessible from the OpenShift® Container Platform cluster nodes.
- The following sites and ports must be accessible:
icr.io:443for the Db2 Operator and operand imagesgithub.comfor operator packages and toolsredhat.comfor Red Hat® OpenShift Container Platform upgrades
- Storage is available and configured on your cluster.
Set up local image registry and access
Use a local Docker registry to store
images in your network restricted environment. If you already have one or more centralized,
corporate registry servers that store production container images, you can use those for this
purpose. If a registry is not already available, install and configure a production-grade
registry.
Important: Do not use OpenShift image
registry as your local registry. The OpenShift registry
does not support multi-architecture images or path separators in the image name.
The local
registry must meet the following requirements:- Supports multi-architecture images through Docker Manifest V2, Schema 2. For details, see Docker Manifest V2, Schema 2
- Open Container Initiative (OCI) compliant. (Quay does not support uncompressed layers, so it is not compliant.)
- Sufficient storage to hold all the software
- Accessible from the OpenShift Container Platform cluster nodes
- Supports using path separators in the image name
- Supports auto-repository creation
Prepare a host for mirroring the images
You must be able to connect your file system to the internet and to the restricted network environment (with access to the OpenShift Container Platform cluster and the local registry).
The following table provides the software requirements for installing the Db2 Operator in an air-gapped environment:
Software requirements and purpose| Software | Purpose |
|---|---|
| Docker | Container management |
| Podman | Container management |
oc |
Red Hat OpenShift Container Platform administration |
oc ibm-pak |
oc IBM Catalog Management Plug-in for IBM Cloud Paks |
Procedure
To prepare a host for mirroring the images, complete the following steps on your host: