OpenShift Operator - Using Image Pull Secrets
Overview
vFunction provides an “air gapped” (offline) Installation Package for installing the vFunction OpenShift Operator in a restricted OpenShift Cluster.
Running the vFunction Operator in a restricted Cluster requires that all Docker Images (the vFunction Operator and the vFunction Server Containers) reside in a Private Docker Registry that is accessible from the Cluster. To grant access to this Registry, the installation also requires the deployment of a related Image Pull Secret. This Image Pull Secret should be deployed in advance of running the Installation Script to the same Namespace where the vFunction Operator will run.
The vFunction OpenShift Offline Installation package contains all required Docker Images as well as utility scripts. These utility script will migrate the Docker Images to the Private Docker Registry and can, if needed, create an Image Pull Secret in the Namespace.
Deploy an existing Image Pull Secret
- Download the vFunction Server Offline Installation OpenShift TGZ and move it to the Linux machine with access to the Cluster where the vFunction Operator will be installed
- Unpack the vFunction Server Offline Installation OpenShift TGZ
### Replace VERSION with the actual value
tar xvf vfunction-server-offline-installation-openshift.vVERSION.tgz - Add the CUSTOM_REPO and CUSTOM_IMAGE_PULL_SECRET to the relevant locations within the vFunction OpenShift Installation Scripts
### Replace CUSTOM_REPO and CUSTOM_IMAGE_PULL_SECRET with the actual value
vfunction-server-for-openshift/offline/init.sh -r CUSTOM_REPO -s CUSTOM_IMAGE_PULL_SECRET
Create and deploy a new Image Pull Secret
- Download the vFunction Server Offline Installation OpenShift TGZ and move it to the Linux machine with access to the Cluster where the vFunction Operator will be installed
- Unpack the vFunction Server Offline Installation OpenShift TGZ
### Replace VERSION with the actual value
tar xvf vfunction-server-offline-installation-openshift.vVERSION.tgz - Create the Image Pull Secret in the Namespace and add it to the relevant locations within the vFunction OpenShift Installation Scripts
### Replace CUSTOM_REPO, REGISTRY_USERNAME, REGISTYR_PASSWORD, USER_EMAIL and NAMESPACE with the actual value
vfunction-server-for-openshift/offline/init.sh -r CUSTOM_REPO -c -u REGISTRY_USERNAME -p REGISTRY_PASSWORD -e USER_EMAIL -n NAMESPACE