- Follow the steps here: https://kubernetes.io/docs/getting-started-guides/vsphere/#getting-started-with-the-vsphere-cloud-provider
- When you get to "Step-5", I originally put my vsphere.conf file at /etc/kubernetes, but I ran into this issue: kubernetes/kubeadm#484. I moved it to /etc/kubernetes/pki temporarily, and I was able to get things working.
- My /etc/kubernetes/pki/vsphere.conf file:
[Global]
user = "Kubernetes@vsphere.local"
password = "MYSUPERSECRETPASSWORD"
server = "MYVCENTERSERVER.MYDOMAIN.com"