I created a K8S cluster on AWS with kops.
helm init to install tiller in the cluster.
helm list to see if it worked.
I got this:
Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" \
cannot list configmaps in the namespace "kube-system"
That sucked. And google proved … reluctant. What I could figure out is:
- kops sets up the cluster with RBAC enabled (which is good)
- helm (well, tiller) uses a standard role for doing things (which might be ok, at least it was with my stackpoint cluster), but in that case (for whatever reason) it did not have sufficient privileges
- so we need to prepare some cluster admin roles for helm to use
Just do exactly as it says in the helm docs 🙂 :
- apply the RBAC yaml file which creates the
kube-system/tillerservice account, and binds this to the
- install helm with:
helm init -service-account tiller
Is that secure? Not so much. With helm you can still do anything to the cluster at all. I might get to this in a later post.