Get Started and Create a VM with:
Install k3sup:
$ curl -sLSf https://get.k3sup.dev | sh
Install k3s to the master:
$ k3sup install --ip $(multipass info k3s-master | grep 'IPv4' | awk '{print $2}') --user multipass --ssh-key ~/.ssh/multipass
Set your config in place:
$ export KUBECONFIG=/Users/ruan/workspace/multipass-k3s/kubeconfig
and interact with kubernetes:
$ kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
k3s-master Ready master 17s v1.16.3-k3s.2 192.168.64.3 <none> Ubuntu 18.04.3 LTS 4.15.0-72-generic containerd://1.3.0-k3s.5
after 6 years still working with minimal change.
I would cahnge "bionic" to "lts" and the default username is "ubuntu"
Also, the brew install borked on me a few times, installing with the .pkg from the canonical site worked for me.
Thanks!