Become root.
sudo su
        
        Install k3sup.
curl -sLS https://get.k3sup.dev | sh 
        
        Become regular user.
exit
        
        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