github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/fluent-bit/templates/clusterrole.yaml (about) 1 {{- if .Values.rbac.create }} 2 kind: ClusterRole 3 apiVersion: rbac.authorization.k8s.io/v1 4 metadata: 5 labels: 6 app: {{ template "fluent-bit-loki.name" . }} 7 chart: {{ template "fluent-bit-loki.chart" . }} 8 release: {{ .Release.Name }} 9 heritage: {{ .Release.Service }} 10 name: {{ template "fluent-bit-loki.fullname" . }}-clusterrole 11 rules: 12 - apiGroups: [""] # "" indicates the core API group 13 resources: 14 - namespaces 15 - pods 16 verbs: ["get", "watch", "list"] 17 {{- end }}