apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: cka-readonly
  labels:
    app.kubernetes.io/name: circonus-kubernetes-agent
rules:
  - apiGroups:
      - ""
    resources:
      - componentstatuses
      - events
      - endpoints
      - namespaces
      - nodes
      - pods
      - services
    verbs:
      - get
      - list
      - watch
  - nonResourceURLs:
      - "/metrics"
      - "/version"
      - "/healthz"
    verbs:
      - get
  - apiGroups:
      - ""
    resources:
      - nodes/metrics
      - nodes/spec
      - nodes/proxy
      - services/proxy
    verbs:
      - get
  - apiGroups:
      - "metrics.k8s.io"
    resources:
      - pods
      - nodes
    verbs:
      - get
      - list
      - watch
