https://rancher.com/ logo
Title
h

hundreds-evening-84071

03/06/2023, 3:00 PM
Hello all, I created RKE2 cluster from Rancher UI (2.6.x). This was done several months ago and cluster is working fine. Now, I need to add vSphere storage to this RKE2 cluster so need to deploy vSphere CPI/CSI from Apps. However, I am facing the issue discussed here: https://github.com/rancher/rke2/issues/1844 From my cluster:
# netstat -tulpn | grep LISTEN | grep 10258
tcp        0      0 127.0.0.1:10258         0.0.0.0:*               LISTEN      4542/cloud-controll
But, I am unsure where in the Rancher UI do I need to set these options:
cloud-provider-name: none
disable-cloud-controller: true
OR should I set this instead (where):
cloud-provider-name: rancher-vsphere
h

hallowed-breakfast-56871

03/06/2023, 8:29 PM
Set the former in your config.yaml. I would also suggest looking at the upstream vSphere CSI / CPI
h

hundreds-evening-84071

03/06/2023, 8:34 PM
Thanks; so that is under /etc/rancher/rke2 directory? I do not have config.yaml there but I am assuming I can create it? And for 3-node HA cluster should I create that file across all 3 control plane/etcd nodes and restart server service (my guess)?
h

hallowed-breakfast-56871

03/06/2023, 8:36 PM
How did you provision your master nodes? Your nodes should have
➜ /etc/rancher/rke2/config.yaml
, the file should be the same across all masters.
Best check what config your nodes are using, probably via something like
systemd
or such if Ubuntu / debian nodes.
h

hundreds-evening-84071

03/06/2023, 8:37 PM
via Rancher UI... I do have this file:
/etc/rancher/rke2/config.yaml.d/50-rancher.yaml
h

hallowed-breakfast-56871

03/06/2023, 8:38 PM
I see. I don't use the UI for anything RKE2. Yes, that file will likely be what you need. Check its content and add the lines you need and restart each node one by one.
h

hundreds-evening-84071

03/06/2023, 8:39 PM
thanks!
h

hallowed-breakfast-56871

03/06/2023, 8:39 PM
No worries. 🙂
h

hundreds-evening-84071

03/06/2023, 9:06 PM
well, that didn't work... after making changes to
/etc/rancher/rke2/config.yaml.d/50-rancher.yaml
file, I restart rke2-server service and my changes are undone...
h

hallowed-breakfast-56871

03/06/2023, 9:07 PM
Then I suggest editing within the rancher cluster webUI
h

hundreds-evening-84071

03/06/2023, 9:07 PM
yep, was thinking the same thing
h

hallowed-breakfast-56871

03/06/2023, 9:07 PM
I think I still have a dev deployment of it around here somewhere... let me try look.
To edit your cluster, open the Global view, make sure the Clusters tab is selected, and then select Ellipsis (…) > Edit for the cluster that you want to edit. The options and settings available for an existing cluster change based on the method that you used to provision it.