#把每个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 podshttps://k8smeetup.github.io/docs/tasks/access-application-cluster/confi...
#把每个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/
转载于:https://www.cnblogs.com/kevincaptain/p/9987993.html
更多推荐
所有评论(0)