github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/promtail/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 "promtail.name" . }} 7 chart: {{ template "promtail.chart" . }} 8 release: {{ .Release.Name }} 9 heritage: {{ .Release.Service }} 10 name: {{ template "promtail.fullname" . }}-clusterrole 11 rules: 12 - apiGroups: [""] # "" indicates the core API group 13 resources: 14 - nodes 15 - nodes/proxy 16 - services 17 - endpoints 18 - pods 19 verbs: ["get", "watch", "list"] 20 {{- end }}