Configuring a local private registry server
This procedure is only applicable if the mode of installation is offline.
The user must create a private registry server to deploy OpenShift Container Platform in a restricted environment (also termed as Air Gap (disconnected) environment). This registry server runs as a container and serves as the content provider for RHOCP 4.3.x. In order for the registry server to serve content for deployment, you must first mirror all the required content (images) to this registry server.
The private registry can be a VM or a physical server. You must fill all details in the
input_vars.yaml
file before triggering the
ansible-playbook
command, which helps in the creation of the registry. On successful completion of the
ansible-playbook
command, the automation creates the
openshift-install
binary and a text file
mirrorimage.txt
in the
/root
directory on the same server where this script is executed. You must transfer these files to the NPS node in directory
/var/nps/ISO/
.
Red Hat Enterprise Linux 7.x server (this can be a Virtual Machine or a physical server)
The recommended minimum resource requirements are as follows:RAM: 4096 GB
vCPU: 2
Disk: 300 GB ( in
/root
partition)NOTE:125 GB (in
/root
partition ) is sufficient to store deployment images, OpenShift-Samples operator images and Red Hat operators images. As this is a disconnected environment, you may need to mirror images from other operator hubs and application images on this registry server. Therefore, enough storage is required on the node from where this script is executed.
Ansible 2.8 or greater
Download the OpenShift client
oc
binary and pull secret from the Red Hat OpenShift portal. To download pull secret, see Downloading the installation pull secret.Ensure that the node where you will execute the registry script has access to the internet.
Ensure that you have a valid Red Hat subscription credentials with OpenShift entitlements.
Ensure that the hostname of the registry server is FQDN and the entry is updated in the DNS server.
Ensure that no proxy is set for localhost, <Registry_VM_IP>, OAM Network CIDR, and domain name.