gpt4 book ai didi

kubernetes - 无法在新创建的 GKE 集群上初始化 helm(tiller)

转载 作者:行者123 更新时间:2023-12-02 11:51:54 25 4
gpt4 key购买 nike

我刚刚在谷歌云平台上创建了一个 GKE 集群。我已经在云控制台安装了 helm :

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

我还创建了必要的 serviceaccountclusterrolebinding 对象:

$ 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

但是尝试初始化 tiller 会出现以下错误:

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

这是为什么?

最佳答案

However trying to initialise tiller gives me the following error:

Error: unknown flag: --service-account

Why is that?

Helm 3 is a major upgrade . Tiller 组件现已过时。

没有命令 helm init 因此标志 --service-account 也被删除。

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

关于kubernetes - 无法在新创建的 GKE 集群上初始化 helm(tiller),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58979901/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com