aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2019-06-13 00:26:10 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2019-06-13 00:26:10 -0700
commite7cf41ad23960f23c03a553f62f5d710054ede23 (patch)
treecdc6c1d6b0a5079f7c166a69ad03d68d229228f3 /vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml
parent9610eedd1351ede91d417412740b2560525a1fab (diff)
Add RBAC for prometheus instance
Fixed issue of prometheus throwing unauthorized rbac error. Change-Id: I984bf637bf464803c35bfb32bf09b2974fec9053 Issue-ID: ONAPARC-506 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml')
-rw-r--r--vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml b/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml
new file mode 100644
index 00000000..82437523
--- /dev/null
+++ b/vnfs/DAaaS/deploy/collection/charts/prometheus/templates/serviceaccount.yaml
@@ -0,0 +1,11 @@
+{{- if .Values.prometheus.serviceAccount.create }}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: {{ template "prometheus.serviceAccountName" . }}
+ labels:
+ app: {{ template "prometheus.name" . }}-prometheus
+{{ include "prometheus.labels" . | indent 4 }}
+imagePullSecrets:
+{{ toYaml .Values.global.imagePullSecrets | indent 2 }}
+{{- end }}