Tanzu Kubernetes Grid (TKG) Guest Cluster worker node stuck in Provisioned/Provisioning phase due to missing VLAN configuration on ESXi host
search cancel

Tanzu Kubernetes Grid (TKG) Guest Cluster worker node stuck in Provisioned/Provisioning phase due to missing VLAN configuration on ESXi host

book

Article ID: 419548

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service VMware vSphere ESXi

Issue/Introduction

In a VMware vSphere Kubernetes Service environment, a Guest Cluster status displays as Not Ready or False. While checking the Machine and VirtualMachine CRD statuses via kubectl get ma,vm -A -o wide, one or more worker nodes remain stuck in the Provisioned or Provisioning phase and fail to transition to Running

vmop pod log error shows "msg"="Failed to customize or boot virtual machine" "error"="timeout waiting for IP address assignment on network interface"
"msg"="Reconcile VirtualMachine error" "err"="failed to wait for IP address: context deadline exceeded"

Environment

VMware vSphere Kubernetes Service

Cause

When a new ESXi host is added to a vSphere cluster or a new port group is created, the required Workload/Tanzu VLAN network configuration was omitted on the newly added host's Distributed Switch or Virtual Switch uplinks. Without proper network connectivity, the newly deployed worker node VM cannot acquire an IP/gateway connection to complete initialization and join the Kubernetes cluster.

Resolution

  1. To resolve this issue, ensure the Workload VLAN is correctly configured across all ESXi hosts in the cluster:

    1. Verify Node & VM Status:

      Log in to the Supervisor Cluster via kubectl and check the Machine and Virtual Machine CRD status:

      Bash
       
      kubectl get ma,vm -A -o wide
      

      Identify any worker node stuck in Provisioned or Provisioning phase without an assigned IP address or running status.

    2. Check ESXi Host Network Configuration:

      • Log in to the vSphere Client.

      • Navigate to Inventory > Hosts and Clusters and select the newly added or suspected ESXi host.

      • Go to Configure > Networking > Virtual switches.

      • Verify that the Workload/Tanzu VLAN ID and port group are present on the host's Virtual Switch / VDS and assigned to the correct physical uplinks.

    3. Verify Host Gateway Connectivity:

      Ensure the newly added ESXi host can ping and route traffic through the Workload network gateway.

    4. Reconcile Stuck Worker Node:

      Once the missing VLAN configuration is applied to the ESXi host uplinks:

      • The pending worker node VM should automatically establish network connectivity, complete initialization, and transition to Running.

      • If the node remains stuck, delete the affected Machine object or update the deployment replica count to trigger a clean re-provisioning of the worker node VM:

        Bash
         
        kubectl delete machine <stuck-machine-name> -n <namespace>
        
      • Verify that all worker nodes transition to Running and the cluster status reports Ready.