grafana-agent-cluster-role-binding.yaml 761 B

12345678910111213141516171819
  1. {{- with (.Values.metaMonitoring).grafanaAgent }}
  2. {{- if .enabled }}
  3. apiVersion: rbac.authorization.k8s.io/v1
  4. kind: ClusterRoleBinding
  5. metadata:
  6. name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }}
  7. namespace: {{ .namespace | default $.Release.Namespace | quote }}
  8. labels:
  9. {{- include "tempo.labels" (dict "ctx" $ "component" "meta-monitoring" ) | nindent 4 }}
  10. roleRef:
  11. apiGroup: rbac.authorization.k8s.io
  12. kind: ClusterRole
  13. name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }}
  14. subjects:
  15. - kind: ServiceAccount
  16. name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }}
  17. namespace: {{ .namespace | default $.Release.Namespace }}
  18. {{- end }}
  19. {{- end }}