Missing Contexts for Management clusters
search cancel

Missing Contexts for Management clusters

book

Article ID: 379863

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

Contexts for the Clusters in Telco cloud are missing

Environment

2.2

2.3

Cause

kubeconfig is corrupted

Resolution

  1. SSH into the TCACP

    cp /root/.kube/config /root/.kube/config.backup-$(date +%s) && cp /home/admin/.kube/config /root/.kube/config && curl -s http://127.0.0.1:8888/api/v1/managementclusters | jq -r '.[].id' | xargs -I {} bash -c 'KUBECONFIG=/opt/vmware/k8s-bootstrapper/{}/kubeconfig:/root/.kube/config kubectl config view --flatten > /tmp/config && mv /tmp/config /root/.kube/config'