Created
August 26, 2020 08:24
-
-
Save kiranchavala/71835ec52a2c5020a5e439345b57d744 to your computer and use it in GitHub Desktop.
k3s installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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