Workload cluster creation failure in Tanzu Kubernetes Grid Management
search cancel

Workload cluster creation failure in Tanzu Kubernetes Grid Management

book

Article ID: 380681

calendar_today

Updated On:

Products

Tanzu Kubernetes Grid VMware Tanzu Kubernetes Grid VMware Tanzu Kubernetes Grid 1.x VMware Tanzu Kubernetes Grid Management VMware Tanzu Kubernetes Grid Plus VMware Tanzu Kubernetes Grid Plus 1.x

Issue/Introduction

Workload cluster creation in TKGm would fail with the below error with AVI integration setup

 message: 'error reconciling the Cluster topology: failed to create VSphereCluster.infrastructure.cluster.x-k8s.io:
      FieldValueRequired: spec.controlPlaneEndpoint.host: Required value'

 

Cause

When  AVI_CONTROL_PLANE_HA_PROVIDER is set to true then spec.controlPlaneEndpoint.host need not be set.

You would run into this issue if the Management cluster is created with one AVI cloud and workload cluster is setup to use a different AVI cloud by specifying the parameter AVI_CLOUD_NAME 

This can be identified by checking the ako pod logs which will produce the error message that it cannot find the network in the AVI 

 

Resolution

As per https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/2.5/tkg-deploy-mc/config-ref.html#nsx-advanced-load-balancer-1 AVI_CLOUD_NAME can be defined only for the Management cluster which means we cannot use a different cloud for workload cluster.