clusterrolebinding.yaml 639 B

12345678910111213141516171819
  1. {{- if .Values.rbac.create }}
  2. kind: ClusterRoleBinding
  3. apiVersion: rbac.authorization.k8s.io/v1
  4. metadata:
  5. name: {{ template "fluent-bit-loki.fullname" . }}-clusterrolebinding
  6. labels:
  7. app: {{ template "fluent-bit-loki.name" . }}
  8. chart: {{ template "fluent-bit-loki.chart" . }}
  9. release: {{ .Release.Name }}
  10. heritage: {{ .Release.Service }}
  11. subjects:
  12. - kind: ServiceAccount
  13. name: {{ template "fluent-bit-loki.serviceAccountName" . }}
  14. namespace: {{ .Release.Namespace }}
  15. roleRef:
  16. kind: ClusterRole
  17. name: {{ template "fluent-bit-loki.fullname" . }}-clusterrole
  18. apiGroup: rbac.authorization.k8s.io
  19. {{- end }}