Created
July 6, 2021 05:00
-
-
Save saiyam1814/6e4c8f92c03d42f0b3637feb57cb6a96 to your computer and use it in GitHub Desktop.
K0s and K3s install
This file contains hidden or 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
sudo curl -sSLf k0s.sh | sudo sh | |
sudo k0s install controller | |
sudo curl -sSLf k0s.sh | sudo sh | |
sudo k0s install controller --enable-worker | |
k0s kubectl get nodes | |
sudo systemctl start k0scontroller | |
sudo systemctl enable k0scontroller | |
sudo k0s kubectl get nodes | |
sudo cp /var/lib/k0s/pki/admin.conf ~/admin.conf | |
export KUBECONFIG=~/admin.conf | |
kubectl get namespaces | |
k0s token create --role=worker | |
sudo k0s worker "long-join-token" | |
=================================== | |
Server - curl -sfL https://get.k3s.io | sh - | |
Get Node Token - /var/lib/rancher/k3s/server/node-token | |
Agent Install - curl -sfL https://get.k3s.io | K3S_URL=https://74.220.22.88:6443 K3S_TOKEN=mynodetoken sh - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment