1 {{- if .Values.rbac.create }}
2 {{- if .Values.rbac.pspEnabled }}
3 apiVersion: rbac.authorization.k8s.io/v1beta1
4 kind: ClusterRoleBinding
6 labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
7 name: psp-{{ template "prometheus-node-exporter.fullname" . }}
9 apiGroup: rbac.authorization.k8s.io
11 name: psp-{{ template "prometheus-node-exporter.fullname" . }}
13 - kind: ServiceAccount
14 name: {{ template "prometheus-node-exporter.fullname" . }}
15 namespace: {{ .Release.Namespace }}