Deploy Private Docker Registry and Import Docker images

Deploy Private Docker Registry and Import Docker images

  1. Extract and Import the Docker images locally to the master1 node.
    $ mkdir /tmp/import
    $ for f in images/*.gz; do IMG=$(basename "${f}" .gz); gunzip -c "${f}" > /tmp/import/"${IMG}"; done
    $ for f in /tmp/import/*.tar; do ctr -n=k8s.io images import "${f}"; done
  2. Install gv-private-registry helm chart in the master1 node:
    Replace $VERSION with the version that is present in the bundle that has been downloaded. To check all the charts that have been download run ls charts.
    $ helm upgrade --install  gv-private-registry charts/gv-private-registry-$VERSION.tgz --wait \
      --timeout=10m0s \
      --kubeconfig /etc/rancher/k3s/k3s.yaml
  3. Tag and push the docker images to the local private docker registry deployed in the master1 node:
    $ sh scripts/push-docker-images.sh