[COMMON] Harmonize resource settings, Part 2
[oom.git] / kubernetes / uui / components / uui-intent-analysis / templates / job.yaml
index edcf3fe..9191af0 100644 (file)
@@ -48,6 +48,13 @@ spec:
         image: {{ include "repositoryGenerator.image.readiness" . }}
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: {{ include "common.name" . }}-readiness
+        resources:
+          limits:
+            cpu: "100m"
+            memory: "500Mi"
+          requests:
+            cpu: "3m"
+            memory: "20Mi"
       containers:
       - name: {{ include "common.name" . }}-job
         image: {{ include "repositoryGenerator.image.postgres" . }}
@@ -66,8 +73,10 @@ spec:
         - name: init-data
           mountPath: /aaa/init/intent-analysis-init.sql
           subPath: intent-analysis-init.sql
+      {{ include "common.waitForJobContainer" . | indent 6 | trim }}
       imagePullSecrets:
       - name: "{{ include "common.namespace" . }}-docker-registry-key"
+      serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
       volumes:
       - name: init-data
         configMap: