master-install.sh 401 B

123456789101112131415
  1. sudo cp ./k3s /usr/local/bin/
  2. sudo apt-get update;
  3. sudo apt-get install nfs-common
  4. sudo mkdir -p /var/lib/rancher/k3s/agent/images/
  5. sudo cp ./k3s-airgap-images-amd64.tar /var/lib/rancher/k3s/agent/images/
  6. sudo INSTALL_K3S_SKIP_DOWNLOAD=true ./install.sh
  7. sudo rm -f ./node-token
  8. sudo cp /var/lib/rancher/k3s/server/node-token ./
  9. sudo chmod 777 ./node-token
  10. echo "agent token is: "
  11. cat ./node-token