https://rancher.com/ logo
Title
h

hundreds-evening-84071

05/11/2023, 8:59 PM
I have 2 RKE2 v1.25.9 clusters, both are new clusters created from RancherUI (2.7.3) Both have 6 nodes (3xcontrol plane/etcd and 3 workers) Both are RHEL 8.7... On both clusters, after cluster creation, I went into Edit YAML and set
cloud-provider-name: external
However, when I do
kubectl get nodes -o wide
, on one cluster I see both Internal-IP and External-IP populated (in this case both are same which is expected). But on second cluster, I have Internal-IP populated but for External-IP it shows <none>... I am trying to figure out why is this different?
Nevermind, I figured it out... difference was vsphere CPI driver. Cluster that shows External-IP has CPI/CSI drivers installed On second cluster where it was showing <none> it does not have those drivers installed (yet)
c

creamy-pencil-82913

05/11/2023, 9:22 PM
changing the cloud provider after install isn’t really supported, it will probably work but you might run in to a fair bit of oddness
the nodes get a label put on them that indicates what cloud-provider was in use when they joined the cluster, if you switch after the fact the new cloud provider won’t know what to do with the nodes that have the wrong cloud-provider id
h

hundreds-evening-84071

05/11/2023, 9:26 PM
Oh! In this case I had left the default, so went back and edited the YAML...:
I can delete the cluster and recreate it since it is new... and will set the cloud provider to vSphere during creation
c

creamy-pencil-82913

05/11/2023, 9:39 PM
that’s a better choice, if you can
h

hundreds-evening-84071

05/11/2023, 9:40 PM
thanks, I will recreate it.
forgive my ignorance here... In Rancher UI, during cluster creation I set the Cloud provider to vSphere. Now, in Add-on config, if I enter login info, that will be visible to anyone who has cluster owner role correct?
Or, If I set Cloud Provider to External and after cluster is created I can deploy CPI/CSI from Apps. Is that supported method?
c

creamy-pencil-82913

05/11/2023, 10:14 PM
no, you should select the cloud provider when creating the cluster, if it is one of the cloud providers that comes with RKE2
Only if there is no built-in cloud provider would you want to select External and then deploy it manually as an additional manifest
✔️ 1