Error: Cluster Creation Failed (OR) No Error, the task doesn't complete+ echo 'Waiting for kubeconfig to be available ... 'Waiting for kubeconfig to be available ...Error: "ClusterName-kubeconfig" not found in namespace "NamespaceName": secrets "<cluster_name>-kubeconfig" not foundConnecting to [VMware_Cloud_Director_URL]
failed to authenticate using refresh token
panic: error logging into VCD: [unable to get swagger client from secrets: [unable to get bearer token from secrets: [failedset authorization header: [Post "<VMware_Cloud_Director_URL>": dial tcp xx. xx. xx. xx:xxx: connect: connection timed out]
[error occurred during the execution of cluster creation script for [<cluster-name>(urn:vcloud: entity: vmware: capvcdCluster:########-####-####-####-############)]: [error while bootstrapping the machine[<cluster-name>/EPHEMERAL-TEMP-VM]; timeout for post customization phase[guestinfo.cloudinit.target.cluster.get.kubeconfig.status]; this usually means that the Avi Load-Balancer is not gettingcreated; check if virtual service for the cluster is created, if not, please check your Avi configuration]]The deployment process requires the Ephemeral bootstrap VM to authenticate with the VMware Cloud Director API to create the kubeconfig secret. If the VM cannot reach the VCD public API endpoint, the secret cannot be created, causing the deployment to time out.
To resolve this issue, restore network connectivity between the Ephemeral bootstrap VM and the VCD public API endpoint. The Ephemeral VM requires outbound HTTPS (Port 443) access to the VCD public FQDN.
Here is the sequence of steps to diagnose a network issue between the Ephemeral VM and VCD.
Network > Edge gateway > Load Balancer > Virtual Services.