In this section, we will take a look at kubeconfig in kubernetes
You can specify the same using kubectl
We can move these information to a configuration file called kubeconfig. And the specify this file as the kubeconfig option in the command.
$ kubectl get pods --kubeconfig config
$ kubectl config view
$ kubectl config veiw --kubeconfig=my-custom-config
$ kubectl config use-context <context-name>
ex:
$ kubectl config use-context prod-user@production
$ kubectl config -h