mirror of https://github.com/kubernetes/kops.git
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:
parent
74d0e211f4
commit
b2fc9d3b48
|
@ -66,6 +66,13 @@ rules:
|
|||
verbs:
|
||||
- watch
|
||||
- list
|
||||
- apiGroups:
|
||||
- apps
|
||||
resources:
|
||||
- statefulsets
|
||||
verbs:
|
||||
- watch
|
||||
- list
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue