ansible-vbox-vagrant-kubernetes
ansible-vbox-vagrant-kubernetes copied to clipboard
copy kubectl to control node & normalize VM names
At the end of master node creation, copy the kubectl file to local files (control node).
I understand this is a part of another tutorial , using the scp command scp -P 2222 [email protected]:/home/vagrant/.kube/config ~/.kube/config
but for an all inclusive vagrant-ansible script this is useful and needed.
Also, the scp command in the tutorial is incorrect, it should have the master-node's IP 192.168.50.11
instead of localhost 127.0.0.1
Added a small inclusion to normalize the VM names for virtualbox, otherwise it appends the foldername to the VM