You can access Kubernetes clusters from your local system by downloading the kubeconfig file and using it in a Kubernetes client (kubectl). This file contains the endpoint IP address of the server and the token for establishing a REST connection between VMware Telco Cloud Automation and the Kubernetes cluster.

Prerequisites

  1. Ensure that Kubernetes CLI Tool (kubectl) is installed on your local system.

Procedure

  1. Log in to the VMware Telco Cloud Automation web interface.
  2. Navigate to Infrastructure > Virtual Infrastructure and select the VIM.
  3. Click the menu and select Download Kube Config.
    This action downloads the kubeconfig.yaml file to your local system.
  4. Use kubectl to interact with the cluster using the downloaded kubeconfig.yamlfile.
    The following is an example for listing pods:
    kubectl --kubeconfig ./kubeconfig.yaml get pods

Results

You can now perform cluster operations based on your user privileges.

Example: Sample kubeconfig.yml file

#Token ID: <token_id>
#Username: <username@domain>
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: <certificate>
    server: https://<ip.address>:8500
  name: target
contexts:
- context:
    cluster: target
    user: target
  name: target
current-context: target
kind: Config
preferences: {}
users:
- name: target
  user:
    token: VIM_<token>