- often used command [1][2]
vagrant init # create vagrantfile
vagrant up # start vm
vagrant ssh # access to vm using ssh
vagrant destroy # delete vm
- apply updated vagrantfile to vm [3]
vagrant halt # stop vm
vagrant up --provision
- apply provision shell script to running vm
vagrant provision
- provison specific scirpt [4]
# ex) master.vm.provision "helm", type: "shell", path: "script/helm.sh"
vagrant provision master --provision-with helm
- init vagrant
- set docker
- set kubernetes
- set kubernetes multi nodes cluster
- k8s worker node join automation
- refactor shell script to external bash file