You can run kubectl from the host WITHOUT moving the kubeconfig from the vagrant guest machine to the host:

Do you like it? You will like the next tips more

By now, the following command will run smoothly:

Forgot to mention that you need to add the following config to your Vagrantfile

--

--

Software engineer, Cloud Architect, 5/5 AWS|GCP|PSM Certified, Owner of kubernetes.tn

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abdennour Toumi

Abdennour Toumi

Software engineer, Cloud Architect, 5/5 AWS|GCP|PSM Certified, Owner of kubernetes.tn