15.7. Getting Kubernetes cluster configuration data

To get the configuration data of a Kubernetes cluster, run the following vinfra command:

# vinfra --vinfra-domain domain1 \
         --vinfra-project project1 \
         --vinfra-username user1 \
         --vinfra-password 1q2w3e \
         service compute k8saas config <k8s_cluster_name>

Sample output:

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: <...>
    server: https://10.94.129.74:6443
  name: k8s1
contexts:
- context:
    cluster: k8s1
    user: admin
  name: default
current-context: default
kind: Config
preferences: {}
users:
- name: admin
  user:
    client-certificate-data: <...>
    client-key-data: <...>
    token: <...>