diff --git a/templates/pre-install-job.yaml b/templates/pre-install-job.yaml index e1df2ff..06b1b30 100644 --- a/templates/pre-install-job.yaml +++ b/templates/pre-install-job.yaml @@ -30,6 +30,9 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.preInstall.resources }} + resources: {{ toYaml .Values.preInstall.resources | nindent 12 }} + {{- end }} command: ["./manage.py","migrate"] env: - name: DEBUG diff --git a/values.yaml b/values.yaml index 4b64733..4b49fe4 100644 --- a/values.yaml +++ b/values.yaml @@ -14,6 +14,10 @@ fullnameOverride: "" preInstall: enabled: true activeDeadlineSeconds: 900 + resources: + limits: {} + requests: {} + env: normal: {} @@ -190,3 +194,4 @@ postgresql: enabled: false #auth: # postgresqlPassword: # Must be set + \ No newline at end of file