简体   繁体   中英

helm not able to list releases in AKS

I am using AKS version 1.14.8 with helm version 2.14.0 and tiller version v2.15.2. RBAC is disabled on the cluster.

Any hints on why this error is happening?

helm list --tiller-namespace dev1 --debug
 ✔  11288  17:06:25 [debug] Created tunnel using local port: '54671'

[debug] SERVER: "127.0.0.1:54671"

Error: an error on the server ("") has prevented the request from succeeding (get configmaps)

tiller rolebinding:

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

tiller roles:

---
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 service account:

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

if rbac is disabled you dont need roles for tiller to work. so you have to install it without --service-account

not sure why would you create a kubernetes clusters without RBAC, though

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM