vLLM in Kubernetes: Deployment, KServe, or llm-d

Vladimir Lomtev•
vLLM in Kubernetes: Deployment, KServe, or llm-d

You can run vLLM in Kubernetes at three levels: a standard Deployment and Service for a single model and multiple replicas, KServe with the LLMInferenceService resource for a platform with managed model lifecycles, and llm-d directly when you need KV-cache-aware routing, priority queues, and separate prefill and decode. Start with a simple Deployment and move to the next level only when you have a specific need, not by default.

Prepared by Vladimir Lomtev's AI Studio on November 16, 2026, for DevOps and platform teams that already have a Kubernetes cluster with GPUs. We relied on the vLLM Kubernetes guide, the LLMInferenceService overview in KServe and the llm-d 1.0.0 release notes. The manifests were checked for YAML syntax, but we did not apply them to a cluster. Verify API versions against the CRDs installed in your environment.

Contents

What the cluster should have beforehand

  • GPU nodes with the driver and device plugin. It requests the GPU using the nvidia.com/gpu resource (for AMD — amd.com/gpu). This is usually provided by the NVIDIA GPU Operator.
  • A driver compatible with the image. With vLLM 0.33.0, images are built only for CUDA 13.0, so the driver on the nodes must support it. For details, see the November local inference news roundup.
  • Storage for weights. Downloading tens of gigabytes at every pod startup takes a long time. You need a PersistentVolume or a prebuilt image with the weights already included.
  • Access to the model registry. Hugging Face with a token for private models, or an internal mirror if the cluster is in an isolated environment.

Level 1: Deployment and Service

For a single model and several identical replicas, standard Kubernetes objects are enough. The example below follows the manifest structure from the vLLM guide: weights cached on a PVC, token from a Secret, shared memory via emptyDir in RAM, and readiness checks on /health.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: vllm-qwen3-8b
spec:
  replicas: 2
  selector:
    matchLabels: {app: vllm-qwen3-8b}
  template:
    metadata:
      labels: {app: vllm-qwen3-8b}
    spec:
      containers:
      - name: vllm
        image: vllm/vllm-openai:v0.33.0
        command: ["vllm", "serve"]
        args: ["Qwen/Qwen3-8B", "--host", "0.0.0.0", "--port", "8000"]
        env:
        - name: HF_TOKEN
          valueFrom: {secretKeyRef: {name: hf-token-secret, key: token}}
        - name: VLLM_API_KEY
          valueFrom: {secretKeyRef: {name: vllm-api-key, key: key}}
        ports: [{containerPort: 8000}]
        resources:
          limits: {nvidia.com/gpu: "1"}
          requests: {nvidia.com/gpu: "1"}
        volumeMounts:
        - {name: cache, mountPath: /root/.cache/huggingface}
        - {name: shm, mountPath: /dev/shm}
        startupProbe:
          httpGet: {path: /health, port: 8000}
          periodSeconds: 10
          failureThreshold: 90
        readinessProbe:
          httpGet: {path: /health, port: 8000}
          periodSeconds: 10
      volumes:
      - name: cache
        persistentVolumeClaim: {claimName: hf-cache}
      - name: shm
        emptyDir: {medium: Memory, sizeLimit: 8Gi}
---
apiVersion: v1
kind: Service
metadata:
  name: vllm-qwen3-8b
spec:
  selector: {app: vllm-qwen3-8b}
  ports: [{port: 80, targetPort: 8000}]

Explanation:

  • Shared memory. The vLLM guide notes that the engine needs access to the host shared memory for tensor parallelism; emptyDir with medium: Memory is mounted at /dev/shm.
  • Startup check. Model loading takes minutes. The guide warns that if the failure threshold is too low, Kubernetes will restart the container, and the logs will show KeyboardInterrupt: terminated. Here, startupProbe allows up to 15 minutes (90 × 10 seconds), and for your own model it's better to measure startup time by temporarily disabling the checks.
  • API key. vLLM reads it from the VLLM_API_KEY variable. The /health endpoint remains available for probes.
  • Pinned image. Use the v0.33.0 tag instead of latest so upgrades are intentional.

How to build and validate the container itself is covered in the article “How to Run vLLM in Docker”.

The limitations of this level are that Service load-balances requests round-robin and destroys the benefits of prefix caching, there is no priority queue, and scaling based on CPU load is useless for GPU workloads.

Level 2: KServe and LLMInferenceService

KServe is a model serving platform for Kubernetes. For generative models, it has a separate LLMInferenceService resource. According to the KServe overview, it is built on llm-d and combines the vLLM engine with Kubernetes orchestration and routing. The resource supports:

  • deployment on a single node and across multiple nodes through LeaderWorkerSet (spec.worker);
  • separate prefill and decode (spec.prefill);
  • entry through the Gateway API and scheduler with routing by KV cache and load (spec.router);
  • tensor, data, and expert parallelism (spec.parallelism).

Minimal manifest based on the fields from the overview:

apiVersion: serving.kserve.io/v1alpha1
kind: LLMInferenceService
metadata:
  name: llama-3-1-8b
spec:
  model:
    uri: hf://meta-llama/Llama-3.1-8B-Instruct
    name: meta-llama/Llama-3.1-8B-Instruct
  replicas: 3
  router:
    gateway: {}
    route: {}
    scheduler: {}
  template:
    containers:
    - name: main
      image: vllm/vllm-openai:v0.33.0
      resources:
        limits: {nvidia.com/gpu: "1", cpu: "8", memory: 32Gi}

Empty {} for gateway, route and scheduler mean managed defaults. The KServe overview lists API version v1alpha1; some Red Hat 2026 materials mention v1alpha2, so check the CRD in your installation. The latest KServe release on GitHub as of publication is v0.21.0, dated September 25, 2026.

KServe makes sense when you have multiple models, different teams are deploying them, and you need one consistent way to define, update, and expose them externally.

Level 3: direct llm-d

llm-d is a set of components for distributed inference in Kubernetes: a router with an Endpoint Picker based on Gateway API Inference Extension, a KV cache index, request flow control, separate prefill and decode, and autoscaling. The 1.0.0 release from October 20, 2026, highlights four themes: quality of service for multi-tenant setups, zero-downtime operations, a stable router API v1, and agent servicing.

The release components table shows that the base vLLM image for llm-d 1.0.0 is vllm/vllm-openai:v0.30.0, and the Gateway API Inference Extension CRD is version v1.6.2. The project is stopping its own engine image builds and moving to community images from vLLM, SGLang, and TensorRT-LLM.

The llm-d mechanisms are covered in detail in separate articles: priority-based request queuing, KV cache routing across replicas and separate prefill and decode.

Working directly with llm-d makes sense if you need fine-grained routing and scheduling control that KServe does not expose, or if you are building your own platform.

Other options

The vLLM guide also lists other integrations: Helm, NVIDIA Dynamo, KAITO, KubeRay, LeaderWorkerSet, KubeAI, AIBrix, and the vLLM production-stack. Production-stack is the reference architecture from the vLLM team with a router and a Helm chart; the latest chart release on GitHub is vllm-stack-0.1.14 from November 7, 2026.

Level comparison

Deployment + Service KServe LLMInferenceService Direct llm-d
Entry barrier Low Medium: KServe and dependencies High: multiple components
KV cache routing No Yes, through the scheduler Yes, with fine-grained control
Priority queue No Through built-in llm-d Yes
Separate prefill and decode Manually spec.prefill Yes, DisaggregatedSet
Multiple nodes per model Manually through LWS spec.worker Yes
Best fit One or two models, small team Platform for multiple teams Large GPU fleet, in-house platform

Operations: what to plan for at any level

  • Cold start. A new replica can take minutes to load weights. Keep weights on fast storage or in the image, and do not count on instant scaling during a spike.
  • Queue-based scaling. Scaling GPU workloads based on CPU is pointless. Use engine metrics, such as vllm:num_requests_waiting, via Prometheus Adapter or KEDA; what they mean is explained in the article on vLLM monitoring.
  • Updates. A standard rolling update with maxSurge requires a free GPU for the new replica. If one isn’t available, the rollout will proceed with a temporary reduction in capacity.
  • GPU node isolation. Taints and tolerations so unrelated pods don’t land on expensive nodes.
  • Networking. A NetworkPolicy that allows only the gateway to reach the vLLM pods, and the API key stored in a Secret.
  • Load testing. Before users go live, check capacity using the methodology from the article on load testing a local LLM.

How to choose the right level

  1. How many models and teams do you have? One model and one team — start with a Deployment.
  2. Do you have long conversations or shared prompts across multiple replicas? If so, you need cache-aware routing — KServe or llm-d.
  3. Do different departments need different priorities? If yes, use llm-d flow control or a gateway with limits in front of the Deployment.
  4. Is there a team ready to support KServe or llm-d? If not, a complex platform will become a source of incidents.
  5. Validate the choice with a pilot under real load and with metrics before moving users over.

Frequently asked questions

Do you have to use Kubernetes for vLLM? No. For one or two servers, Docker and systemd are simpler. Kubernetes pays off when you have many servers and models, or when it is already the company standard.

Can you run a model across multiple nodes with a regular Deployment? Not directly. For that, use LeaderWorkerSet, spec.worker in KServe or llm-d.

How do you store weights in an air-gapped environment? In internal storage or in a container image pulled through an internal registry. The offline release preparation process is described in the article "LLM without the internet".

Do you need GPU Operator? You need a way to install the driver and device plugin on the nodes. GPU Operator is a common option, but not the only one.

How Vladimir Lomtsev's AI studio helps deploy vLLM in Kubernetes

Vladimir Lomtsev's AI studio deploys LLMs on companies' own servers and integrates them with the infrastructure. For Kubernetes, this means:

  • assess load and choose the level: Deployment, KServe, or llm-d;
  • prepare manifests, weight storage, readiness checks, and access keys;
  • configure metrics, queue-based scaling, and the update procedure;
  • run a load test and train the operations team.

The first step is to choose one model and one service, record the expected number of users and target latency, and validate them in a test namespace. Discuss the project.

Bottom line: from simple to advanced

For most companies, a Deployment and Service with proper readiness checks, a weight cache, and a pinned image are enough to get started. KServe is needed when the number of models and teams grows, and llm-d directly when routing, queues, and separate phases require fine-tuning. Move to the next level only when measured demand justifies it.

Request an audit

Share your contact details and we will follow up.

← All articles

Comments (0)

Loading comments…

Leave a comment
No registration required

Book a strategy call
for agentic operations

Tell us which workflow you want to improve. We will map feasibility, risks, and the fastest MVP path.

By submitting, you agree to our privacy policy

Contacts

Global Operations

Serving U.S. clients remotely
with private cloud and on-prem options

Strategy calls by request

We respond after reviewing your workflow context.

info@agentsunrise.pro

For partnership inquiries

Have a proposal?

Write to us in messengers

© 2026 AgentSunrise