commit | 72513551b8489de68d2e1f20284b2f0962f6e514 | [log] [tgz] |
---|---|---|
author | farida azmy <farida.azmy.ext@orange.com> | Tue Oct 12 18:55:21 2021 +0200 |
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | Wed Nov 03 14:56:39 2021 +0000 |
tree | 0d3e9d3f1e7dcf3c2275d6c14173b885ea2a06a6 | |
parent | dcaeb1a1320c1db4b4a84e99e7ab4a31dc84fa14 [diff] |
[MULTICLOUD] Update chart with service account Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2862 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Ia20fb51256e20e6582a2b9e0d89159742992fea4
diff --git a/kubernetes/multicloud/components/multicloud-prometheus/requirements.yaml b/kubernetes/multicloud/components/multicloud-prometheus/requirements.yaml index 09630f0..eb40843 100644 --- a/kubernetes/multicloud/components/multicloud-prometheus/requirements.yaml +++ b/kubernetes/multicloud/components/multicloud-prometheus/requirements.yaml
@@ -27,3 +27,6 @@ - name: prometheus-grafana version: ~9.x-0 repository: 'file://components/prometheus-grafana' + - name: serviceAccount + version: ~9.x-0 + repository: '@local'
diff --git a/kubernetes/multicloud/components/multicloud-prometheus/templates/deployment.yaml b/kubernetes/multicloud/components/multicloud-prometheus/templates/deployment.yaml index 3a5c8ed..7494129 100644 --- a/kubernetes/multicloud/components/multicloud-prometheus/templates/deployment.yaml +++ b/kubernetes/multicloud/components/multicloud-prometheus/templates/deployment.yaml
@@ -105,6 +105,7 @@ affinity: {{ toYaml .Values.affinity | indent 8 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: {{ include "common.fullname" . }}-config configMap:
diff --git a/kubernetes/multicloud/components/multicloud-prometheus/values.yaml b/kubernetes/multicloud/components/multicloud-prometheus/values.yaml index fa949c0..757041c 100644 --- a/kubernetes/multicloud/components/multicloud-prometheus/values.yaml +++ b/kubernetes/multicloud/components/multicloud-prometheus/values.yaml
@@ -100,3 +100,9 @@ cpu: 20m memory: 2Gi unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: multicloud-prometheus + roles: + - read