When does the Gateway API Inference Extension for LLM routing matter?
The Gateway API Inference Extension matters when several model server replicas share the same GPU pool and requests differ enough in cost that some replicas sit idle while others queue. If your replicas are interchangeable and your requests are short and similar, plain Service load balancing may be enough. The extension adds model-aware endpoint selection on top of Gateway API, so the gateway can pick a replica based on its state rather than rotating through them in turn.
Round-robin load balancing through a Kubernetes Service spreads new connections evenly by count, but it has no view of how busy each model server is. A replica that has just received several long prompts can have a deep request queue and a nearly full KV cache, yet it still receives every third request. The Inference Extension introduces an InferencePool resource that groups model server pods, and an Endpoint Picker that the gateway consults to choose a pod using metrics from each server, such as queue depth and KV cache utilization. Those signals are what make the routing decision different from a generic balancer.
Before you adopt it, confirm three things against the release you plan to run. First, check which gateway implementations support the Inference Extension and which versions of the InferencePool API they serve, because support has been added unevenly across gateway products. Second, confirm which metrics your model server exposes and whether the Endpoint Picker reads them under the same names, since a mismatch silently degrades routing to something close to round-robin. Third, measure your current latency spread per replica before the change so you can tell whether routing is the cause. The Gateway API Inference Extension documentation is the natural next read for the exact API versions and supported gateways.
Model-aware routing starts with the Endpoint Picker's choice inside the cluster
The request starts at a client outside the cluster and reaches a supported gateway, which sits on the trust boundary between external traffic and the cluster network. The gateway asks the Endpoint Picker to choose a target. The picker weighs queue and cache state reported by the model server pods in the InferencePool, then returns its choice so the gateway forwards the request to that pod. Check that each pod exposes the metrics the picker needs, and confirm that your gateway supports the extension.
Request path through the gateway, Endpoint Picker and selected model server pod.
Which routing option fits which traffic pattern
This table compares plain Service load balancing, Gateway API routing without model awareness, and the Inference Extension with InferencePool across request mix, model count, GPU utilization goals and operating effort. Read each row against your own traffic, then check the last row to see what each option asks your team to run.
| Factor | Plain Service load balancing | Gateway API without model awareness | Inference Extension with InferencePool |
|---|---|---|---|
| Request mix | Short, uniform prompts with similar generation lengths | Mixed prompts that routing can split by path, header or host | Mixed prompt and output lengths where queue depth and KV cache state vary per replica |
| Model count | One model or one shared endpoint with identical replicas | Several models split by route rules you maintain by hand | Several models or LoRA adapters where routing must follow which replica holds which model |
| GPU utilization goal | Adequate when replicas are interchangeable and load is steady | Better isolation between model pools, but replicas still receive requests without load awareness | Designed to send requests to the replica best placed to serve them, using queue and cache signals |
| Scheduling signal | Round-robin or connection-based distribution | Route match rules only | Endpoint Picker scores replicas using inference server metrics |
| What the team runs | Kubernetes Services and an ingress or load balancer | A Gateway API implementation plus HTTPRoute objects per model | A supported gateway, InferencePool and Endpoint Picker, plus metrics from each inference server |
| Operating effort | Lowest, with familiar tooling | Moderate, mostly route maintenance as models change | Highest, with version compatibility between gateway, extension and inference server to confirm before each upgrade |
| When to choose it | Few models, uniform traffic and little benefit from smarter placement | Several model pools that need separation but not load-aware placement | Variable LLM traffic across replicas where queue or cache state changes outcomes and your team can run the extra components |
Signs plain Service load balancing is not enough
A Kubernetes Service spreads connections across pods without knowing what each model server is doing. The signals below show where that blind spot costs latency, throughput or cache hits, and what to measure on your own replicas before choosing a model-aware router.
Long-running generation requests
Token generation holds a connection open for seconds or minutes, and request cost varies with prompt length and output length. Round-robin assumes equal work per request, so one replica can accumulate several long generations while another sits nearly idle. Measure request duration percentiles and tokens generated per request, per replica, over a representative week of traffic.
Uneven queue depth across replicas
Queue depth is the clearest signal that a replica is saturated, yet a Service has no view of it. Two replicas can receive the same share of new connections while one holds a backlog of waiting requests and the other has free batch slots. Check the queue and running request gauges your inference server exports, and compare their spread across replicas during peak load before deciding.
Multiple models or LoRA adapters behind one endpoint
When one hostname serves several base models or fine-tuned adapters, a request must reach a replica that already has the right weights loaded. A plain Service sends it to any pod, which can trigger a model load, an error or a fallback to the wrong model. List each model and adapter, the replicas that host it, and how the client selects one today.
Cache reuse tied to replica placement
Prefix or KV cache hits occur only on the replica that already processed a shared prompt prefix. Round-robin scatters a conversation across replicas, so each turn recomputes context the previous replica had cached. Measure prefix cache hit rate and time to first token for multi-turn sessions before and after sticky routing is tested in a staging environment.
Hardware and capacity differences between pools
Replicas may run on different GPU types, memory sizes or accelerator counts, so the same request has different cost on each. A Service treats them as identical and overloads the smaller pool first. Record the accelerator, memory and max batch settings for each pool, and confirm that load tests reflect the mix your production traffic will actually see.
Supported gateways and what to confirm before choosing one
Many clusters already run an ingress controller for north-south traffic. Whether it can host model-aware routing depends on how it implements the Gateway API and which API version it expects, so the first question is whether the controller already occupies the gateway role.
- Gateway API resource support: Confirm the controller implements the Gateway, HTTPRoute and related resources the extension relies on, in addition to the older Ingress resource.
- Version pinning: Check which Gateway API version the controller release expects, and whether a CRD upgrade affects other routes in the cluster.
- Listener ownership: Find out which team manages the existing Gateway resources and whether a second gateway can share the same entry point.
- Live traffic risk: Plan changes to a production ingress path in a maintenance window with a tested rollback route.
Check the project's current supported gateway list before assuming your controller qualifies.
Service meshes bring their own gateway resources and data planes. Using a mesh gateway for model traffic means the inference routing shares configuration, upgrade cycles and failure domains with the mesh.
- Mesh version coupling: Mesh releases and Gateway API support often move together, so confirm the mesh version and the Gateway API version it bundles.
- Proxy overhead on GPU pods: Decide whether model server pods join the mesh, because each sidecar adds a proxy hop to latency-sensitive inference calls.
- Policy overlap: Check how mesh authorization and mTLS policies interact with routes that point at inference pools.
- Ownership of route objects: Mesh upgrades usually belong to a networking or platform team, so agree in writing who owns the inference route objects.
Confirm against the project's supported gateway list that your mesh's gateway implementation is listed, since listing the mesh alone does not cover its gateway.
Dedicated Gateway API controllers implement the API without a full mesh or ingress product. They suit clusters that want a single, purpose-built entry point for model traffic and a smaller set of moving parts.
- Maintenance record: Review the release cadence, security response process and published conformance results for each controller you evaluate.
- Feature coverage: Confirm the controller supports the endpoint selection flow the extension uses, along with any header or body handling your clients need.
- Upgrade coupling: Each controller targets specific Gateway API versions, so plan CRD and controller upgrades as one change.
- Support path: Identify who responds when a controller defect blocks model traffic, whether that is a vendor, a community project or your own team.
Check the current supported gateway list and the Gateway API version each controller release targets before you commit to one.
Cloud providers offer managed gateways that can route to in-cluster services when your Kubernetes runs in that cloud. The trade-off is that the provider operates the data plane, sets its versions and controls the timing of rollouts.
- Service-specific support: Support for the extension may differ by provider and service, so confirm the exact managed offering and version you would use.
- Request data location: Confirm where request bodies are processed and logged, since a managed data plane may sit outside your cluster boundary.
- Upgrade control: Find out whether you can pin versions or must follow provider rollouts on the provider's schedule.
- Disconnected networks: Managed gateways may depend on provider-hosted control planes, which can conflict with air-gapped or restricted network designs.
Ask the provider in writing which gateway version and Gateway API version it runs, and whether the extension is supported on that service.
How to set up inference routing on an existing cluster
This sequence adds model-aware routing in front of self-hosted LLM servers that already run on your cluster, so requests reach the replica best placed to serve them. Each step ends with a check that tells the team whether to continue.
Confirm model servers and metrics are ready
The platform team confirms that the GPU model server pods start, load the intended model, pass readiness probes and expose metrics over HTTP that a scheduler can read. Queue depth and KV cache utilization are the signals the Endpoint Picker depends on, so confirm which metric names your server version exports and document them. Done means a port-forward or curl to a single replica returns a valid response and the metrics endpoint shows the expected series for that replica.
Install Gateway API CRDs at a supported version
The cluster administrator installs the Gateway API custom resource definitions at the version the inference extension documents as supported, and confirms the version with the project's compatibility notes before installing. Check whether a CRD bundle already exists on the cluster, since a mismatched or partial install is a common source of failure later. Done means the Gateway, HTTPRoute and related resources are listed by the API server at the expected version.
Deploy a supported gateway implementation
Install a gateway controller from the project's list of supported implementations, and confirm that it supports the inference extension in the version you chose. Create the Gateway resource and assign it an address that clients inside your network can reach. Done means the gateway reports an accepted and programmed condition and its data plane pod or load balancer is healthy.
Create the InferencePool for model server pods
Create an InferencePool whose selector matches the labels on your model server pods and whose port matches the server's serving port. Keep the selector narrow so that only replicas serving the same model and version join the pool. Done means the pool lists the expected number of endpoints and the pods appear as ready members.
Deploy the Endpoint Picker
Deploy the Endpoint Picker, the component that scores pool members using queue and cache signals, and point the gateway at it through the extension reference the project documents. Grant it read access to the pool and pod objects it needs and nothing broader. Done means the picker starts, logs that it has synced with the pool, and reports a selection for a test request.
Define HTTPRoute rules to the pool
Write an HTTPRoute that attaches to the gateway and sends matching paths or headers to the InferencePool as its backend, rather than to a plain Kubernetes Service. Keep any fallback or legacy route explicit so that traffic for other models is not silently captured. Done means the route reports accepted and resolved references, and a request sent through the gateway returns a model response.
Verify with test traffic and metrics
Send a controlled set of requests with mixed prompt lengths and concurrency, then compare distribution across replicas in the server metrics and gateway logs. Confirm that a replica under heavy queue load receives fewer new requests, and that failed endpoints are removed from selection. Record results and agree the acceptance criteria with the service owner before exposing the route to users. Done means the test report shows routing behavior matches the documented expectations.
Security and operational considerations for the inference gateway
An inference gateway sits in front of GPU-backed model servers, so it inherits the access, transport and upgrade risks of both the cluster and the models behind it. The cards below cover the controls to set and the coupling to plan for before the route goes live.
Restrict who can change routes
InferencePool and HTTPRoute objects decide where production prompts go. Limit create, update and patch rights on these resources, and on the Gateway they attach to, to a small platform group through Kubernetes RBAC. Review who holds these rights in each namespace, because a broad grant on routes can redirect traffic to an unapproved model server. Confirm the exact resource names and API groups against the version you run.
Kubernetes authentication docsTerminate TLS at the gateway
Decide where TLS is terminated and whether traffic between the gateway and the Endpoint Picker, and between the picker and model pods, is encrypted. Confirm with your gateway implementation which certificate sources it supports and how certificates rotate. Client authentication for callers, such as tokens or an API gateway in front of the inference gateway, should be decided and tested separately from cluster authentication.
Limit traffic with network policies
Write network policies so only the gateway data path can reach the Endpoint Picker, and only the picker can reach the vLLM pods that serve inference. Model servers should not be reachable directly from other namespaces. Confirm that your CNI enforces network policy, since a policy object that is not enforced protects nothing. Test the policies with a pod outside the allowed path.
Control metrics exposure
Picker and model server metrics can reveal queue depth, cache usage and request patterns. Decide which metrics scrapers may read these endpoints, restrict scrape access through network policy or authentication, and keep prompt content out of logs. Confirm which metrics your picker and vLLM versions expose and whether any include request identifiers that need handling under your data rules.
Align gateway, picker and vLLM upgrades
The gateway, the Endpoint Picker and the model server each have their own release cycle, and the picker depends on metrics and scheduling behavior from the model server. Before any upgrade, check the compatibility matrix for your gateway and picker versions and the vLLM version they were tested with. Upgrade in a staging cluster first, then roll the picker before the model fleet, and keep the previous versions available for rollback.
Version skew policyVerify the cluster baseline
The inference gateway inherits cluster-wide settings. Confirm that Secrets holding model registry or API credentials are encrypted at rest and readable only by the workloads that need them, and that the namespaces running inference workloads enforce a Pod Security Standard. Use the CIS Kubernetes Benchmark as a checklist for control-plane and node settings, and record which items your distribution already covers.
CIS Kubernetes BenchmarkQuestions buyers ask about inference gateway routing
What drives the effort and cost of adding an inference gateway layer?
The main driver is how many model deployments sit behind the gateway and how different they are from each other. Each pool of model server replicas needs its own configuration, health signals, and scheduling behavior, and the team must confirm that the chosen gateway implementation supports the Inference Extension resources it plans to use. Cost has two parts: the one-time design and build work (pool definitions, gateway selection, metrics wiring, and load testing) and the recurring work of keeping the gateway, the Endpoint Picker, and the model servers aligned on upgrades. A partner quote should separate those parts, list the gateway and model servers in scope, and state how many routing policies will be tested. Ask who pays for GPU capacity used during load tests, since that cost sits outside the engagement fee.
How long does a pilot usually take, and what drives that?
Duration depends on the number of model pools, whether the platform already runs a supported gateway, and how much routing logic the team wants to prove before production. A pilot with one model pool and a single routing signal, such as queue depth, is much shorter than one that compares routing on queue and KV cache state across several models. Access to GPU nodes, a working model server image, and a reachable metrics pipeline often take longer than the gateway configuration itself. Ask the partner to tie the timeline to named milestones, such as a working route, a load test against a baseline Service, and a rollback test, and to say which of those depend on your teams. No timeline is promised here until the scope is written.
What does the work need from our platform and ML teams?
The platform team provides the Kubernetes cluster, the gateway controller, TLS and DNS, and the network path from the gateway to model server pods. The ML team provides the model servers, their startup and health behavior, model versions, and the load patterns that matter for routing decisions. Both teams need to agree on which metrics the model servers expose, because routing on queue and cache state depends on those signals being scraped and trusted. Expect a few working sessions to settle naming, labels, and ownership of each InferencePool. Confirm in writing who approves changes to routing policy and who is on call when a pool degrades.
Can our in-house team run an inference gateway on its own?
A team that already operates Kubernetes ingress, GPU nodes, and a model serving stack can usually run the gateway itself once the design is settled. The harder part is the ongoing judgment: tuning endpoint selection when traffic shifts, handling a model rollout without starving requests, and diagnosing why a route looks healthy while latency rises. Ask whether your engineers have already operated the gateway implementation you pick, and whether they have the time to keep up with changes in the Gateway API and Inference Extension projects. A useful test is whether the team can run a planned pool failure and recover without outside help.
How does an inference gateway differ from a model serving framework?
A model serving framework such as vLLM runs the model and exposes an inference API on each replica. An inference gateway sits in front of those replicas and decides which replica receives each request, using routing signals that plain Service load balancing does not see, such as queue state and cache state. The two work together: the serving framework produces the metrics and the gateway consumes them. A serving framework alone is usually enough for a single model with few replicas and uniform traffic. Once several models or pools share GPUs and request costs vary widely, the routing layer becomes a separate design decision with its own failure modes.
Is plain Service load balancing enough for our LLM traffic?
It is often enough when replicas are identical, requests are short and similar in cost, and no one needs routing by model or by cache state. Round-robin balancing spreads connections but cannot see that one replica has a long queue or a cold prefix cache. Signs that a model-aware layer is worth testing include uneven latency across replicas under load, long-running generations that block short requests, and several model pools that need separate endpoints under one address. Ask the partner to run a baseline test on your current Service setup first, so the gain from any added layer can be measured against real numbers.
What should we ask a partner for in a quote?
Ask for a written scope that names the gateway implementation, the Inference Extension version, the model servers, and the number of InferencePools. Request the list of deliverables, such as manifests, metrics dashboards, load test reports, a runbook, and a rollback procedure. Ask which items are one-time and which are recurring support, and what upgrades to the gateway or the model servers would cost to keep current. Confirm who provisions GPU capacity for testing, what access the partner needs, and how changes outside the agreed scope are handled. DeployOpen provides a quote after the written scope is agreed, and most engagements are fixed-scope.
How DeployOpen scopes an inference routing engagement
An engagement starts with a written scope, not a build. Before any work begins, DeployOpen and your team agree in writing on the model servers in scope, the gateway implementation that will sit in front of them, the traffic tests that define success, and the handover that leaves your team able to operate the result. Each of these is a decision with consequences. The model server list fixes which InferencePool objects are needed and which serving engines must expose the metrics the Endpoint Picker reads. The gateway choice determines which controller implements the Gateway API resources and whether the Inference Extension is supported on it, which you must confirm with that gateway's vendor or project before the scope is signed. The traffic tests define the baseline you compare against, such as a plain Service load balancer, so the scope states what improvement is being measured.
The client provides the facts the design depends on. Expect to supply cluster access with the permissions needed to install Gateway API CRDs, controllers and inference resources in a non-production namespace first. Provide GPU node details, including GPU models, memory per device, driver and CUDA versions, and whether nodes are shared through time-slicing or MIG, because those settings change how many replicas can be scored independently. Provide a model inventory listing each model, its serving engine and version, its context length, and whether replicas must be pinned to specific hardware. Also name the people who will own the platform after handover. Missing inventory is the most common reason a scope grows mid-build, so ask for it before the scope is written rather than during the first sprint.
Scope the handover and the retest as deliverables. A routing change that only works on the day it is installed is not finished. The written scope should list the runbooks for changing pool membership, the dashboards for queue and cache signals, the rollback steps for returning to a Service in front of the models, and the traffic test scripts your team can rerun after upgrades to the gateway or the serving engine. Ask each proposed partner to state which of these are included in the fixed scope and which would be quoted separately as a retainer, so you can compare proposals on the same basis.
How DeployOpen works on this
DeployOpen plans, builds, tests, documents and supports self-hosted open-source platforms inside your own infrastructure. For LLM traffic routing, that means working out which model-aware routing your inference workloads need, deploying it in your clusters, and handing over the configuration and runbooks your platform team will operate.
How we scope
- We confirm which inference servers, models and gateway implementation are in use before recommending a routing design.
- We record which gateway implementations and Gateway API versions your cluster supports, and list those to confirm with each vendor.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any build work starts.
How we build
- We deploy the InferencePool and Endpoint Picker configuration in a non-production cluster first, using your own image registry and GPU nodes.
- We test routing behavior under queue and cache pressure with representative prompt traffic and compare it with plain Service load balancing.
- We integrate the setup with your identity, TLS, metrics and autoscaling so it fits your existing platform controls.
How we hand over
- You receive the manifests, Helm values and version pins used in the build, stored in the repository your team chooses.
- You receive runbooks covering pool membership changes, endpoint failures, gateway upgrades and rollback steps.
- Knowledge transfer sessions walk your platform and inference engineers through the design decisions and the test results.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
- Retainer work can cover Gateway API and inference extension version upgrades, checked against the release notes you approve.
- Routing behavior can be retested after model, server or gateway changes, with findings and fixes documented for your team.

