kubectl切换kubernetes多集群
kubectl切换kubernetes多集群
将多config
文件合并
KUBECONFIG=file1:file2:file3 kubectl config view --merge --flatten > ~/.kube/all-config
export KUBECONFIG=~/.kube/all-config
查看contexts
候选列表
kubectl config get-contexts
切换contexts
kubectl config use-context {your-contexts}