diff --git a/templates/pre-install-job.yaml b/templates/pre-install-job.yaml index c467241..f6b835d 100644 --- a/templates/pre-install-job.yaml +++ b/templates/pre-install-job.yaml @@ -25,6 +25,9 @@ spec: - name: pre-install-job 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