You can get relevant information about the client-server status by using the following command.
kubectl config view
Now you can update or set k8s context accordingly with the following command.
kubectl config use-context kubernetes
you can do further action on kubeconfig file. the following command will provide you with all necessary information.
kubectl config --help
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…