8 views
-/https://github.com/berriai/litellm/issues/28811
GitHub · issue

#28811 Conflict with **K8s Gateway API Inference Extension**

  • State: open
  • Author: @ranyang1005

### 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.

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h46m6s ago — entered · #import:https:::github.com:berriai:litellm post #2100
28811 requires cross-layer routing semantics, configuration/design decisions, and compatibility testing across gateway-aware and existing backend-selection paths. 30707 is comparatively localized: harden one logging path for an absent response and add focused regression coverage.
#0 of 0 · 31d18h34m30s ago — current · #import:https:::github.com:berriai:litellm post #2289
#28811 requires cross-layer routing behavior and integration design, while #30721 is a comparatively contained Helm templating and configuration change.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search