Symptoms:
- Attempting to create a Tanzu Kubernetes Grid (TKG) cluster fails in Cloud Director through Container Service Extension.
- The vApp and initial Ephemeral VM for the TKG cluster are created but the first Control Plane node or Worker node VM is never created.
- The Load Balancer for the TKG cluster is not created.
- The network chosen during the TKG cluster creation is not of the Routed Organization VDC Network type and is of another type such as Direct or Isolated.
- The TKG cluster's Events tab in Kubernetes Container Clusters plugin shows LoadBalancerError events with an error of the form:
failed to create load balancer for the cluster[<TKG_CLUSTER_NAME>(<TKG_CLUSTER_ID>)]:[gateway reference should not be nil]
- The Cluster API Provider for VMware Cloud Director (CAPVCD) logs on the Ephemeral VM show an error creating the Load Balancer for the TKG cluster of the form:
ERROR Reconciler error {"controller": "vcdcluster", "controllerGroup": "infrastructure.cluster.x-k8s.io", "controllerKind": "VCDCluster", "VCDCluster": {"name":"<TKG_CLUSTER_NAME>","namespace":"<TKG_CLUSTER_NAME>-ns"}, "namespace": "<TKG_CLUSTER_NAME>-ns", "name": "<TKG_CLUSTER_NAME>", "reconcileID": "<RECONCILE_ID>", "error": "failed to create load balancer for the cluster [<TKG_CLUSTER_NAME>(<TKG_CLUSTER_ID>))]: [gateway reference should not be nil]: gateway reference should not be nil", "errorVerbose": "gateway reference should not be nil\nfailed to create load balancer for the cluster [<TKG_CLUSTER_NAME>(<TKG_CLUSTER_ID>)]: [gateway reference should not be nil]