GKE 上的头盔安装失败



我是一个完全的GCP新手 - 刚刚创建了一个新帐户。
我已经安装了一个 GKE 集群 - 它是活动的,也下载了 sdk。 我能够使用 kubectl 在 GKE 上部署一个 pod。
安装舵柄和舵手客户端。
当我尝试运行 CLI 命令时从 CLIhelm

命令
>helm install --name testngn ./nginx-test

Error: release testngn failed: namespaces "default" is forbidden: User  
"system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "default"

我已经给了我的用户"所有者"角色 - 所以希望这不是问题。但不确定 CLI 如何识别用户和权限(对我来说是新的(。此外,kubectl -n 标志不适用于 helm (?

大多数文档只是简单地说只做helm init- 但这没有向 Tiller 提供任何权限 - 所以它会失败 - 无法执行任何东西。
使用 rbac-config.yaml 创建具有群集管理员角色的服务帐户。 然后使用此服务帐户掌舵 init 以向 Tiller 提供权限

$ kubectl create -f rbac-config.yaml
serviceaccount "tiller" create
clusterrolebinding "tiller" created
$ helm init --service-account tiller

最新更新