summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/components/sdnc-web
diff options
context:
space:
mode:
authorfarida azmy <farida.azmy.ext@orange.com>2021-08-04 14:46:09 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-08-17 12:42:28 +0000
commit32c5ed84d336982b750bc17aa72e70006b413be4 (patch)
tree3bc2fc06324e2e9d9c2c3ea89e8a380ea120fe47 /kubernetes/sdnc/components/sdnc-web
parentccd3978371f0898a570e59edf2b43b44039fccec (diff)
[SDNC] Update chart with service account
Add service account to chart Issue-ID: OOM-2719 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: I263f53a60e32867f61b2d85cc4dc8a78d9701449
Diffstat (limited to 'kubernetes/sdnc/components/sdnc-web')
-rw-r--r--kubernetes/sdnc/components/sdnc-web/requirements.yaml3
-rw-r--r--kubernetes/sdnc/components/sdnc-web/templates/deployment.yaml1
-rw-r--r--kubernetes/sdnc/components/sdnc-web/values.yaml6
3 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/sdnc/components/sdnc-web/requirements.yaml b/kubernetes/sdnc/components/sdnc-web/requirements.yaml
index 7e75730415..3d7968123b 100644
--- a/kubernetes/sdnc/components/sdnc-web/requirements.yaml
+++ b/kubernetes/sdnc/components/sdnc-web/requirements.yaml
@@ -23,3 +23,6 @@ dependencies:
- name: repositoryGenerator
version: ~8.x-0
repository: '@local'
+ - name: serviceAccount
+ version: ~8.x-0
+ repository: '@local'
diff --git a/kubernetes/sdnc/components/sdnc-web/templates/deployment.yaml b/kubernetes/sdnc/components/sdnc-web/templates/deployment.yaml
index f168997d3f..21416c9b5f 100644
--- a/kubernetes/sdnc/components/sdnc-web/templates/deployment.yaml
+++ b/kubernetes/sdnc/components/sdnc-web/templates/deployment.yaml
@@ -101,6 +101,7 @@ spec:
{{- if .Values.affinity }}
affinity: {{ toYaml .Values.affinity | nindent 8 }}
{{- end }}
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
- name: localtime
hostPath:
diff --git a/kubernetes/sdnc/components/sdnc-web/values.yaml b/kubernetes/sdnc/components/sdnc-web/values.yaml
index 8514641a1c..3d9f86192f 100644
--- a/kubernetes/sdnc/components/sdnc-web/values.yaml
+++ b/kubernetes/sdnc/components/sdnc-web/values.yaml
@@ -127,3 +127,9 @@ resources:
cpu: 1
memory: 1Gi
unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: sdnc-web
+ roles:
+ - read