From 11859f11b4512ea88721606469908c3d622844c9 Mon Sep 17 00:00:00 2001 From: "unhak.yeo" Date: Fri, 21 Mar 2025 13:18:50 +0900 Subject: [PATCH] Added resource configuration placeholder to migrationJob for better customization and scalability. --- .../charts/litellm-helm/templates/migrations-job.yaml | 2 ++ deploy/charts/litellm-helm/values.yaml | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/deploy/charts/litellm-helm/templates/migrations-job.yaml b/deploy/charts/litellm-helm/templates/migrations-job.yaml index e994c45548..d9ba6982df 100644 --- a/deploy/charts/litellm-helm/templates/migrations-job.yaml +++ b/deploy/charts/litellm-helm/templates/migrations-job.yaml @@ -48,6 +48,8 @@ spec: {{- end }} - name: DISABLE_SCHEMA_UPDATE value: "false" # always run the migration from the Helm PreSync hook, override the value set + resources: + {{- toYaml .Values.migrationJob.resources | nindent 12 }} {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} diff --git a/deploy/charts/litellm-helm/values.yaml b/deploy/charts/litellm-helm/values.yaml index 70f6c2ef23..ca2c2be526 100644 --- a/deploy/charts/litellm-helm/values.yaml +++ b/deploy/charts/litellm-helm/values.yaml @@ -194,6 +194,17 @@ migrationJob: disableSchemaUpdate: false # Skip schema migrations for specific environments. When True, the job will exit with code 0. annotations: {} ttlSecondsAfterFinished: 120 + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi # Additional environment variables to be added to the deployment envVars: {