User Installation Guide - Disconnected Installations
Prerequisites
- Disconnected Mirror Image Registry created
- Private cluster installed
- You created a registry on your mirror host
Configuring the Disconnected Mirror Registry
Mirror images used by conformance suite
- Extract the
openshift-tests
executable associated with the version of OpenShift you are installing. Note: The pull secret must contain both your OpenShift pull secret as well as credentials for the disconnected mirror registry.
PULL_SECRET=/path/to/pull-secret
OPENSHIFT_TESTS_IMAGE=$(oc get is -n openshift tests -o=jsonpath='{.spec.tags[0].from.name}')
oc image extract -a ${PULL_SECRET} "${OPENSHIFT_TESTS_IMAGE}" --file="/usr/bin/openshift-tests"
chmod +x openshift-tests
- Extract the images and the location to where they are to be mirrored from the
openshift-tests
executable.
TARGET_REPO=target-registry.net/opct
./openshift-tests images --to-repository ${TARGET_REPO} > images-to-mirror
Mirror images used by test environment
- Append images used by OPCT to the
images-to-mirror
list:
./opct get images --to-repository ${TARGET_REPO} >> images-to-mirror
Mirror the images
- Mirror the images to the disconnected mirror registry:
oc image mirror -a ${PULL_SECRET} -f images-to-mirror
Preparing Your Cluster
- The Insights operator must be disabled prior to running tests. See Disabling insights operator
- The Image Registry Operator must be configured and available
For additional details and configuration options, see the User Guide.