Skip to content

chore(k8s): Update the LLM gateway to LiteLLM 1.109.1 #6001

Not planned

Description

@dan-petty

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

Related

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/llm runs on the change.
  • THEN It exits 0 and its row for ghcr.io/berriai/litellm:v1.109.1 prints the registry digest sha256:<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 k8s runs on the change, and the new image is rolled out to the cluster.
  • THEN The render passes, kubectl -n llm rollout status deployment/llm-gateway completes, and GET /health/liveliness returns 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 : ping SSE comment before the first data: 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 --comments runs 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 the v1.109.1 tag. The release note names ghcr.io/berriai/litellm:v1.109.1; write the digest by hand because Renovate's pinDigests rule covers only github-actions and dockerfile. (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 pinDigests rule 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_id and Azure login fields in the request body; the Jev pass-through body holds only model, state and questions, so the /v1/systemone route needs no change. The 1.108.7 note's drop_params: true case is already set. Keep every key in k8s/llm/gateway/config.yaml and 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: 30 already makes the proxy write : ping SSE 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 : ping SSE comment before the first data: 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.yaml asserts 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.json already has a LiteLLM rule that points at the chore(k8s): plan the LiteLLM upgrade beyond 1.103 #4406 upgrade plan, and .github/renovate/base.json groups 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 its pinDigests rule covers only github-actions and dockerfile, 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

  1. added
    type/chore
    scope/k8s
    source/agent
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
    • Possible duplicate: build(k8s): move the LiteLLM gateway to v1.109 #5091, which may ask for the same change. The model names Update the LiteLLM gateway image to v1.109.1 in k8s/llm/gateway/deployment.yaml as 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.
  3. added
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 16, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 18, 2026
  5. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at ff42fbe (see proposed design in issue body).

  6. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    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.

  7. removed
    status/ready
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions