Skip to content

Instantly share code, notes, and snippets.

@kiranchavala
Created August 26, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiranchavala/71835ec52a2c5020a5e439345b57d744 to your computer and use it in GitHub Desktop.
Save kiranchavala/71835ec52a2c5020a5e439345b57d744 to your computer and use it in GitHub Desktop.
k3s installation
curl -sfL https://get.k3s.io | sh -
k3s kubectl get nodes
The kubeconfig is stored at
cat /etc/rancher/k3s/k3s.yaml
To join other nodes to the cluster
cat /var/lib/rancher/k3s/server/node-token
export K3S_TOKEN=
export K3S_URL=https://<IP Address:6443>
curl -sfL https://get.k3s.io | sh -
Uinstall ks3
/usr/local/bin/k3s-uninstall.sh
For agent
/usr/local/bin/k3s-agent-uninstall.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment