apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: kubesphere-prometheus-k8s
rules:
  - apiGroups:
      - ""
    resources:
      - nodes/metrics
      - nodes
      - services
      - endpoints
      - pods
    verbs:
      - get
      - list
      - watch
  - nonResourceURLs:
      - /metrics
    verbs:
      - get
