Kubernetes Helm - Mirror Docker Container Images to Private Docker Registry
Overview
The vFunction Kubernetes Offline Helm Installation TGZ contains all of the vFunction Docker Container Images. After adding an Image Pull Secret to the Installation Scripts, the vFunction Docker Container Images must be added to the Private Docker Registry. Then, the vFunction Kubernetes Offline Helm Installation Scripts can be run.
A number of workflows exist to add the vFunction Docker Container Images to the Private Docker Registry, including:
- List the images from the vFunction Kubernetes Offline Installation TGZ
- Push the images from the vFunction Kubernetes Offline Installation TGZ
- Extract the images locally for scanning, tag them, then push them to the Private Docker Registry
- Using Docker, mirror the images from the RedHat Registry to the Private Docker Registry
List Images from Installation TGZ
- Download the vFunction Server Offline Installation Kubernetes TGZ and move it to the Linux machine with access to the Cluster where the vFunction Server will be installed
- Unpack the vFunction Server Offline Installation Kubernetes TGZ
### Replace VERSION with the actual value, e.g. 4.1.1635
tar -xvf vfunction-server-offline-installation-helm-kubernetes.vVERSION.tgz
- List the Container Images included in the vFunction Installation package to be pushed to the private registry
### Note that the flag below is a lowercase elle and not an uppercase eye
./vfunction-server-for-kubernetes/offline/load-offline-images.sh -l
Push Images from Installation TGZ
NOTE: This workflow uses Docker Engine. You must have Docker installed and running on your machine for this workflow to succeed.
- Download the vFunction Server Offline Installation Kubernetes TGZ and move it to the Linux machine with access to the Cluster where the vFunction Server will be installed
- Unpack the vFunction Server Offline Installation Kubernetes TGZ
### Replace VERSION with the actual value, e.g. 4.1.1635
tar -xvf vfunction-server-offline-installation-helm-kubernetes.vVERSION.tgz
- Deploy or Create-and-deploy the Image Pull Secret to the vFunction Kubernetes Installation Scripts
- Extract, load and push the vFunction Container Images to your Private Registry
### You may need to run this script with sudo in order for the "docker" commands to work
./vfunction-server-for-kubernetes/offline/load-offline-images.sh -p
Extract for Scan then Push Images from Installation TGZ
NOTE: This workflow uses Docker Engine. You must have Docker installed and running on your machine for this workflow to succeed.
- Download the vFunction Server Offline Installation Kubernetes TGZ and move it to the Linux machine with access to the Cluster where the vFunction Server will be installed
- Unpack the vFunction Server Offline Installation Kubernetes TGZ
### Replace VERSION with the actual value, e.g. 4.1.1635
tar -xvf vfunction-server-offline-installation-helm-kubernetes.vVERSION.tgz
- Deploy or Create-and-deploy the Image Pull Secret to the vFunction Kubernetes Installation Scripts
- Extract the vFunction Container Images to be scanned
./vfunction-server-for-kubernetes/offline/load-offline-images.sh -e
- Verify and scan as needed
- Check that everything was pulled correctly
docker images | grep 'vfunction'
- Push the vFunction Container Images to your Private Registry
### You may need to run this script with sudo in order for the "docker" commands to work
./vfunction-server-for-kubernetes/offline/load-offline-images.sh -p
Mirror the Docker Hub Registry to your Private Registry using Docker
NOTE: This workflow uses Docker Engine. You must have Docker installed and running on your machine for this workflow to succeed.
- Download the vFunction Server Offline Installation Kubernetes TGZ and move it to the Linux machine with access to the Cluster where the vFunction Server will be installed
- Unpack the vFunction Server Offline Installation Kubernetes TGZ
### Replace VERSION with the actual value, e.g. 4.1.1635
tar -xvf vfunction-server-offline-installation-helm-kubernetes.vVERSION.tgz
- Deploy or Create-and-deploy the Image Pull Secret to the vFunction Kubernetes Installation Scripts
- Mirror the vFunction Container Images from the Docker Hub Registry to your Private Registry
### You may need to run this script with sudo in order for the "docker" commands to work
./vfunction-server-for-kubernetes/offline/load-offline-images.sh -m