我在Google Kubernetes Engine上设置了Kubernetes群集(v1.8.4)。我在本地计算机上正确设置并配置了kubectl
,我可以使用此命令在Kubernetes上成功创建和删除资产。
但是,当我运行kubectl proxy
来查看管理仪表板时,我收到错误,表明与某个不存在的kube系统默认用户建立了连接:
禁止使用configmaps:用户“system:serviceaccount:kube-system:default”无法列出群集范围内的配置映射:未知用户“system:serviceaccount:kube-system:default”
要验证,我已经运行
gcloud container clusters get-credentials <cluster> --zone us-central1-f --project <project>
我的上下文设置正确:
kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* gke_<project>_us-central1-f_<cluster> gke_<project>_us central1-f_<cluster> gke_<project>_us-central1-f_<cluster>
minikube minikube minikube
访问信息中心时,kubectl proxy
不应该使用我的Google域凭据吗?