Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Add Abilty To Set minReadySeconds From values Files (#23173)

RJ Duffner0c95d415e134
diff --git a/deploy/charts/litellm-helm/templates/deployment.yaml b/deploy/charts/litellm-helm/templates/deployment.yaml
index 51af22b7a46..3040fb45d86 100644
--- a/deploy/charts/litellm-helm/templates/deployment.yaml
+++ b/deploy/charts/litellm-helm/templates/deployment.yaml
@@ -20,6 +20,9 @@ spec:
selector:
matchLabels:
{{- include "litellm.selectorLabels" . | nindent 6 }}
+ {{- if .Values.deploymentMinReadySeconds }}
+ minReadySeconds: {{ .Values.deploymentMinReadySeconds }}
+ {{- end }}
template:
metadata:
annotations:
diff --git a/deploy/charts/litellm-helm/tests/deployment_tests.yaml b/deploy/charts/litellm-helm/tests/deployment_tests.yaml
index 2e9c48043de..0d278f25693 100644
--- a/deploy/charts/litellm-helm/tests/deployment_tests.yaml
+++ b/deploy/charts/litellm-helm/tests/deployment_tests.yaml
@@ -306,3 +306,16 @@ tests:
- equal:
path: spec.template.spec.containers[0].resources
value: {}
+ - it: should be able to set minReadySeconds
+ template: deployment.yaml
+ set:
+ deploymentMinReadySeconds: 5
+ asserts:
+ - equal:
+ path: spec.minReadySeconds
+ value: 5
+ - it: should have minReadySeconds absent when deploymentMinReadySeconds is not set
+ template: deployment.yaml
+ asserts:
+ - notExists:
+ path: spec.minReadySeconds
diff --git a/deploy/charts/litellm-helm/values.yaml b/deploy/charts/litellm-helm/values.yaml
index 02950d9f5da..a5b5229e16f 100644
--- a/deploy/charts/litellm-helm/values.yaml
+++ b/deploy/charts/litellm-helm/values.yaml
@@ -31,6 +31,8 @@ serviceAccount:
# annotations for litellm deployment
deploymentAnnotations: {}
deploymentLabels: {}
+deploymentMinReadySeconds: 0
+
# annotations for litellm pods
podAnnotations: {}
podLabels: {}