Deploy Private Docker Registry and Import Docker images
Deploy Private Docker Registry and Import Docker images
- 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
- 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 runls charts
.$ helm upgrade --install gv-private-registry charts/gv-private-registry-$VERSION.tgz --wait \ --timeout=10m0s \ --kubeconfig /etc/rancher/k3s/k3s.yaml
- Tag and push the docker images to the local private docker registry deployed in the
master1
node:$ sh scripts/push-docker-images.sh