- sudo cp ./k3s /usr/local/bin/
- sudo apt-get update;
- sudo apt-get install nfs-common
- read -p "input master token: " input;
- token=`echo $input`;
- read -p "input master endpoint: " input;
- master=`echo $input | tr '[A-Z]' '[a-z]'`;
- read -p "input node name: " input;
- nodename=`echo $input | tr '[A-Z]' '[a-z]'`;
- sudo mkdir -p /var/lib/rancher/k3s/agent/images/
- sudo cp ./k3s-airgap-images-amd64.tar /var/lib/rancher/k3s/agent/images/
- sudo INSTALL_K3S_SKIP_DOWNLOAD=true K3S_TOKEN=$token K3S_URL=$master K3S_NODE_NAME=$nodename ./install.sh
|