Hi All, This was the question asked in CKA Lightening labs. A kubeconfig file ca . . .

surapureddy ajay:
Hi All,
This was the question asked in CKA Lightening labs.
A kubeconfig file called admin.kubeconfig has been created in /root/CKA. There is something wrong with the configuration. Troubleshoot and fix it.

apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJ
    server: <https://172.17.0.6:2379>
  name: kubernetes
contexts:
- context:
    cluster: kubernetes
    user: kubernetes-admin
  name: kubernetes-admin@kubernetes
current-context: kubernetes-admin@kubernetes
kind: Config
preferences: {}
users:
- name: kubernetes-admin
  user:
    client-certificate: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4akNDQWRxZ0F3SUJBZ0lJRDlzTU04VUVUVTB3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhS
    client-key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0NBUUVBelh5eGJURjhXMjFiTHVjU1lhU2VYdTBpODFoc2xGK3BBT2RjS3psay84Rnd0eGhmCkpwUEpOU0RZSDhs

Can someone please help me, what’s the issue.
I’m getting the below error.
error: unable to recognize "admin.kubeconfig": no matches for kind "Config" in version "v1"

Deepak Ladwa:
API server port is wrongly mentioned. Change it to 6443.

server: <https://172.17.0.6:2379>

Mohamed Ayman:
Only correct the api-server port.