Getting Kubernetes cluster configuration data
To get the configuration data of a Kubernetes cluster, run the following vinfra command:
# vinfra --vinfra-domain <domain_name> \
--vinfra-project <project_name> \
--vinfra-username <username> \
--vinfra-password <password> \
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: <...>