link: https://blog.devops.dev/how-to-setup-kubernetes-cluster-with-vagrant-e2c808795840
$ brew install --cask vagrant virtualbox
Update the infrastructure/settings.yaml
shared_folders:
- host_path: /Users/ylhong/workspace/vagrant/kubernetes/app
vm_path: /home/vagrant/workspace/app
$ cd infrastructure/
$ vagrant up
$ vagrant ssh master
$ kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
master-node Ready control-plane 15d v1.26.1 10.0.0.10 <none> Ubuntu 22.04.2 LTS 5.15.0-67-generic cri-o://1.26.4
worker-node01 Ready worker 15d v1.26.1 10.0.0.11 <none> Ubuntu 22.04.2 LTS 5.15.0-67-generic cri-o://1.26.4
worker-node02 Ready worker 15d v1.26.1 10.0.0.12 <none> Ubuntu 22.04.2 LTS 5.15.0-67-generic cri-o://1.26.4