[NBI] Update chart with service account
Add service account to requirements, values and deployment/statefulset
Issue-ID: OOM-2867
Signed-off-by: farida azmy <farida.azmy.ext@orange.com>
Change-Id: I63aa457b22c798b481bcca7cc33ca592d7eca0b9
diff --git a/kubernetes/nbi/templates/deployment.yaml b/kubernetes/nbi/templates/deployment.yaml
index d5f209e..b9ed35b 100644
--- a/kubernetes/nbi/templates/deployment.yaml
+++ b/kubernetes/nbi/templates/deployment.yaml
@@ -146,6 +146,7 @@
affinity:
{{ toYaml .Values.affinity | indent 10 }}
{{- end }}
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
- name: localtime
hostPath: