In the following post, we are going to talk on how to mirror the ocp container base images locally first to an .tar file and later upload them to the offline registry on the Bastion Host.
Prerequisites
OCPv4.10.X
Redhat Enterprise Linux/Rocky Linux/Fedora
Downloaded pull-secret.txt file
podman package available to the OS
Step 1. Downloading oc-cli and oc-mirror-cli to the Bastion Host:
Download oc-cli:
Download oc-mirror-cli:
Note: The oc-mirror its Technical Preview on stable-4.10 channel and on stable-4.11 channel its General Available.
Step 2. Creating the redhat-operator-index container
By creating the redhat-operator-index container we can query the available operator versions to download on the channel: stable-4.10.
Step 3. Usage of the redhat-operator-index container api
List a specific operator by filtering on the name:
To download the grpcurl, you will need to download the binary from grpcurl binary release.
Documenting the offline registry api:
In order to dig more information about an specific api: