Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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