Added resource support for DAaaS prometheus
[demo.git] / vnfs / DAaaS / deploy / collection / charts / prometheus / templates / prometheus.yaml
index 9c3d84c..862e865 100644 (file)
@@ -7,6 +7,7 @@ metadata:
   "helm.sh/hook": post-install
   "helm.sh/hook-weight": "2"
 spec:
+  serviceAccountName: {{ template "prometheus.serviceAccountName" . }}
   serviceMonitorSelector:
     matchLabels:
       app: {{ template "prometheus.name" . }}-prometheus
@@ -14,6 +15,8 @@ spec:
   serviceMonitorNamespaceSelector:
     matchNames:
       - {{ .Release.Namespace | quote }}
+  resources:
+{{ toYaml .Values.prometheus.resources | indent 4 }}
 
   # TODO: Templatizing multiple remote read/write.
   # Especially Kafka adapater.