Last active
January 14, 2021 15:38
-
-
Save bgulla/595865a742952a1e8f1ba8d6f92fe497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _ _ _ | |
# | | _____ _____(_) __| | ___ | |
# | |/ _ \ \ /\ / / __| |/ _` |/ _ \ | |
# | | (_) \ V V /\__ \ | (_| | __/ | |
# |_|\___/ \_/\_/ |___/_|\__,_|\___| | |
# | |
# download images | |
wget https://github.com/rancher/rke2/releases/download/v1.18.13%2Brke2r1/rke2-images.linux-amd64.tar.gz | |
# k9s is so necessary | |
wget https://github.com/derailed/k9s/releases/download/v0.24.2/k9s_Linux_x86_64.tar.gz | |
# download helm binary | |
wget https://get.helm.sh/helm-v3.5.0-linux-amd64.tar.gz | |
# download Rancher images | |
wget https://github.com/rancher/rancher/releases/download/v2.5.5/rancher-images.txt | |
wget https://github.com/rancher/rancher/releases/download/v2.5.5/rancher-save-images.sh | |
wget https://github.com/rancher/rancher/releases/download/v2.5.5/rancher-load-images.sh | |
## chmod +x rancher-save-images.sh ; ./rancher-save-images.sh --image-list rancher-images.txt | |
#pull the helm chart | |
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest && helm repo update | |
helm fetch rancher-latest/rancher --version=2.5.5 # -> rancher-2.5.5.tgz | |
# _ _ | |
# __ _(_)_ __ __ _ __ _ _ __ | |__ _____ __ | |
# / _` | | '__/ _` |/ _` | '_ \| '_ \ / _ \ \/ / | |
# | (_| | | | | (_| | (_| | |_) | |_) | (_) > < | |
# \__,_|_|_| \__, |\__,_| .__/|_.__/ \___/_/\_\ | |
# |___/ |_| | |
## airgap | |
## disable firewalld | |
systemctl stop firewalld & systemctl disable firewalld | |
# create rke2 config file | |
mkdir -p /etc/rancher/rke2 | |
echo "selinux:false" > /etc/rancher/rke2/config.yaml | |
# move images | |
mkdir -p /var/lib/rancher/rke2/agent/images/ | |
zcat rke2-images.linux-amd64.tar.gz > rke2-images.linux-amd64.tar | |
cp rke2-images.linux-amd64.tar /var/lib/rancher/rke2/agent/images/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment