End-to-end mirroring images of IBM Fusion HCI System and its services to the enterprise registry
If you are planing a disconnected or offline installation, then you must mirror images to your enterprise registry. You can use this procedure to complete an end-to-end mirroring of IBM Fusion HCI System and all its services. Otherwise, you can mirror them individually per your requirement.
Before you begin
- Before you mirror, go through the prerequisites. See Mirroring prerequisites.
- Configure Common Environment Variables:Define the following environment variables for your target container registry. These values will be used in each of the subsequent steps to mirror all the related components.
export LOCAL_SECRET_JSON="<relative path to pull-secret.json>" export LOCAL_ISF_REGISTRY="<Your container registry host>:<port>" export LOCAL_ISF_REPOSITORY="<Your image path>" export TARGET_PATH="$LOCAL_ISF_REGISTRY/$LOCAL_ISF_REPOSITORY"
LOCAL_ISF_REGISTRY is your target container registry.
LOCAL_ISF_REPOSITORY is the image path in which you want to mirror the images. You can choose your own repository paths. For example, hci-2.9.0/isf or hci-2.9.0. See the following sample values:export LOCAL_SECRET_JSON="/home/mirror/pull-secret.json" export LOCAL_ISF_REGISTRY="registryhost.com:443" export LOCAL_ISF_REPOSITORY="mirror-all-fusion-2.9.x" export TARGET_PATH="$LOCAL_ISF_REGISTRY/$LOCAL_ISF_REPOSITORY"
- Define the following environment variables related to Fusion Data Foundation and related OpenShift® dependencies. The version of Fusion Data Foundation installed is based on the OpenShift version and it gets mirrored along
with the other OpenShift dependencies.
export OCP_VERSION=<your OCP version in X.Y format> export OCP_FULL_VERSION=<your OCP version in X.Y.Z format> export PRODUCT_REPO="openshift-release-dev" export RELEASE_NAME="ocp-release" export OCP_RELEASE_IMAGE="quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_FULL_VERSION}-x86_64"
About this task
- Run all commands as root user.
- In the commands, replace
<your enterprise registry>
with your enterprise registry and its corresponding pull-secret. - High level tasks to complete this procedure.
- Install
OC
CLI andibm-pak
plugin. For steps to install, see Mirroring prerequisites. - Set common variables used by all subsequent mirroring steps, such as the target registry and target registry location.
- Mirror Fusion Data Foundation and related OpenShift dependencies. For steps to mirror, see
Fusion Data Foundation.
- Set environment variables specific for mirroring Fusion Data Foundation and related OpenShift dependencies.
- Create config files needed to mirror.
- Run
oc-mirror
on the created files
- Mirror IBM Fusion and related services (Backup & Restore and Data Cataloging). For steps, see Procedure.
- Set environment variables necessary for mirroring IBM Fusion and related services
- Run oc ibm-pak steps to generate the files need to mirror
oc-mirror
on the generated files
- If you plan to use Global Data Platform storage, then mirror IBM Storage Scale images. For the procedure to mirror images, see Mirroring IBM Storage Scale images.
- Install
- For the individual procedures, see the following topics:
- Mirror Red Hat® OpenShift Container Platform release images. See Mirroring OpenShift Container Platform release images to enterprise registry.
- Mirror images for Red Hat operator. See Mirroring Red Hat operator images to enterprise registry.
- IBM Fusion HCI System images. See Mirroring IBM Fusion HCI images
- Mirror Global Data Platform images, see Mirroring IBM Storage Scale images.
- Mirror Fusion Data Foundation images, see Fusion Data Foundation images.
- Backup & Restore images. See Mirroring Backup & Restore images.
- Data Cataloging images. See Mirroring Data Cataloging images