-
Download and compress bundle on internet connected machine
podman run -it --security-opt label=disable -v ./:/app/bundle quay.io/redhatgov/openshift4_mirror:latest ./openshift_mirror bundle \ --openshift-version 4.6.3 \ --platform aws \ --skip-existing \ # skip downloading content that already exists on disk --skip-catalogs \ # This demo assumes operator catalog upload as day two operation. --pull-secret '{"auths":{"cloud.openshift.com":{"auth":"b3Blb...' # Mind the literals here. Get pull secret from https://cloud.redhat.com/openshift/install/aws/installer-provisioned mkdir ./4.6.3/config curl -L https://gist.githubusercontent.com/afflom/794f360fe47da48ff1cdbcf298430150/raw/0698aecf33ea01b522bfcaddd9fd0d349fb71428/install-config-template.yaml -o ./4.6.3/config-template/install-config.yaml git clone https://github.com/afflom/OCP4.6.x-Helpers.git ./4.6.3/OCP4.6.x-Helpers curl -L https://gist.githubusercontent.com/afflom/794f360fe47da48ff1cdbcf298430150/raw/88824ece3fbb532cea275eefae93c0e98e363dd0/operator-credentials-template.yaml -o ./4.6.3/config-template/operator-credentials-template.yaml tar -zcvf openshift-4-6-3.tar.gz 4.6.3
-
Transfer bundle from internet connected machine to disconnected vpc host
-
Extract bundle on disconnected vpc host
tar -xzxf openshift-4-6-3.tar.gz
-
Create registry cert on disconnected vpc host
export SUBJ="/C=US/ST=Virginia/O=Red Hat/CN=${HOSTNAME}" openssl req -newkey rsa:4096 -nodes -sha256 -keyout registry.key -x509 -days 365 -out registry.crt -subj "$SUBJ"
-
create iam users and Policies
cd ./4.6.3/OCP4.6.x-Helpers/policy-templates chmod +x ../ocp-users.sh ../ocp-users.sh prepPolicies ../ocp-users.sh createUsers cat account_names.txt
-
Using the output from the previous command, identify the new accounts and utilize your preferred method for generating and retrieving associated access ids and keys.
-
Open and update the following file with the key id and key for each respective account.
vi ~/
-
create the RH CoreOS ami
-
start up the registry
oc image serve --dir=$PWD/4.6.3/release/ --tls-crt=registry.crt --tls-key=registry.key
-
Create install config
-
create manifests from install config
-
Delete admin credentials