Deployment scenarios
vSphere cloud provider can be configured on IBM® Cloud Private nodes that are on a single vCenter, on multiple data centers, or multiple vCenters.
Ensure that you meet the prerequisites. For more information, see Prerequisites and limitations.
IBM Cloud Private cluster nodes on a single vCenter
For IBM Cloud Private cluster nodes that are in the same datacenter in a single vCenter, you can configure the vSphere cloud provider during IBM Cloud Private installation. You must update <installation_directory>/cluster/config.yaml file, or use a custom configuration file that has the vSphere configuration parameters.
For more information, see Configuring a vSphere Cloud Provider during IBM Cloud Private installation.
Following is a sample configuration of the custom configuration file <installation_directory>/cluster/misc/cloud_provider/vsphere.conf:
[Global]
user = "administrator@vsphere.local"
password = "xxxxxxx"
port = "443"
insecure-flag = "1"
datacenters = "datacenter1"
[VirtualCenter "1.1.1.1"]
[Workspace]
server = "1.1.1.1"
datacenter = "datacenter1"
default-datastore="datastore1"
folder = "kubernetes"
[Disk]
scsicontrollertype = pvscsi
IBM Cloud Private cluster nodes located across multiple data centers on a single vCenter
For IBM Cloud Private cluster nodes that are located across multiple data centers in a single vCenter, you can configure the vSphere Cloud Provider during IBM Cloud Private installation. However, you must use a custom configuration file that has the vSphere configuration parameters.
Note: Ensure that all the IBM Cloud Private cluster nodes have access to shared datastore.
For more information on how to use a custom file for vSphere Cloud Provider configuration, see Use a custom configuration file for vSphere Cloud Provider configuration.
Note: Ensure that you add all the datacenter names in the datacenters parameter.
Following is a sample configuration of the custom configuration file <installation_directory>/cluster/misc/cloud_provider/vsphere.conf:
[Global]
user = "administrator@vsphere.local"
password = "xxxxxxx"
port = "443"
insecure-flag = "1"
datacenters = "datacenter1, datacenter2"
[VirtualCenter "1.1.1.1"]
[Workspace]
server = "1.1.1.1"
datacenter = "datacenter1"
default-datastore="datastore1"
folder = "kubernetes"
[Disk]
scsicontrollertype = pvscsi
IBM Cloud Private cluster nodes located across multiple vCenters
For IBM Cloud Private cluster nodes that are located across multiple data centers in a single vCenter, you can configure the vSphere Cloud Provider during IBM Cloud Private installation. However, you must use a custom configuration file that has the vSphere configuration parameters.
Note: Ensure that all the IBM Cloud Private cluster nodes have access to shared datastore.
For more information on how to use a custom file for vSphere Cloud Provider configuration, see Use a custom configuration file for vSphere Cloud Provider configuration.
Ensure that you add the following information in the custom configuration file:
- Add all the datacenter names in the
datacentersparameter. - Add the
[VirtualCenter "<IP address>"]parameter for all the vCenters that have IBM Cloud Private cluster nodes. - Add the datacenter name in the
datacentersparameter for each vCenter.
Following is a sample configuration of the custom configuration file <installation_directory>/cluster/misc/cloud_provider/vsphere.conf:
[Global]
user = "administrator@vsphere.local"
password = "xxxxxxx"
port = "443"
insecure-flag = "1"
datacenters = "datacenter1, datacenter2"
[VirtualCenter "1.1.1.1"]
datacenters = "datacenter1"
[VirtualCenter "2.2.2.2"]
datacenters = "datacenter2"
[Workspace]
server = "1.1.1.1"
datacenter = "datacenter1"
default-datastore="datastore1"
folder = "kubernetes"
[Disk]
scsicontrollertype = pvscsi