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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(helm): give gateway and backend probes an explicit timeoutSeconds (#35497)
Yassin Kortamb1fd20f4cdc8
diff --git a/helm/litellm/tests/probe_tests.yaml b/helm/litellm/tests/probe_tests.yamlnew file mode 100644index 00000000000..a04709db2f5--- /dev/null+++ b/helm/litellm/tests/probe_tests.yaml@@ -0,0 +1,106 @@+suite: test liveness and readiness probe timeouts+templates:+ - gateway/deployment.yaml+ - gateway/configmap.yaml+ - backend/deployment.yaml+values:+ - ./values/required.yaml+tests:+ - it: gateway probes set an explicit timeout that outlasts a saturated event loop+ template: gateway/deployment.yaml+ asserts:+ - equal:+ path: spec.template.spec.containers[0].livenessProbe+ value:+ httpGet:+ path: /health/liveliness+ port: http+ initialDelaySeconds: 10+ periodSeconds: 15+ timeoutSeconds: 10+ failureThreshold: 6+ - equal:+ path: spec.template.spec.containers[0].readinessProbe+ value:+ httpGet:+ path: /health/readiness+ port: http+ initialDelaySeconds: 5+ periodSeconds: 10+ timeoutSeconds: 10++ - it: backend probes set an explicit timeout that outlasts a saturated event loop+ template: backend/deployment.yaml+ asserts:+ - equal:+ path: spec.template.spec.containers[0].livenessProbe+ value:+ httpGet:+ path: /health/liveliness+ port: http+ initialDelaySeconds: 10+ periodSeconds: 15+ timeoutSeconds: 10+ failureThreshold: 6+ - equal:+ path: spec.template.spec.containers[0].readinessProbe+ value:+ httpGet:+ path: /health/readiness+ port: http+ initialDelaySeconds: 5+ periodSeconds: 10+ timeoutSeconds: 10++ - it: no single-event-loop component is left on the kubernetes default 1s probe timeout+ templates:+ - gateway/deployment.yaml+ - backend/deployment.yaml+ asserts:+ - isNotNullOrEmpty:+ path: spec.template.spec.containers[0].livenessProbe.timeoutSeconds+ - isNotNullOrEmpty:+ path: spec.template.spec.containers[0].readinessProbe.timeoutSeconds+ - equal:+ path: spec.template.spec.containers[0].livenessProbe.timeoutSeconds+ value: 10+ - equal:+ path: spec.template.spec.containers[0].readinessProbe.timeoutSeconds+ value: 10++ - it: gateway liveness tolerates a longer outage than readiness before acting+ template: gateway/deployment.yaml+ asserts:+ - equal:+ path: spec.template.spec.containers[0].livenessProbe.failureThreshold+ value: 6+ - notExists:+ path: spec.template.spec.containers[0].readinessProbe.failureThreshold++ - it: probe timeouts and thresholds stay overridable per component+ template: gateway/deployment.yaml+ set:+ gateway.readinessProbe.timeoutSeconds: 3+ gateway.readinessProbe.periodSeconds: 20+ gateway.livenessProbe.timeoutSeconds: 4+ gateway.livenessProbe.failureThreshold: 3+ asserts:+ - equal:+ path: spec.template.spec.containers[0].readinessProbe+ value:+ httpGet:+ path: /health/readiness+ port: http+ initialDelaySeconds: 5+ periodSeconds: 20+ timeoutSeconds: 3+ - equal:+ path: spec.template.spec.containers[0].livenessProbe+ value:+ httpGet:+ path: /health/liveliness+ port: http+ initialDelaySeconds: 10+ periodSeconds: 15+ timeoutSeconds: 4+ failureThreshold: 3diff --git a/helm/litellm/values.yaml b/helm/litellm/values.yamlindex 48e55a6805b..cd377667602 100644--- a/helm/litellm/values.yaml+++ b/helm/litellm/values.yaml@@ -216,10 +216,13 @@ gateway:httpGet: { path: /health/liveliness, port: http }initialDelaySeconds: 10periodSeconds: 15+ timeoutSeconds: 10+ failureThreshold: 6readinessProbe:httpGet: { path: /health/readiness, port: http }initialDelaySeconds: 5periodSeconds: 10+ timeoutSeconds: 10hpa:enabled: trueminReplicas: 1@@ -309,10 +312,13 @@ backend:httpGet: { path: /health/liveliness, port: http }initialDelaySeconds: 10periodSeconds: 15+ timeoutSeconds: 10+ failureThreshold: 6readinessProbe:httpGet: { path: /health/readiness, port: http }initialDelaySeconds: 5periodSeconds: 10+ timeoutSeconds: 10hpa:enabled: trueminReplicas: 1