prometheus-rbac-clusterrole.yaml 360 B

1234567891011121314151617181920
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: ClusterRole
  3. metadata:
  4. name: prometheus
  5. namespace: monitoring
  6. rules:
  7. - apiGroups: [""]
  8. resources:
  9. - nodes
  10. - services
  11. - endpoints
  12. - pods
  13. - nodes/metrics
  14. verbs: ["get", "list", "watch"]
  15. - apiGroups: [""]
  16. resources:
  17. - configmaps
  18. verbs: ["get"]
  19. - nonResourceURLs: ["/metrics"]
  20. verbs: ["get"]