Unable to initialize helm (tiller) on newly created GKE cluster

不羁的心 提交于 2020-06-28 07:15:48

问题


I have just created a GKE cluster on Google Cloud platform. I have installed in the cloud console helm :

$ helm version
version.BuildInfo{Version:"v3.0.0", GitCommit:"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6", GitTreeState:"clean", GoVersion:"go1.13.4"}

I have also created the necessary serviceaccount and clusterrolebinding objects:

$ cat helm-rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: tiller
  namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: tiller
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system


$ kubectl apply -f helm-rbac.yaml                                                                    

serviceaccount/tiller created
clusterrolebinding.rbac.authorization.k8s.io/tiller created

However trying to initialise tiller gives me the following error:

$ helm init --service-account tiller --history-max 300
Error: unknown flag: --service-account

Why is that?


回答1:


However trying to initialise tiller gives me the following error:

Error: unknown flag: --service-account

Why is that?

Helm 3 is a major upgrade. The Tiller component is now obsolete.

There is no command helm init therefore also the flag --service-account is removed.

The internal implementation of Helm 3 has changed considerably from Helm 2. The most apparent change is the removal of Tiller.



来源:https://stackoverflow.com/questions/58979901/unable-to-initialize-helm-tiller-on-newly-created-gke-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!