apiVersion: rbac.authorization.k8s.io/v1
# kubernetes versions before 1.8.0 should use rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
  namespace: kube-system
  name: kube-state-metrics-resizer
rules:
- apiGroups:
    - ""
  resources:
    - pods
  verbs:
    - get
- apiGroups:
    - extensions
  resources:
    - deployments
  resourceNames:
    - kube-state-metrics
  verbs:
    - get
    - update
