【发布时间】:2019-02-07 15:10:42
【问题描述】:
使用 sudo 运行 kubectl get pods:
sudo kubectl get pods
The connection to the server localhost:8080 was refused - did you specify the right host or port?
以普通用户身份运行:
kubectl get pods
No resources found.
【问题讨论】:
-
像这样运行它
kubectl --kubeconfig=/home/admin/.kube/config
标签: kubernetes kubectl