Skip to content

Instantly share code, notes, and snippets.

@dyipon
Last active September 18, 2020 12:26
Show Gist options
  • Save dyipon/940b075d2bb04e1607f95308a99a26a2 to your computer and use it in GitHub Desktop.
Save dyipon/940b075d2bb04e1607f95308a99a26a2 to your computer and use it in GitHub Desktop.

master:

curl -sfL https://get.k3s.io | sh -
cat /var/lib/rancher/k3s/server/node-token

nodes:

k3s_url="https://masterip:6443"
k3s_token="mastertoken from node-token file"
curl -sfL https://get.k3s.io | K3S_URL=${k3s_url} K3S_TOKEN=${k3s_token} sh -

/usr/local/bin/k3s-uninstall.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment