Install k3sup

Become root.

sudo su

Install k3sup.

curl -sLS | sh 

Become regular user.


Get Kubernetes config (replacing MASTER_IP with the IP address of the master).

k3sup install --ip MASTER_IP --user pi --skip-install

Copy kubeconfig to ~/.kube

cp kubeconfig ~/.kube/config.k3s

Set KUBECONFIG environment variable.

export KUBECONFIG=~/.kube/config.k3s

Verify it works.

kubectl get nodes

Posted February 11th, 2020