Skip to content

feat(k8s): serve gemini-3.8-flash and two Claude models - #3117

Merged
dan-petty merged 4 commits into
mainfrom
feat/3113-gateway-gemini-and-claude
Nov 1, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/3113-gateway-gemini-and-claude

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

What changes

The LiteLLM gateway serves three direct hosted models: gemini-3.8-flash (Google), claude-sonnet-5-5 and claude-haiku-5-5 (Anthropic).

  • Route: three groups in k8s/llm/gateway/config.yaml. No pool, fallback or routing group names them, so a prompt leaves the cluster only when its caller names the group.
  • Keys: gemini.api_key and anthropic.api_key (keyring) go to optional keys of llm/llm-gateway-secrets through devops k8s push-secrets. The gateway reads them as GEMINI_API_KEY and ANTHROPIC_API_KEY and starts without them.
  • Egress: the gateway NetworkPolicy gets one rule: TCP 443 to public addresses, with every private, carrier-grade NAT and metadata range excluded. The owner chose this option. The guard test accepts exactly this rule and fails on any other widening.
  • Claude groups: they set their own prices (the cost map of the pinned LiteLLM image lacks both models) and drop temperature, top_p and top_k, which the Anthropic API refuses for these models.
  • Docs: k8s/README.md and SECURITY.md rule 12.

Why

The owner asked for these models and their keys on the gateway (#3113).

Known limits

  • Sonnet 5.5 refuses a forced tool call. The README tells a caller to send tool_choice auto; the gateway does not rewrite it.
  • Haiku 5.5 costs more above 100,000 prompt tokens. LiteLLM has no tier at that size, so the recorded spend of such a call reads low.

Verification

  • Tests: the hosted-group rules with six broken edits, the egress rule with four more widening edits, the secret table, the gateway and GPU matrix tests. 2124 tests pass.
  • LiteLLM v1.103.0 in a scratch environment: a Router of the three groups starts with no key; a mocked call of each group gives the cost that the prices predict; a spy on the transport shows that the request to Anthropic holds no temperature or top_p.
  • After the merge, a person stores the keys, runs devops k8s push-secrets --only llm/llm-gateway-secrets, and calls each group once with the curl command in k8s/README.md.

Closes #3113

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 1, 2026
@dan-petty dan-petty changed the title feat(k8s): route gemini-3.8-flash and two Claude models through the gateway feat(k8s): serve gemini-3.8-flash and two Claude models Nov 1, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 23:24
@dan-petty
dan-petty merged commit 1fa3a31 into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/3113-gateway-gemini-and-claude branch November 1, 2026 23:24
dan-petty pushed a commit that referenced this pull request Nov 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.39.0](v0.38.0...v0.39.0)
(2026-11-02)


### Features

* **ci:** uv, test, serve and mcp dry runs list their requests
([#3135](#3135))
([666e183](666e183))
* **k8s:** serve gemini-3.8-flash and two Claude models
([#3117](#3117))
([1fa3a31](1fa3a31)),
closes [#3113](#3113)
* **repos:** request plans for repos, branches, ssh and tls
([#3129](#3129))
([174b82c](174b82c))
* **roadmap:** move unworkable scope to new issues during refine
([#3130](#3130))
([a0b2cb5](a0b2cb5))


### Bug Fixes

* **github:** a refused App JWT names GitHub's reason
([#3116](#3116))
([5ac0bea](5ac0bea))
* **roadmap:** make the alternatives check search before a verdict
([#3127](#3127))
([099c689](099c689))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): the LiteLLM gateway routes gemini-3.8-flash with its own API key and public egress on port 443

1 participant