在 AWS EKS 上启动并运行我的集群后,我发现运行 helm init
时出现问题并出现以下错误:
$ helm init --service-account tiller --upgrade
Error: error installing: deployments.extensions is forbidden: User "system:anonymous" cannot create deployments.extensions in the namespace "kube-system"
kubectl
正常工作(对象检索、创建和集群管理),通过在连接时运行 heptio-authenticator-aws
正确验证和授权(使用 kubectl 配置中的 exec
部分。
为了为 helm 准备集群,我创建了 helm 中指定的服务帐户和角色绑定(bind) docs .
我听说有人在 EKS 上运行 helm,我猜他们通过硬编码 token 跳过了 kubectl 配置的 exec
部分......我想避免这种情况!
关于如何解决这个问题的任何想法?我的猜测是和helm不能正常执行heptio-authenticator-aws
有关
最佳答案
出现此错误时我正在运行 helm
版本 2.8.2,升级到 v2.9.1 修复了此问题!
关于amazon-web-services - AWS EKS 上的 Helm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51152439/