Repository navigation
Description
Problem
The gateway runs LiteLLM v1.103.11 (k8s/llm/gateway/deployment.yaml). v1.109.1 (2026-11-12) is the latest stable release. It retries a 408 that comes before the first chunk, cools the deployment and falls back (upstream #46493), which 1.103.11 does not do. Owner, 2026-11-16: "this project is at the leading edge of tooling updates, so we should try to keep the versions updated, while following dependency management best practices." No Renovate runs yet (#4893), so no update pull request came.
Expected behavior
- The gateway image is LiteLLM
v1.109.1, pinned by tag and digest. - The release notes from 1.103.11 to 1.109.1 are read for breaking changes that touch our config (router settings, health checks, Prometheus metric names, OpenRouter, Ollama, the MCP and pass-through routes).
- The mock test of feat(ai): Route DeepSeek calls around a stalled provider #5995 runs again on 1.109.1, and also checks that the proxy still sends keep-alive bytes before the first token.
- chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406 (the LiteLLM upgrade plan) gets the result.
Related
- feat(ai): Route around a stalled or offline model provider #5990 (step 4), feat(ai): Route DeepSeek calls around a stalled provider #5995, feat(deps): track regular version updates with Renovate #4893 (Renovate), chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406.
Alternatives check of 2026-11-17: not-applicable.
Class: chore, no search.
Tool: none found.
Proposed design
Problem statement
Update the gateway image from LiteLLM v1.103.11 to v1.109.1, pinned by tag and digest, because v1.109.1 retries a 408 that arrives before the first chunk and falls back. Renovate does not run in this repository yet, so the bump is manual: review the release notes, load the config on the new image, rerun the #5995 mock-provider check with a keep-alive case, and report the result to #4406.
Acceptance criteria
Requirement: Gateway image pin
The LiteLLM gateway container SHALL run ghcr.io/berriai/litellm:v1.109.1 pinned by the digest that the registry returns for that tag.
Scenario: Image pin resolves
- WHEN
uv run devops k8s image-pins k8s/llmruns on the change. - THEN It exits 0 and its row for
ghcr.io/berriai/litellm:v1.109.1prints the registry digestsha256:<digest>.
Requirement: Gateway config loads on 1.109.1
The gateway config SHALL load under LiteLLM v1.109.1 after the release-note review, with no key removed by the upgrade.
Scenario: Gateway starts with the config
- WHEN
uv run devops ci --check --only k8sruns on the change, and the new image is rolled out to the cluster. - THEN The render passes,
kubectl -n llm rollout status deployment/llm-gatewaycompletes, andGET /health/livelinessreturns 200.
Requirement: Keep-alive before the first token
The LiteLLM v1.109.1 mock-provider check SHALL show that the proxy writes a keep-alive byte before the first token when the upstream delays its first chunk.
Scenario: Delayed first chunk
- WHEN The mock upstream delays its first chunk past 30 s and the gateway runs
ghcr.io/berriai/litellm:v1.109.1. - THEN The client reads at least one
: pingSSE comment before the firstdata:token, and the check passes.
Requirement: Upgrade result on #4406
The change SHALL report the LiteLLM v1.109.1 result on issue #4406.
Scenario: Result comment
- WHEN
gh issue view 4406 --commentsruns after the pull request is ready. - THEN It shows a comment that links the pull request and states the image digest, the release-note review result, and the mock test and keep-alive result.
Existing Tool Considered
Renovate (https://github.com/renovatebot/renovate), open and maintained, is the tool for the dependency update: .github/renovate.json already has a LiteLLM rule that points each bump at the upgrade plan of #4406, and .github/renovate/base.json groups container-image updates. It lacks a run in this repository yet (#4893), so no update pull request came and this bump is manual, and its pinDigests rule covers only github-actions and dockerfile (.github/renovate/base.json:138-140), so the kubernetes image needs the digest written by hand. The repository's devops k8s image-pins checks the result; the change builds no updater.
Key questions
- Which image reference pins LiteLLM 1.109.1?:
ghcr.io/berriai/litellm:v1.109.1@sha256:<digest>, where the digest is the one the registry returns for thev1.109.1tag. The release note namesghcr.io/berriai/litellm:v1.109.1; write the digest by hand because Renovate'spinDigestsrule covers onlygithub-actionsanddockerfile. (best practice) [sources: k8s/llm/gateway/deployment.yaml:46, .github/renovate/base.json:138-140, https://docs.litellm.ai/release_notes/v1.109.1/v1-109-1]- Chosen: Tag and digest. The issue requires both, and a digest makes the image immutable.
- Rejected: Tag only. A tag can move to another image.
- Rejected: Digest only. The tag keeps the release readable and the issue names it.
- Rejected: Let Renovate add the digest. Renovate does not run in this repository yet (feat(deps): track regular version updates with Renovate #4893), and its
pinDigestsrule does not cover the kubernetes manager.
- Which gateway config changes does the 1.109.1 upgrade need?: None on the evidence read. The 1.109.1 release note's only breaking change is that model and pass-through routes refuse
client_id,client_secret,tenant_idand Azure login fields in the request body; the Jev pass-through body holds onlymodel,stateandquestions, so the/v1/systemoneroute needs no change. The 1.108.7 note'sdrop_params: truecase is already set. Keep every key ink8s/llm/gateway/config.yamland record the full release-note review on chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406. (best practice) [sources: https://docs.litellm.ai/release_notes/v1.109.1/v1-109-1, https://docs.litellm.ai/release_notes, k8s/llm/gateway/config.yaml:300, openspec/changes/archive/2026-11-10-4289-the-gateway-has-no-route-for/proposal.md:29]- Chosen: Keep the config and record the review. The one named breaking change does not touch the body the pass-through sends, and no note names a key we set.
- Rejected: Update every suspected area. No release note names a change to the router, health checks, metric names, OpenRouter, Ollama or MCP keys.
- Rejected: Skip the review. The issue requires the release-note review and chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406 records its result.
- Does the gateway need a new environment variable for keep-alive?: No.
litellm_settings.sse_keepalive_ping_interval_seconds: 30already makes the proxy write: pingSSE comments before the first token, and the 1.109.1 note names no change to it. Add no environment variable. (best practice) [sources: k8s/llm/gateway/config.yaml:301-305, k8s/README.md:115, https://docs.litellm.ai/release_notes/v1.109.1/v1-109-1]- Chosen: Use the existing config. The setting is already present and the release note names no change.
- Rejected: Add a keep-alive environment variable. No release note or config key names one.
- How should the mock test of feat(ai): Route DeepSeek calls around a stalled provider #5995 run on 1.109.1?: Run the existing mock-provider harness, the scripts outside the repository that proved the routing on 1.103.11, against
ghcr.io/berriai/litellm:v1.109.1. Add one case where the mock upstream delays its first chunk past 30 s, and assert that the client reads at least one: pingSSE comment before the firstdata:token. Do not add a repository test that reads the config; the harness is the live check, and its result goes to chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406. (best practice) [sources: openspec/changes/archive/2026-11-16-5990-route-around-a-stalled-or-offline/tasks.md:9, k8s/llm/gateway/config.yaml:301-305, k8s/README.md:115]- Chosen: Run the outside harness with a delayed-first-chunk case. It reuses the mock provider that proved the routing and tests the keep-alive on the real image.
- Rejected: Add a repository test. No repository mock test exists, and a test that reads
config.yamlasserts no runtime behavior. - Rejected: Check keep-alive by hand only. The issue requires the mock test to check it, and a hand check is not repeatable.
- What result goes to chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406?: Post one comment on chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406 that links the pull request and states the image digest, the release-note review result, and the mock test and keep-alive result. The Renovate preset already points each LiteLLM bump at the upgrade plan of chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406, so the comment is the record that the plan expects. (best practice) [sources: .github/renovate.json:343-347, k8s/README.md:138, k8s/llm/gateway/config.yaml:206-217]
- Chosen: One linked result comment. It gives the upgrade plan the result that the body asks for and Renovate's note names.
- Rejected: No comment. The body requires the result.
- Rejected: A separate issue. It adds a second record for the same result.
- Which tool covers the dependency update?: Renovate, which is open and maintained.
.github/renovate.jsonalready has a LiteLLM rule that points at the chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406 upgrade plan, and.github/renovate/base.jsongroups container-image updates. It lacks a run in this repository yet (feat(deps): track regular version updates with Renovate #4893), so this bump is manual, and itspinDigestsrule covers onlygithub-actionsanddockerfile, so the kubernetes image needs the digest written by hand. (best practice) [sources: .github/renovate.json:343-347, .github/renovate/base.json:71-73, .github/renovate/base.json:138-140, https://github.com/renovatebot/renovate]- Chosen: Renovate. It is the open, maintained tool for container-image updates, and the repository already configures it.
- Rejected: A manual bump with no tool. It is needed now only because Renovate does not run yet (feat(deps): track regular version updates with Renovate #4893); the manual bump follows the same preset.
- Rejected: Build a project updater. It would duplicate Renovate, which the repository already uses.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 16, 2026
Update the LiteLLM gateway image to v1.109.1 in k8s/llm/gateway/deployment.yamlas the change that both ask for.Both items deliver the same result: the gateway image becomes LiteLLM v1.109.1 in the deployment manifest.A person closes one of the two if that is so.devops-cli-service commentedon Nov 18, 2026
Status set to Ready at ff42fbe (see proposed design in issue body).
dan-petty commentedon Nov 26, 2026
Closed: the gateway already runs a newer release.
k8s/llm/gateway/is in dan-petty/homelab, which pins LiteLLM 1.111.0, and the live Deployment runs it. Renovate there takes the next releases. I found no record of the keep-alive mock check: file a dan-petty/homelab item if you still want it.