#把每个k8s集群的json配置文件放到/root/.kube/目录下,改为不同名字,通过--kubeconfig实现不同集群操作
kubectl --kubeconfig=/root/.kube/myconfig get pods
https://k8smeetup.github.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
#把每个k8s集群的json配置文件放到/root/.kube/目录下,改为不同名字,通过--kubeconfig实现不同集群操作
kubectl --kubeconfig=/root/.kube/myconfig get pods
https://k8smeetup.github.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/