Management cluster addons in configuring state due to expired management cluster kubeconfig
search cancel

Management cluster addons in configuring state due to expired management cluster kubeconfig

book

Article ID: 434978

calendar_today

Updated On:

Products

VMware Telco Cloud Automation VMware vSphere ESXi VMware Telco Cloud Platform

Issue/Introduction

  • The addon status in the TCA UI displays as "Provisioned", but when verifying via SSH, TCA addons in the Management and workload clusters remain stuck in the "Configuring" state.
  • Running kubectl get tcaclusteraddons -A shows multiple addons (such as istio, systemsettings, and tca-diagnosis-operator) continually in the configuring phase under the relevant namespace.

Environment

TCA 3.1.1

TCP 5

Cause

  • The management cluster addon attempts to use the kubeconfig secret located under the management_cluster_name namespace, which has expired.
  • While a valid, auto-renewing kubeconfig exists in the tkg-system namespace, the addon manager incorrectly references the expired secret in the management cluster's specific namespace.

Resolution

To resolve this issue, apply the following workaround to replace the expired secret with the valid one from the tkg-system namespace:

  1. Access the management cluster via SSH.

  2. Execute the following command, replacing {management_cluster_name} with the actual name of your management cluster:

    kubectl get secret {management_cluster_name}-kubeconfig -n tkg-system -o jsonpath='{.data.value}'
    kubectl patch secret {management_cluster_name}-kubeconfig -n {management_cluster_name} -p "{\"data\":{\"value\":\"$(cat -)\"}}"
    
  3. Verify that the addons successfully transition from the "Configuring" state to the "Provisioned" state.

This issue will be permanently resolved in newer releases of TCA, where the addon manager will natively reference the auto-renewing kubeconfig located in the tkg-system namespace.