github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/promtail/templates/clusterrolebinding.yaml (about) 1 {{- if .Values.rbac.create }} 2 kind: ClusterRoleBinding 3 apiVersion: rbac.authorization.k8s.io/v1 4 metadata: 5 name: {{ template "promtail.fullname" . }}-clusterrolebinding 6 labels: 7 app: {{ template "promtail.name" . }} 8 chart: {{ template "promtail.chart" . }} 9 release: {{ .Release.Name }} 10 heritage: {{ .Release.Service }} 11 subjects: 12 - kind: ServiceAccount 13 name: {{ template "promtail.serviceAccountName" . }} 14 namespace: {{ .Release.Namespace }} 15 roleRef: 16 kind: ClusterRole 17 name: {{ template "promtail.fullname" . }}-clusterrole 18 apiGroup: rbac.authorization.k8s.io 19 {{- end }}