https://rancher.com/ logo
Title
h

hundreds-evening-84071

03/08/2023, 6:44 PM
Hello all, On RKE2 cluster... working on vSphere CSI Configuration I created conf file as shown in example here (for CSI vSphere Config Secret): But it is not working. I get error "no Virtual Center hosts defined" makes no sense because there is an entry for VirtualCenter. Should I be following a different example to create the CSI vSphere Config Secret?
a

agreeable-oil-87482

03/08/2023, 7:06 PM
Have you installed the CPI driver?
h

hundreds-evening-84071

03/08/2023, 7:07 PM
yes sir, and no errors in the
rancher-vsphere-cpi-cloud-controller-manager
pod.
a

agreeable-oil-87482

03/08/2023, 7:08 PM
Did you use the rancher UI to install the CPI and CSI drivers?
h

hundreds-evening-84071

03/08/2023, 7:08 PM
Correct, yes
a

agreeable-oil-87482

03/08/2023, 7:09 PM
You shouldn't need to create a secret manually.
Presumably you created a cluster and selected vsphere as the cloud provider or did you set it to external and installed the charts later?
h

hundreds-evening-84071

03/08/2023, 7:11 PM
Yes, you are correct;
a

agreeable-oil-87482

03/08/2023, 7:12 PM
Which method?
h

hundreds-evening-84071

03/08/2023, 7:12 PM
let me clarify bit more... if I enter all the information in the UI (including username/password) then it does work fine, but my username/password is visible in cluster YAML file. so I was thinking to create secret and use that instead
it was set to external and installed the charts later
sorry - I realized what I was doing wrong. please ignore this