Cluster information:
Kubernetes version: v1.30.9
Cloud being used: on prime
Installation method: helm chart on rancher
Host OS: Ubuntu 20.04
CNI and version: Canal (Calico v3.29.1, Flannel v0.26.3)
CRI and version: v1.5.2 (package: 1.5.2-0ubuntu1~20.04.2)
After installed CPI, got errors on the cpi pod:
kubectl logs -n kube-system rancher-vsphere-cpi-cloud-controller-manager-nzk4n
I0603 14:55:29.795242 1 node_controller.go:425] Initializing node lchu-ctif-xkm3.autodatacorp.org with cloud provider
I0603 14:55:29.795343 1 search.go:76] WhichVCandDCByNodeID nodeID: lchu-ctif-xkm3.autodatacorp.org
E0603 14:55:29.802416 1 datacenter.go:107] Unable to find VM by DNS Name. VM DNS Name: lchu-ctif-xkm3.autodatacorp.org
E0603 14:55:29.802431 1 search.go:181] Error while looking for vm=lchu-ctif-xkm3.autodatacorp.org(byName) in vc=lops-prif-vcsa1.autodatacorp.org and datacenter=London: No VM found
on control nodes, the following added in /etc/rancher/rke2/config.yaml
…
disable-cloud-controller: true
cloud-provider-name: external
The above config works on another cluster. but failed on this one.