From 3127d79da864ecfbf381d166093645dd16e3ca74 Mon Sep 17 00:00:00 2001 From: Harshit28j Date: Tue, 10 Mar 2026 05:49:46 +0530 Subject: [PATCH] feat: add strategy to deployment for helmchart --- deploy/charts/litellm-helm/templates/deployment.yaml | 4 ++++ deploy/charts/litellm-helm/values.yaml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/deploy/charts/litellm-helm/templates/deployment.yaml b/deploy/charts/litellm-helm/templates/deployment.yaml index df483ab927..51af22b7a4 100644 --- a/deploy/charts/litellm-helm/templates/deployment.yaml +++ b/deploy/charts/litellm-helm/templates/deployment.yaml @@ -13,6 +13,10 @@ spec: {{- if and (not .Values.keda.enabled) (not .Values.autoscaling.enabled) }} replicas: {{ .Values.replicaCount }} {{- end }} + {{- with .Values.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "litellm.selectorLabels" . | nindent 6 }} diff --git a/deploy/charts/litellm-helm/values.yaml b/deploy/charts/litellm-helm/values.yaml index d62f5b29c2..02950d9f5d 100644 --- a/deploy/charts/litellm-helm/values.yaml +++ b/deploy/charts/litellm-helm/values.yaml @@ -35,6 +35,14 @@ deploymentLabels: {} podAnnotations: {} podLabels: {} +# -- Deployment strategy configuration +# Example: +# type: RollingUpdate +# rollingUpdate: +# maxUnavailable: 0 +# maxSurge: 1 +strategy: {} + terminationGracePeriodSeconds: 90 topologySpreadConstraints: []