Skip to content

Commit dd91059

Browse files
authored
[helm] Independent setting of memory resources for migration pods (#3281)
* add separate resources for migration pod * default to global resources if not set
1 parent fec0956 commit dd91059

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/zenml/zen_server/deploy/helm/templates/server-db-job.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ spec:
104104
envFrom:
105105
- secretRef:
106106
name: {{ include "zenml.fullname" . }}-db-migration
107-
{{- with .Values.resources }}
108107
resources:
109-
{{- toYaml . | nindent 12 }}
110-
{{- end }}
108+
{{- if .Values.resourcesMigrationPod }}
109+
{{- toYaml .Values.resourcesMigrationPod | nindent 12 }}
110+
{{- else }}
111+
{{- toYaml .Values.resources | nindent 12 }}
112+
{{- end }}
111113
{{- with .Values.tolerations }}
112114
tolerations:
113115
{{- toYaml . | nindent 8 }}

src/zenml/zen_server/deploy/helm/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,10 @@ resources: {}
990990
# cpu: 100m
991991
# memory: 128Mi
992992

993+
resourcesMigrationPod: {}
994+
# Resource requests and limits for the database migration pod.
995+
# If not set, falls back to the global resources configuration defined in .Values.resources
996+
993997
autoscaling:
994998
enabled: false
995999
minReplicas: 1

0 commit comments

Comments
 (0)