--- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: {{- include "labels" $ | nindent 4 }} name: {{ $.Chart.Name }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ $.Chart.Name }} subjects: - kind: ServiceAccount name: {{ $.Chart.Name }} namespace: {{ $.Release.Namespace }}