litellm - 💡(How to fix) Fix Conflict with **K8s Gateway API Inference Extension**

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What is the problem?

We are using K8s Gateway API Inference Extension (with Envoy Gateway) for LLM traffic. Its core capability is:

  • Select the final inference Pod (vLLM/SGLang) based on KV cache affinity, GPU memory, queue depth at the gateway layer.
  • It routes requests directly to the optimal Pod IP:port, with no further routing expected.

However, if we place LiteLLM behind this gateway:

  1. Gateway already picks the best Pod (KV-cache-aware, low load).
  2. LiteLLM re-routes the request again (round-robin/least-busy over all backends).
  3. The gateway’s KV-cache-based optimal selection is completely lost / overwritten.

This creates a fundamental conflict in the same request path:

  • Gateway: “I’ve already chosen the final Pod.”
  • LiteLLM: “I’ll ignore that and choose again.”

Are there any suggestions to handle it?

Thanks in advance.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING