【发布时间】:2018-07-11 10:29:20
【问题描述】:
我在 Google Kubernetes Engine 上安装了一个集群。
然后,我创建了命名空间“staging”
$ kubectl get namespaces
default Active 26m
kube-public Active 26m
kube-system Active 26m
staging Active 20m
然后,我切换到暂存命名空间中操作
$ kubectl config use-context staging
$ kubectl config current-context
staging
然后,我在暂存命名空间上使用 helm 安装了 postgresql
helm install --name staging stable/postgresql
但我得到了:
错误:发布暂存失败:命名空间“staging”被禁止:用户“system:serviceaccount:kube-system:default”无法在命名空间“staging”中获取命名空间:未知用户“system:serviceaccount:kube-system:default "
这是什么意思..??如何让它工作..??
谢谢你..
【问题讨论】:
-
你能用
kubectl config get-contexts这个信息更新你的帖子吗 -
您的分蘖 pod 没有获取命名空间的权限。您需要更新您在工作舱中使用的角色
标签: kubernetes kubernetes-helm