Preparing a host
If you are in an air-gapped environment, you must be able to connect a host to the internet and the mirror registry for connected mirroring. You can also mirror images to a file system, which can be brought to a restricted environment for disconnected mirroring. For more information on the latest supported operating systems, see Installation documentation for ibm-pak plugin.
To prepare a host, do the following steps:
-
Install Docker or Podman;
a. Use the following commands to install Docker (for example, on Red Hat® Enterprise Linux®):
dnf check-update dnf install dockerb. Use the following command to install Podman:
dnf check-update dnf module install -y container-tools:rhel8You can verify the installation with the following command:
podman --help -
Install the
ocRed Hat® OpenShift® Container Platform CLI tool. -
Download and install the version 1.23.1 of
IBM Catalog Management Plug-in for IBM Cloud Paksfrom the IBM/ibm-pak.-
Use the following command to extract the binary file:
tar -xf oc-ibm_pak-linux-amd64.tar.gz -
Run the following command to move the file to the
/usr/local/bindirectory:mv oc-ibm_pak-linux-amd64 /usr/local/bin/oc-ibm_pak -
Download the plug-in based on the host operating system. Use the following command to confirm that
oc ibm-pak -his installed:oc ibm-pak --help
-
-
Install
oc-mirrorCLI Plug-in with the following commands: Openshift.- Go to the Downloads page of Red Hat Hybrid Cloud Console.
- In the OpenShift disconnected installation toolssection, select the OS type and Architecture type of the OpenShift Client (oc) mirror plugin from the drop-down menus.
- Download and extract the archive by running the following
command:
tar zxvf oc-mirror.tar.gz /bin/mv oc-mirror /usr/local/bin/oc-mirror chmod 755 /usr/local/bin/oc-mirror - Verify the installation with the following commands:
oc mirror help --v1 oc mirror help --v2
-
If you are installing as a non-root user, you must use
sudo. For more information, refer to the Podman or Docker documentation for installing as a non-root user. -
For more information on plug-in commands, see command-help.