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 Images from Installation TGZ

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

  1. 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
  2. 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
  1. Deploy or Create-and-deploy the Image Pull Secret to the vFunction Kubernetes Installation Scripts
  2. 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.

  1. 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
  2. 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
  1. Deploy or Create-and-deploy the Image Pull Secret to the vFunction Kubernetes Installation Scripts
  2. Extract the vFunction Container Images to be scanned
./vfunction-server-for-kubernetes/offline/load-offline-images.sh -e
  1. Verify and scan as needed
  2. Check that everything was pulled correctly
docker images | grep 'vfunction'
  1. 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.

  1. 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
  2. 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
  1. Deploy or Create-and-deploy the Image Pull Secret to the vFunction Kubernetes Installation Scripts
  2. 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