Manage Kubernetes configuration (kubeconfig) files for accessing clusters via
kubectlor the Kubernetes API. By default, the Kubernetes will get its configuration from${HOME}/.kube/config. See also:kubectx,kubens. More information: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#config.
kubectl config get-contexts
kubectl config get-clusters|get-contexts|get-users --kubeconfig path/to/kubeconfig.yaml
kubectl config current-context
kubectl config use|use-context context_name
kubectl config delete-cluster|delete-context|delete-user cluster|context|user
export KUBECONFIG="$HOME.kube/config:path/to/custom/kubeconfig.yaml" kubectl config get-contexts