This message was deleted.
# general
a
This message was deleted.
c
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
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
Can You see last comment: https://github.com/rancher/rke2/issues/1844#issuecomment-1189204765 Can I change 'cloud-provider' in existing cluster? If yes, how?
c
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
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.