无法在GKE群集上安装Helm

时间:2019-08-05 09:55:07

标签: mongodb kubernetes google-kubernetes-engine gcloud kubernetes-helm

我无法通过gcloud shell将Helm安装到我的一个GKE集群中。

当我跑步时:helm install --name mongo-rs-mongodb-replicaset -f 3-values.yaml stable/mongodb-replicaset --debug这就是我得到的:

[debug] Created tunnel using local port: '39387'

[debug] SERVER: "127.0.0.1:39387"

[debug] Original chart version: ""
[debug] Fetched stable/mongodb-replicaset to /home/idan/.helm/cache/archive/mongodb-replicaset-3.9.6.tgz

[debug] CHART PATH: /home/idan/.helm/cache/archive/mongodb-replicaset-3.9.6.tgz

Error: the server has asked for the client to provide credentials

我的服务帐户设置正确:

kubectl describe serviceaccount tiller --namespace kube-system

Name:                tiller
Namespace:           kube-system
Labels:              <none>
Annotations:         <none>
Image pull secrets:  <none>
Mountable secrets:   tiller-token-vbrrn
Tokens:              tiller-token-vbrrn
Events:              <none>


kubectl describe clusterrolebinding tiller

Name:         tiller
Labels:       <none>
Annotations:  <none>
Role:
  Kind:  ClusterRole
  Name:  cluster-admin
Subjects:
  Kind            Name    Namespace
  ----            ----    ---------
  ServiceAccount  tiller  kube-system

我是我的项目的IAM的所有者,我不确定应该提供哪个凭据-过去从未见过。也尝试使用helm --upgrade对其进行初始化。

2 个答案:

答案 0 :(得分:1)

您设置了rbac吗? 如果没有,请进行设置并运行helm init --service-account tiller --upgrade,它应该可以解决您的问题。

答案 1 :(得分:1)

在我发现所有解决方案都行不通之后,我尝试重新创建集群并运行相同的命令,但该行之有效...

相关问题