Vagrant up
Vagrant ssh k3-master
nestat -tnlp #to check the master is up and running
#if you don't see all ports including 6443 is running then run below command
sudo service k3s restart
Login to each node
Vagrant ssh iot-node1 / iot-node2.
Run command on each nodes
k3s agent --server https://[k3-master-ip]:6443 --token ${NODE_TOKEN} &
Where NODE_TOKEN comes from /var/lib/rancher/k3s/server/node-token from k3-master
Vagrant ssh k3-master
k3s kubectl -n kube-system get service kubernetes-dashboard
Dashboard has been exposed on port 3***** (HTTPS). Configure port forwarding on Virutalbox (3*****) Now you can access it from your browser at:https://[k3-master-ip]:3***** To get the token for login
kubectl get secret -n kube-system $(kubectl get serviceaccount kubernetes-dashboard -n kube-system -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 --decode