When deploying Kubernetes clusters in vSphere using the capv-controller in DKP, some users have encountered that the controller is not able to determine which network is the one the user wants to use because there are more than one Network with the same name, and the following error is found:
Message: error getting network specs for "infrastructure.cluster.x-k8s.io/v1beta1,
Kind=VSphereVM default/dkp2-solstice-control-plane-ppbj9": unable to find network
"EXCAB_K8_VLAN_657": path 'EXCAB_K8_VLAN_657' resolves to multiple networks
when the the user describe the machine object:
kubectl describe machine <CLUSTER_NAME>-control-plane-XXXXX
To fix the issue, the operator must be more specific on the path for the network by either using the govc command (see example below) or asking the vSphere administrator:
govc find -type n
/dc1/network/Public
/dc1/network/Airgapped
/dc1/network/VMs