Make nodemetrics role optional
@@ -39,6 +39,8 @@ rules:
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
+
+{{- if .Values.openfaasPro }}
# Cluster binding for node discovery and node-level metrics
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
@@ -58,6 +60,8 @@ subjects:
- kind: ServiceAccount
name: {{ .Release.Name }}-prometheus
namespace: {{ .Release.Namespace | quote }}
+{{- end }}
+
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
