diff --git a/chart/operator/templates/k8sgpt-cluster-role-binding.yaml b/chart/operator/templates/k8sgpt-cluster-role-binding.yaml new file mode 100644 index 00000000..a911be8f --- /dev/null +++ b/chart/operator/templates/k8sgpt-cluster-role-binding.yaml @@ -0,0 +1,14 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "chart.fullname" . }}-k8sgpt + labels: + {{- include "chart.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "chart.fullname" . }}-k8sgpt +subjects: + - kind: ServiceAccount + name: "k8sgpt" + namespace: {{ .Release.Namespace }}