【问题标题】:helm not able to list releases in AKShelm 无法在 AKS 中列出版本
【发布时间】:2020-01-06 17:24:29
【问题描述】:

我正在使用 AKS 版本 1.14.8 与 helm 版本 2.14.0 和分蘖版本 v2.15.2。 RBAC 在集群上被禁用。

关于为什么会发生此错误的任何提示?

helm list --tiller-namespace dev1 --debug
 ✔  11288  17:06:25 [debug] 使用本地端口创建隧道: '54671'

[调试] 服务器:“127.0.0.1:54671”

错误:服务器上的错误(“”)阻止了请求 成功(获取配置图)

分蘖角色绑定:

kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: tiller-binding
  namespace: dev1
subjects:
- kind: ServiceAccount
  name: tiller
  namespace: dev1
roleRef:
  kind: Role
  name: tiller-manager
  apiGroup: rbac.authorization.k8s.io

分蘖角色:

---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: tiller-manager
  namespace: dev1
rules:
- apiGroups: [ "", "batch", "extensions", "apps", "rbac.authorization.k8s.io"]
  resources: ["*"]
  verbs: ["*"]

tiller 服务帐号:

---
kind: ServiceAccount
apiVersion: v1
metadata:
  name: tiller
  namespace: dev1

【问题讨论】:

    标签: kubernetes kubernetes-helm azure-aks


    【解决方案1】:

    如果禁用 rbac,您不需要角色来让分蘖工作。所以你必须在没有--service-account的情况下安装它

    不知道为什么要创建没有 RBAC 的 kubernetes 集群

    【讨论】:

    • 我现在启用了 rbac,但仍然是同样的问题
    猜你喜欢
    • 2020-01-29
    • 1970-01-01
    • 2021-12-10
    • 2019-03-30
    • 2019-06-19
    • 1970-01-01
    • 2021-11-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多