agent-install.sh 538 B

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