otelcollector/deploy/chart/prometheus-collector/templates/prometheus-collector-clusterRole.yaml (32 lines of code) (raw):

kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ template "prometheus-collector.fullname" . }}-reader labels: {{- include "prometheus-collector.labels" . | nindent 4 }} rules: - apiGroups: [""] resources: [ "pods", "nodes", "nodes/stats", "nodes/metrics", "nodes/proxy", "namespaces", "services", "endpoints", "ingress" ] verbs: ["list", "get", "watch"] - apiGroups: - networking.k8s.io resources: - ingresses verbs: ["list", "get", "watch"] - apiGroups: [""] resources: ["secrets"] resourceNames: ["aad-msi-auth-token"] verbs: ["get", "watch"] - nonResourceURLs: ["/metrics"] verbs: ["get"]