Hi. I have cluster running with cloud-provider=rke2. Can I add vmware CSI to it to add persistent volumes?
c
creamy-pencil-82913
10/28/2022, 7:10 AM
Yes, cloud provider and storage provider are separate. It is also very easy to have multiple CSI drivers deployed to the same cluster since you select the storage class on a per-pvc basis.
c
creamy-tiger-50940
10/28/2022, 7:30 AM
Ok. But how to add only vmware CSI without CPI? Everywhere I see that vsphere CSI needs vsphere CPI. I tried to install vsphere SI from Apps without PI, but It's not working - I can't provision storage.
Even on vsphere csi chart there is note about Prerequisties: Out-of-tree vSphere Cloud Provider Interface (CPI)
I can't install vSphere Cloud Provider Interface (CPI), because it conflcts with rke2 cloud-provider (both are listening on the same port). I see the same problem: https://github.com/rancher/rke2/issues/1863
hmm, that’s an unfortunate requirement on the vsphere side. Most CSI providers don’t also require their CPI.
There’s no good way to change the CPI on an running cluster. The nodes get claimed by the CPI when they join the cluster so you’d basically have to delete and rejoin them all.
c
creamy-tiger-50940
11/08/2022, 1:19 PM
Hi. I managed to reconfigure cluster. I set provider-name: rancher-vsphere' in /etc/rancher/rke2/config.yaml and restarted all servers. Then I installed apps for cpi and csi.