user000000:
Hello there, how do we resolve
Practice Test: https://uklabs.kodekloud.com/topic/practice-test-kubeconfig-2/ Lesson 6, Topic 3 ?
official document said, we set $KUBECONFIG by expected config file.
https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
And I can call /root/mykube-config using ‘kubectl config view’ command.
But this was still wrong answer.
Malayamanas Panda:
The question expects to look for specific changes in default config file path, that kubectl looks for. Setting a file path in $KUBECONFIG , is another way to set , but that is NOT default file path that kubectl looks into , without giving or setting any additional parameters .
Mohamed Ayman:
Try those commands
$ mv .kube/config .kube/config.bak
$ cp /root/my-kube-config .kube/config
user000000:
Thank you for answering Malayamanas and MAyman.
I will try MAyman’s way after that.
user000000:
Thank you MAyman, I can proceed this question.