apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: dcgm-exporter-read-cm namespace: {{ include "dcgm-exporter.namespace" . }} labels: {{- include "dcgm-exporter.labels" . | nindent 4 }} app.kubernetes.io/component: "dcgm-exporter" rules: - apiGroups: [""] resources: ["configmaps"] resourceNames: ["exporter-metrics-config-map"] verbs: ["get"]