Chapter 3. Configure image mirroring for disconnected environments
If your Openshift Container Platform cluster operates in a disconnected or restricted network environment, configure an ImageDigestMirrorSet custom resource (CR) to mirror container images from the Red Hat registry to your local mirror registry.
Prerequisites
-
You have installed the OpenShift CLI (
oc). -
You have logged in as a user with
cluster-adminprivileges. - You have set up a mirror registry for your disconnected environment. For more information, see Creating a mirror registry.
- You have mirrored the required Distributed Inference with llm-d images to your local registry.
Procedure
Create an
ImageDigestMirrorSetto mirror images fromregistry.redhat.io/rhoaito your mirror registry:$ oc apply -f - <<'EOF' apiVersion: config.openshift.io/v1 kind: ImageDigestMirrorSet metadata: name: rhoai-mirror spec: imageDigestMirrors: - mirrors: - <LOCAL_MIRROR_REGISTRY>/rhoai source: registry.redhat.io/rhoai EOFWait for the machine config pools to update:
$ oc wait mcp master worker --for=condition=Updated=True --timeout=600sNoteOn single-node OpenShift or compact clusters, the
workermachine config pool might not exist. If the command fails, runoc get mcpto list available pools and wait on only the pools present in your cluster.Verify that the cluster pull secret includes credentials for
registry.redhat.io:$ oc get secret pull-secret -n openshift-config \ -o jsonpath='{.data.\.dockerconfigjson}' | base64 -d | jq -r '.auths | keys[]'The output must include
quay.ioandregistry.redhat.io. If either entry is missing, update the pull secret:$ oc get secret pull-secret -n openshift-config \ -o jsonpath='{.data.\.dockerconfigjson}' | base64 -d > /tmp/pull-secret.jsonAdd the missing registry credentials to the
authsblock in/tmp/pull-secret.json, then apply:$ oc set data secret/pull-secret -n openshift-config \ --from-file=.dockerconfigjson=/tmp/pull-secret.jsonWait for the machine config pools to update:
$ oc wait mcp master worker --for=condition=Updated=True --timeout=600s