ansible-vbox-vagrant-kubernetes icon indicating copy to clipboard operation
ansible-vbox-vagrant-kubernetes copied to clipboard

copy kubectl to control node & normalize VM names

Open J7a4s0m5ine opened this issue 2 years ago • 1 comments

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

J7a4s0m5ine avatar Jan 29 '23 20:01 J7a4s0m5ine

Added a small inclusion to normalize the VM names for virtualbox, otherwise it appends the foldername to the VM

J7a4s0m5ine avatar Jan 29 '23 20:01 J7a4s0m5ine