Cover image for LiveWyer blog post: [K]inference puts inference policy in YAML, but who writes it?
Engineering • 11min read

[K]inference puts inference policy in YAML, but who writes it?

We ran [K]inference on three GPUs. It routes well, but tenant identity, data residency, and isolation are still yours to write into the YAML.

Written by:

Avatar Louise Champ Louise Champ

Published on:

Last updated on:

On 4th November 2026, Buoyant, the company behind Linkerd, announced [K]inference on the vLLM blog. It is an open source “inference control plane” which sits between your clients and a pool of vLLM workers on Kubernetes, and decides where each request goes.

Most organisations running open models today have a handful of separate vLLM deployments, one per team or per application, each with its own GPUs sitting idle for part of the day. [K]inference is built to turn those into a single pool that many teams share, with routing rules in an InferencePolicy resource that you can review, lint, commit to git, and roll back. As platform engineers, we like this a lot.

What it also does is turn your GPUs into a multi-tenant platform. We recently wrote about the three dials every multi-tenant Kubernetes platform trades off: isolation, control, and cost. A pool of GPUs serving several teams has the same dials, and [K]inference gives you a place to set them without deciding where they should be set.

We read its documentation, README, and CRDs for the current release, 0.1.0-alpha.8, with that lens, then ran it on a local cluster and on three GPUs in AWS. The setup and all four demos are in LiveWyer’s Labs repository, if you want to try them on your own cluster.

What does [K]inference add in front of vLLM?

vLLM serves a model on a set of GPUs; [K]inference decides which worker and which model to send a request to, and whether a request should leave the cluster at all. It deploys as a traffic gateway and an inference handler behind an OpenAI- or Anthropic-compatible endpoint, and adds three capabilities not provided by a plain Kubernetes Service:

  • Inference-aware load balancing, which picks the vLLM worker with the shortest queue and which has the most of the prompt already in its KV cache.
  • Declarative routing policy through the InferencePolicy CRD, matching on the model or the tenant, and choosing between local workers and external providers such as Amazon Bedrock or Databricks.
  • Per-tenant metrics, such as tokens in and out, time to first token (TTFT), and cached against uncached prompt tokens.

The routing gain depends on what your tenants send

Buoyant’s benchmark write-up pits [K]inference against a plain Service, where kube-proxy picks a pod at random, running on three L40S GPUs, and reports about 7.4 times the goodput on traffic built on shared prompts.

A shared prompt is a long opening which many requests have in common, such as an agent’s system prompt, and vLLM can skip recomputing it on a worker which has already seen it; the job of [K]inference is to send the request to that worker.

We ran a similar comparison on three A10G GPUs on EKS 1.37, with Qwen3-8B in FP8 and vLLM 0.31.0, one run per load level. Between runs we changed the number of shared prompts, since one team’s agent might have a handful of system prompts and another’s might have dozens.

  • With 8 shared prompts of about 8,000 tokens, a plain Service was able to keep up with [K]inference, at about 87 requests a minute each, because every worker could cache all eight.
  • With 24 shared prompts (too many for one worker’s cache but few enough for the pool to hold between them), [K]inference served about 27% more requests (45 a minute against 36), and at 16 concurrent requests, its slowest tenth waited 11 seconds for a first token against 17. That is useful, but not anywhere near 7.4 times.
  • With 48 shared prompts, more than all three caches together, nothing stayed warm, so the gap shrank to between 0 and 12%.
  • With unique prompts, [K]inference still served up to a quarter more, because it was able to balance on queue length.

What this means for you: the gain comes from two places. Queue-aware balancing helped even on unique prompts, while KV cache reuse depends on your tenants’ traffic, and shows when their shared prompts outgrow one worker’s cache but can still fit the pool’s. Find out which kind of tenants you have before you build a business case on the headline figure.

Who is a tenant, and who pays?

[K]inference can match rules on a tenant and report metrics per tenant. Deciding what a tenant is is up to you.

In a namespace-per-team cluster, the tenant boundary is, of course, the namespace. A request to a shared inference endpoint has no namespace, only whatever identity the calling application attaches, so the platform needs a rule for what that identity means (a team, an application, or a cost centre), and a way to stop one application claiming to be another.

In [K]inference, the tenant is simply the value of a request header which you name in the chart (x-tenant on our test cluster), so unless something in front of the gateway sets that header, any client can claim to be any tenant.

Cost depends on that header as well. Per-tenant token counts give you showback, but only while the header is honest; a team which sends another team’s value moves its bill with it. Idle time is harder, because a pooled GPU costs the same whether it serves one request an hour or a thousand, so decide up front whether idle capacity is split by each tenant’s share of tokens, charged to the teams which asked for it, or carried centrally by the Platform team.

Isolation: one tenant’s batch job is everyone’s latency

The noisy neighbour problem is worse on GPUs than on CPUs, because a long batch of prompts fills both the queue and the KV cache that every other tenant’s requests are competing for.

When we tested it with [K]inference, an interactive tenant on its own waited a median of 0.1 seconds for its first token. Once a second tenant started a batch job of 48 concurrent long documents, that median rose to 59 seconds.

[K]inference’s answer is token rate limiting per tenant, which the README lists as not yet implemented. In the meantime, the tool that can be used is policy. We added a rule for the batch tenant which skips any worker with more than one prompt queued or a cache over 60% full, and rejects the request when none are left. The interactive tenant’s median came down to 1.4 seconds, and the batch job still managed to get through 86% of its earlier work. However, it did so by having thousands of requests turned away with a 403.

Until rate limits are implemented, every batch client on the pool needs its own backoff, or it will spend most of its time collecting 403s; ours sent over 10,000 requests to get 142 of them served. The rule also only catches requests which say they come from the batch tenant, so a batch job sending any other x-tenant value skips it entirely, and nothing stands between it and the interactive tenant again.

Control: one shared policy, and a PII rule that fails open

Each pool in [K]inference points at a single InferencePolicy, so every tenant’s rules live in one file. A rule without a matches block applies to every tenant, so one team’s change can reroute everyone else’s requests, and somebody has to own that file and review each change to it, much like a shared ingress on a multi-tenant cluster.

That reviewer does get some help from [K]inference. When one of our rules used a condition which only applies to local workers, the policy’s status named the field, warned that it “silently never drops” the others, and gave the fix.

Here is the launch example for keeping personal data on the cluster:

spec:
  rules:
  - name: serve
    route:
      exclude:
      - name: pii-never-leaves-cluster
        if:   { tag: pii-detected }
        drop: { backend: { type: Provider } }
      select:
      - { type: Provider, order: [ databricks ] }
      - { type: Local, minimize: PredictedTTFT }
      onEmpty: Reject   # fail closed

It reads as, “never send anything flagged as personal data off the cluster, and fail closed”, which a data protection officer would happily sign off. However, in 0.1.0-alpha.8 the classifiers which would attach a pii-detected tag do not exist yet, and the CRD says so: “Nothing sets tags on requests yet: the router sends an empty set”.

When we tested it, we pointed the provider at a mock which logs every request, and sent a request containing a patient’s name and NHS number, so a PII leak would be obvious in the mock’s log. Nothing told [K]inference that this was personal data, because nothing in the alpha can: with no classifier, the request carried no tags, the exclusion never matched, and the prompt went straight to the mock along with its internal tenant header.

It did so with a local worker sitting idle, because the policy lists the provider first, and again with the local workers scaled to zero. onEmpty: Reject never came into it, because it only applies once every backend has been excluded, and the provider never was. Any other request would have gone the same way.

The fix is a data residency rule which fails closed, letting a request leave the cluster only on positive evidence that it may. We changed the exclusion to drop providers unless a request carries a pii-cleared tag (if: { tag: { not: pii-cleared } }), and as nothing sets tags yet, the same request came back as a 403 with the local workers scaled to zero.

[K]inference accepted both versions, and the only difference between them is { tag: pii-detected } against { tag: { not: pii-cleared } }, so a reviewer has to know which way round the tag check works to spot that one of them leaks.

Day two: an alpha on the request path

[K]inference sits in front of every GPU in the pool, so its own reliability becomes every tenant’s reliability.

The first problem we hit on GPUs did not look like a problem at all. Out of the box, [K]inference asks vLLM’s /render routes for each prompt’s token IDs, and on vLLM 0.31.0 (the release Buoyant’s benchmark names), those routes return a 404. [K]inference then routes on load alone, with nothing but a log warning and a kinference_tokenize_total counter labelled unavailable to say so. One chart setting fixed it for us. Until then, every request still came back with a 200, and that counter was the only sign that cache-aware routing was off.

It also runs as a single replica by default, and the README lists multiple replicas as not yet supported. When we restarted it under steady load, it came back in about 8 seconds, and eight requests failed with a 500 inside that window; whichever tenant sent them, they never reached a GPU, so a retry at the gateway would have hidden them, but nothing retried by default.

What we would settle before the first tenant joins

Most of what we ran into is what you would expect from an alpha, and the README is upfront about the gaps; rate limits, classifiers, and multiple replicas are all on its list. Even once they deploy, the decisions behind them stay with the **platform, so these are the questions we would want answered before the first tenant joins:

  • Tenant identity: the tenant is a request header, so decide what a tenant is and what sets that header in front of the gateway.
  • Traffic shape: the routing gain in our runs ranged from nothing to about 27%, depending on traffic shape, so it is worth measuring yours before relying on the 7.4 times figure.
  • Data residency: until classifiers ship, nothing will tag a request as personal data, so residency rules are safer written to fail closed.
  • Isolation: until rate limits ship, a policy can keep batch work away from interactive work, provided the batch clients back off when they are turned away.
  • Cost: who pays for GPU time, idle capacity, and provider spend.
  • Change control: who owns the shared policy, checks the kinference_tokenize_total counter after each upgrade, and adds a retry in front of the single replica.

How can LiveWyer help?

A shared GPU pool is a multi-tenant platform, and we have spent a long time building and running shared Kubernetes platforms for internal teams.

If you are still weighing it up, whether that is [K]inference or any shared inference layer in front of vLLM, book an intro call with LiveWyer. We will look at your teams, your traffic, and your data rules, and help you work out who your tenants are before the first policy goes into git. For the architects designing that platform, our Self-Hosted AI course covers which workloads suit private models and how to build the GPU platform on Kubernetes.

If you are building or running a GPU pool, InferInfra by LiveWyer, our inference infrastructure service, can design, build, or run it for you. Our AI compute engineering service applies our shared platform experience to inference, from comparing provider services with self-hosting to designing multi-tenant GPU platforms. We hold no GPU capacity of our own, so the recommendation is about your traffic and your data rules, as opposed to our margin. AI platform engineering builds what sits around the pool, such as tenant identity, access to internal systems, and repeatable releases, and managed AI infrastructure runs it for you within an agreed boundary. Discuss your infrastructure with InferInfra.

Frequently asked questions

What is [K]inference?

[K]inference is an open source inference control plane for vLLM on Kubernetes, released by Buoyant under the Apache 2.0 licence. It routes OpenAI- and Anthropic-compatible requests to vLLM workers using KV cache contents and queue length, applies routing rules defined in an InferencePolicy resource, and reports per-tenant usage metrics.

Thank you for reading

If you enjoy our writing and would like to see more, add us as a Preferred Source on Google and you'll be more likely to see us in your results.

LiveWyer is a London-based consultancy specialising in deploying small, agile engineering teams to design and implement modern Cloud and Platform solutions.

Book an intro call