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
- Ensure that Kubernetes CLI Tool (kubectl) is installed on your local system.
Procedure
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>