clusterrolebinding.yaml 608 B

12345678910111213141516
  1. {{- if and .Values.rbac.create (empty .Values.server.namespaces) (empty .Values.server.useExistingClusterRoleName) -}}
  2. apiVersion: {{ template "rbac.apiVersion" . }}
  3. kind: ClusterRoleBinding
  4. metadata:
  5. labels:
  6. {{- include "prometheus.server.labels" . | nindent 4 }}
  7. name: {{ template "prometheus.server.fullname" . }}
  8. subjects:
  9. - kind: ServiceAccount
  10. name: {{ template "prometheus.serviceAccountName.server" . }}
  11. {{ include "prometheus.namespace" . | indent 4 }}
  12. roleRef:
  13. apiGroup: rbac.authorization.k8s.io
  14. kind: ClusterRole
  15. name: {{ template "prometheus.server.fullname" . }}
  16. {{- end }}