Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster autoscaler addon cannot list statefulsets.apps at the cluster scope #3363

Closed
johanhubens opened this issue Sep 11, 2017 · 1 comment · Fixed by #3364
Closed

Cluster autoscaler addon cannot list statefulsets.apps at the cluster scope #3363

johanhubens opened this issue Sep 11, 2017 · 1 comment · Fixed by #3364

Comments

@johanhubens
Copy link
Contributor

After deploying the addon https://github.com/kubernetes/kops/blob/master/addons/cluster-autoscaler/v1.6.0.yaml to the cluster, the cluster autoscaler controller keeps logging the following:

E0911 09:07:02.607614       1 reflector.go:201] k8s.io/autoscaler/cluster-autoscaler/vendor/k8s.io/kubernetes/pkg/client/informers/informers_generated/externalversions/factory.go:72: Failed to list *v1beta1.StatefulSet: User "system:serviceaccount:kube-system:cluster-autoscaler" cannot list statefulsets.apps at the cluster scope. (get statefulsets.apps)

The cluster role cluster-autoscaler specified in the yaml file does not have any authorizations defined for reading statefulsets.

johanhubens pushed a commit to johanhubens/kops that referenced this issue Sep 11, 2017
Cluster autoscaler addon was unable to list/watch statefulsets when RBAC is enabled because it wasn't granted permission. fixes kubernetes#3363
@niclic
Copy link

niclic commented Sep 11, 2017

Just encountered this myself. Proposed fix works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants