Merge "[COMMON] Add monitoring to postgres"
[oom.git] / kubernetes / portal / components / portal-sdk / templates / deployment.yaml
index abc5daa..3b94a99 100644 (file)
@@ -150,8 +150,7 @@ spec:
           mountPath: "{{ .Values.global.env.tomcatDir }}/logs"
         - name: var-log-onap
           mountPath: "{{ .Values.log.path }}"
-        resources:
-{{ include "common.resources" . }}
+        resources: {{ include "common.resources" . | nindent 10 }}
       {{- if .Values.nodeSelector }}
       nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}
@@ -161,6 +160,7 @@ spec:
 {{ toYaml .Values.affinity | indent 10 }}
       {{- end }}
       {{ include "common.log.sidecar" . | nindent 6 }}
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
         - name: localtime
           hostPath: