Air Gap Installation of single node Rancher

rancher-images.txtThis     file contains a list of images needed to install Rancher,     provision clusters and user Rancher tools.rancher-save-images.shThis     script pulls all the images in the rancher-images.txt from     Docker Hub and saves all of the images as rancher-images.tar.gz.rancher-load-images.shThis     script loads images from the rancher-images.tar.gz file     and pushes them to your private registry.
mirrors:
docker.io:
endpoint:
- "https://mycustomreg.com:5000"
configs:
"mycustomreg:5000":
auth:
username: xxxxxx # this is the registry username
password: xxxxxx # this is the registry password
tls:
cert_file:
/etc/rancher/k3s/cert.pem # path to the cert file used in the registry
key_file:
/etc/rancher/k3s/abc.key # path to the key file used in the registry
ca_file:
/etc/rancher/k3s/ca.pem # path to the ca file used in the registry
version: '3'services:
rancher:
image: <REGISTRY.YOURDOMAIN.COM:PORT>/rancher/rancher:v2.5.5
restart: always
privileged: true
ports:
- "80:80"
- "443:443"
volumes:
- /opt/rancher:/var/lib/rancher
- /home2/harbor/secrets:/etc/rancher/k3s
extra_hosts:
- "<REGISTRY.YOURDOMAIN.COM:IP>"

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store