Allow cluster-autoscaler to list/watch StatefulSets

Otherwise we get the error

    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)
This commit is contained in:
Carlos Sanchez 2017-08-15 14:23:56 +02:00 committed by GitHub
parent 74d0e211f4
commit b2fc9d3b48
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,13 @@ rules:
verbs:
- watch
- list
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- watch
- list
---