Appendix E. How to configure the cloud provider for multiple vCenter Servers
The release of OpenShift 3.9 (Kubernetes 1.9.0) brought support for multiple vCenter Servers are now supported in the vSphere Cloud Provider.
In the previous release of vSphere Cloud Provider (VCP), the configuration file supported a single vCenter Server listing as such:
vi /etc/origin/cloudprovider/vsphere.conf [Global] user = "email@example.com" password = "password" server = "vcsa65.example.com" port = 443 insecure-flag = 1 datacenter = Datacenter datastore = ose3-vmware-datastore working-dir = /Datacenter/vm/ocp39/ [Disk] scsicontrollertype = pvscsi
In the new configuration file layout, there are some similarities to the previous file. Note, that the
Workspace section shows the endpoint that will be used to create the disk. The
default-datastore entry should be a shared storage that is accessible to BOTH vCenter servers.
In OpenShift 3.11 both formats can be used and work fine.
vi /etc/origin/cloudprovider/vsphere.conf [Global] user = "firstname.lastname@example.org" password = "password" port = 443 insecure-flag = 1 [VirtualCenter "vcsa.example.com"] [VirtualCenter "vcsa-2.example.com"] [Workspace] server = vcsa.example.com default-datastore = ose3-vmware-datastore folder = /Datacenter/vm/ocp311/ datacenter = "Datacenter" [Disk] scsicontrollertype = pvscsi