Continental Innovates with Rancher and Kubernetes
Kubernetes is moving away from maintaining cloud providers in-tree. vSphere has an out-of-tree cloud provider that can be used by installing the vSphere cloud provider and cloud storage plugins.
This page covers how to install the Cloud Provider Interface (CPI) and Cloud Storage Interface (CSI) plugins after bringing up a cluster.
The vSphere version must be 7.0u1 or higher.
The Kubernetes version must be 1.19 or higher.
Using the vSphere out-of-tree cloud provider requires Linux nodes and is not supported on Windows.
The Cloud Provider Interface (CPI) should be installed first before installing the Cloud Storage Interface (CSI).
vSphere CPI initializes all nodes with ProviderID which is needed by the vSphere CSI driver. Check if all nodes are initialized with the ProviderID before installing CSI driver with the following command:
kubectl describe nodes | grep "ProviderID"
The CSI chart by default creates a storageClass.
If that option was not selected while launching the chart, create a storageClass with the csi.vsphere.vmware.com as the provisioner.
All volumes provisioned using this StorageClass will get provisioned by the CSI driver.