apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    app: metrics
  name: nginx-metrics
rules:
- apiGroups:
  - batch
  resources:
  - cronjobs
  verbs:
  - list
  - watch
- apiGroups:
  - extensions
  resources:
  - daemonsets
  verbs:
  - list
  - watch
- apiGroups:
  - extensions
  resources:
  - deployments
  verbs:
  - list
  - watch
