Skip to content

User Installation Guide - Disconnected Installations

Prerequisites

Configuring the Disconnected Mirror Registry

Mirror images used by conformance suite

  1. 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
  1. 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

  1. Append images used by OPCT to the images-to-mirror list:
./opct get images --to-repository ${TARGET_REPO} >> images-to-mirror

Mirror the images

  1. Mirror the images to the disconnected mirror registry:
oc image mirror -a ${PULL_SECRET} -f images-to-mirror

Preparing Your Cluster

For additional details and configuration options, see the User Guide.