Moving vLLM from Docker hosts to Kubernetes

A team running vLLM containers on individual GPU hosts needs to know what maps to Kubernetes, what does not, and how to cut over without losing serving capacity.

On this page

Why moving vLLM from Docker hosts to Kubernetes is mostly a serving-layer change

Moving vLLM from Docker hosts to Kubernetes is mostly a change in the serving layer, not in the engine. The vllm serve process, its OpenAI-compatible endpoints such as /v1/chat/completions, and the model and flags you already tuned stay the same. What changes is everything around the process: how pods are placed on GPU nodes, how replicas are started and replaced, where model weights and shared memory come from, how health is checked, and how traffic reaches each replica. Your client applications should not need to change their request code, but they will see new endpoints, new addresses and new failure behavior when a pod restarts.

The effort depends on three things you can measure now: how your GPUs are exposed to the cluster and whether the scheduler can allocate them as whole devices, how large your model volume is and how fast it must load into each new pod, and how many GPU hosts you are consolidating into the cluster. A single model on one node with fixed replicas is a small change. Several models sharing a GPU pool, with autoscaling and multi-node parallelism, is a much larger one. Confirm each of these with your platform team before estimating, because they drive most of the work.

Start by listing what each Docker host does today: the image tag, the --shm-size setting, the volume that holds the model cache, the port published to the network, and any restart policy. Each item maps to a Kubernetes decision. Shared memory needs an explicit memory-backed volume, the model cache needs a persistent or shared volume so new pods do not download weights on every start, and health checks need a startup probe long enough for your model to load. The /metrics endpoint and the API key behavior described in the vLLM security documentation also need a deliberate decision, because some endpoints are not protected by --api-key and should be filtered at a gateway or ingress.

Routing across replicas is the other change that teams underestimate. A single Docker host has one address; a Kubernetes Service spreads requests across pods that may still be loading weights or may be busy with long generations. Plan the readiness signal, the load-balancing method and the request timeout together, and test them with real prompt lengths. Multi-node parallelism adds another constraint: the vLLM parallelism and scaling documentation describes node-to-node communication that is insecure by default, so those nodes need an isolated network from the start.

Which Docker host settings map to Kubernetes and which need redesign

This table pairs each setting in a single-host vLLM docker run command with its Kubernetes counterpart and marks the ones that do not carry over. Read the middle column for the direct translation and the last column for what the team must redesign before cutover. The main takeaway is that GPU access and the API port translate easily, while model caches, host ports and unauthenticated node-to-node traffic need a new design.

Docker host settingKubernetes equivalentCarries over directly?
GPU access (--gpus)GPU device plugin resource requested in the container resources, such as nvidia.com/gpu, scheduled onto GPU nodesYes
Shared memory (--shm-size)Memory-backed emptyDir mounted at /dev/shm, sized to the tensor parallel workloadNo
Model volume (host bind mount)PersistentVolumeClaim with a read-only mount, or a pre-staged volume, instead of a host path tied to one machineNo
Published port (-p host:container)ClusterIP Service in front of the pods, with ingress or a gateway for external clients rather than fixed host portsNo
Environment variables (-e)Container env entries, with API keys and tokens moved into Kubernetes Secrets that have encryption at rest and tight RBACYes
Restart policy (--restart)Deployment or StatefulSet restart behavior, plus readiness and liveness probes tuned to model load timeYes
Command arguments (vllm serve flags)args or command in the pod spec, or values held in a Helm chart, reviewed per release because flags can change between vLLM versionsYes
Health check (--health-cmd)Readiness probe on /health with a startup probe long enough for weight loading, since /health does not depend on the model being readyNo
Multi-node traffic between hostsPod-to-pod traffic that is unauthenticated and unencrypted by default, so it needs an isolated network policy scope and a planned trust boundaryNo
Exposed metrics endpointPrometheus scrape of /metrics through a ServiceMonitor, with the endpoint kept off public ingressNot applicable

Documented deployment paths for vLLM on Kubernetes

The vLLM docs list several ways to run the server on Kubernetes, and they differ mainly in how much they manage beyond a single pod. Pick the path by first deciding whether each replica fits on one node or must span several, then translate your existing Docker Compose files or run commands by hand into the chosen format.

Native manifests

Plain Deployment, Service and PersistentVolumeClaim objects that you write and version yourself. This fits a single-node-per-replica move best, because each replica maps directly onto one container that today runs on one GPU host. You own every flag, probe and volume, so the translation from your current run command is a direct one. Confirm the image tag and vLLM version you pin before copying any example.

vLLM Kubernetes docs

Helm chart

A templated package that renders the same kind of objects from a values file, so environments differ only in their overrides. It suits teams that run several model services and want one reviewed template for all of them. Check the chart version against the vLLM release you pin, since chart defaults for arguments, images and probes can change between versions.

vLLM production-stack

A serving stack from the vLLM project that adds routing across multiple engine replicas on top of the basic deployment. It matters when the move is about running several replicas behind one endpoint, not only relocating one container. Ask what the stack adds to monitoring, cache handling and upgrades, and which parts you must operate yourself.

KServe

A model serving platform that manages inference services as custom resources and handles scaling and revisions. It fits organizations that already run KServe for other models and want vLLM to follow the same release process. It adds a platform layer to install, secure and upgrade, so confirm that the cluster team owns it before choosing it for one model.

KubeRay

The Ray operator for Kubernetes, which lets vLLM use Ray as its backend when one model spans several nodes. Choose it when pipeline parallelism across nodes is required, because a single-node replica does not need Ray. Multi-node communication between nodes is insecure by default in vLLM, so the isolated network and Ray cluster access need a deliberate design.

Parallelism and scaling docs

LeaderWorkerSet

A Kubernetes API for groups of pods that start, scale and restart together, which maps well onto one leader and several workers for a multi-node model. Use it when a replica is a group of nodes rather than one pod, and test what happens when one member fails. Confirm the LeaderWorkerSet version your cluster supports, because it is a separate component you must install and maintain.

How the Docker-to-Kubernetes cutover runs in phases

The sequence moves vLLM from single GPU hosts to Kubernetes in stages that each end with a check, so traffic shifts only after the new replicas match the old ones.

  1. Inventory running containers, flags and model sources

    Your team lists every vLLM container on each GPU host: image tag, the full vllm serve arguments, environment variables, mounted model and cache paths, shared memory size, and where each model's weights come from. The owning team confirms which clients call each host and which endpoints they use, including /v1/chat/completions and /v1/embeddings. Done means one inventory document per host that a second engineer can rebuild a container from, with every flag written out rather than inferred from memory.

  2. Stand up a pilot namespace with one replica

    Deploy one vLLM replica in a dedicated Kubernetes namespace using the manifest, Helm chart or serving stack chosen earlier, with the same image tag and arguments from the inventory. Confirm that GPU scheduling, shared memory, the model cache volume and the API key configuration behave as they did on the host. Done means the pilot answers test requests through an internal service, and the team has recorded any argument that had to change for the cluster.

  3. Tune probes against measured model load times

    Start the pilot from a cold cache several times and record how long the server takes to load weights and become ready, including the first request after startup. Set the startup, readiness and liveness probes from those measurements with margin, so Kubernetes does not restart a replica that is still loading. Done means probe settings are written into the manifest with the measured values noted beside them, and a forced restart returns the replica to ready without a crash loop.

  4. Run Docker hosts and replicas in parallel behind a gateway

    Place the existing hosts and the Kubernetes replicas behind one gateway or router, and send a small, controlled share of traffic to the cluster. Compare latency, error rates, token throughput and KV cache use between the two sides using the Prometheus metrics the server exposes at /metrics. Done means both sides serve the same requests with comparable results over a period your team agreed in advance, and any gap has a recorded cause.

  5. Cut over by moving routes

    Shift the gateway routes from the Docker hosts to the Kubernetes service in steps, keeping the hosts reachable and their routes ready to restore. Confirm that the allowlisted endpoints are the only ones exposed to users, because the vLLM API key does not cover /metrics, /health or /pause. Done means all user traffic reaches the cluster, the routing change is recorded with its time and operator, and the rollback route has been tested once.

  6. Decommission hosts after rollback criteria are met

    Keep the Docker hosts idle but available for the rollback period agreed before cutover. Once the agreed error, latency and throughput criteria hold on the cluster, remove the hosts from the gateway, archive their inventory and configuration, and release the GPUs back to their owners. Done means the host inventory is archived, the rollback criteria record shows they were met, and no client still references the old endpoints.

How to route traffic across vLLM replicas

A Kubernetes Service in front of a Deployment is the simplest way to spread requests across vLLM replicas. Kube-proxy distributes new connections across ready pods, which is enough when every replica serves the same model with the same settings and requests take similar time. The Service does not know how loaded each replica is, how much KV cache is in use or whether a replica already holds a prompt prefix in cache, so a few long generations can leave one replica busy while others sit idle. Because the Service exposes the whole pod port, it also exposes every path the server answers on.

  • Connection-level balancing: Traffic is spread per connection, so long-lived HTTP/2 or keep-alive connections can concentrate load on one replica.
  • No load signal: Routing ignores queue depth and cache state, so latency can vary between replicas under mixed workloads.
  • Readiness drives membership: A replica joins the endpoint list only after its readiness probe passes, which ties routing to the load-time settings in your probes.
  • Everything on the port is reachable: A Service that targets the API port passes /metrics, /health and /pause as well as the /v1 routes, so it cannot enforce an allowlist by itself.
  • Low running cost: There is no extra component to patch or size, which suits a first cutover.

Before relying on this option, confirm with your platform team how the Service is exposed and which paths reach users, and whether your traffic pattern tolerates uneven load.

Setting probes and model cache volumes for slow model loads

The first decision is the startup probe, because a vLLM pod spends a long time loading weights and, depending on the engine configuration, compiling kernels before it can answer requests. Set the startup probe's failure threshold and period from timings measured on your own hardware and your own model, not from figures copied from another team's cluster. Run the container on one GPU host the way it runs today, time the interval from process start until the server answers, and repeat the test after a cold start with an empty cache and again with a warm one. Use the slowest measured value as the basis, then add margin. Confirm with your platform team how long a node takes to pull the image and how long scheduling takes on a busy cluster, since both count toward the window before the process starts.

Keep the liveness probe away from the loading phase. If liveness checks begin before the model is ready, the kubelet can restart a pod that is still doing legitimate work, and the restart throws away the load you just paid for. Let the startup probe gate liveness, and point readiness at /health so that traffic only reaches replicas that have finished loading. Check which endpoints your version exposes and whether /health answers while the model is still loading, because the readiness probe is the control that keeps requests away from a replica that cannot serve them yet. The vLLM on Kubernetes guide is the place to confirm the probe paths your chosen manifest or chart already uses.

Storage for weights and shared memory deserves the same measured approach. Tensor parallel workers exchange data through shared memory, and a container's default /dev/shm is often too small for that traffic, so mount an emptyDir with medium: Memory at /dev/shm and size it from your own tests with the chosen tensor parallel degree. For weights, decide between a PersistentVolume or shared filesystem that holds a model cache, and baking weights into the image. Baking makes image pulls large and slow to roll out but keeps each replica self-contained. A cache volume shortens restarts and scale-out but adds a shared storage dependency and a write path that must be controlled. If the environment is air-gapped, --enable-offline-docs and the chat template settings also change what the image must contain, so confirm both against the vLLM online serving documentation before you fix the image contents.

What drives the cost and duration of the move

This table compares the factors that change the effort of moving vLLM containers from Docker hosts to Kubernetes, with what each one adds and how to keep it under control. vLLM has no license fee, so the spend comes from GPU capacity, surrounding infrastructure, implementation work and the people who operate the service, and the drivers below decide how much of each you will pay for.

DriverWhy it changes cost or effortHow to keep it down
Number of model variants and weight sizeEach model needs its own weight staging, probe timing and GPU placement. Large checkpoints lengthen cold starts and multiply image or volume work.Limit the first cutover to the models in production. Stage weights once into a shared model cache volume.
GPU scheduling modelWhole GPUs, MIG slices and shared node pools each need different device plugin settings, taints and resource requests, and each adds testing.Start with one node pool and whole GPUs. Add MIG or time slicing only after measured load justifies it.
Multi-node needs and backend choiceSpanning nodes with pipeline parallelism adds inter-node networking work and a choice between Ray and the multiprocessing backend, which changes how pods discover each other.Keep models that fit on one node on a single pod. Confirm the backend and network requirements in the vLLM parallelism docs before writing manifests.
Existing Kubernetes platform maturityA cluster with GPU operators, ingress, storage classes and GitOps already in place shortens the move. A new cluster adds platform build work before any vLLM work starts.Ask for a written inventory of what the cluster already provides, and price only the gaps.
Observability and gateway integrationScraping /metrics, wiring alerts, and placing a gateway in front of the service each add configuration and review cycles.Reuse the existing Prometheus and gateway. Define the metrics and alerts to be used before the cutover.
Security review of cluster and secretsEndpoint allowlisting, isolated node networks, secret encryption at rest and RBAC each need evidence. The vLLM --api-key option does not cover every endpoint, so a reverse proxy is usually added.Document the endpoint allowlist, network policy and secret handling early so the review runs once.
Ongoing upgrades to vLLM releasesvLLM ships minor releases about every two weeks (for example v0.31.0 on October 5, 2026, per the vLLM GitHub releases), so the upgrade work recurs for the life of the service.Pin a tested version, define a regular review window, and agree in the retainer scope who tests each release.

What usually goes wrong when vLLM moves to Kubernetes

Most failures in this move come from settings that worked on a single Docker host and silently break once pods, scheduling and a shared network enter the picture. The cards below cover the six risks we see most often, each with the check that prevents it.

Probes killing pods during model load

A liveness probe with a short initial delay restarts the container while it is still reading weights into GPU memory, so the pod never becomes ready. Model load time depends on checkpoint size, storage speed and parallelism settings, so the probe timing has to be measured on your own hardware and model. Set a startup probe with a generous failure threshold, and keep the liveness probe loose until the first successful load. Confirm the load time in your own environment before you choose the numbers.

vLLM Kubernetes docs

Shared memory too small for multi-GPU workers

Tensor-parallel workers exchange data through shared memory, and the default size of /dev/shm inside a container is often too small for that traffic. The failure shows up as crashes or hangs under load, not at startup, which makes it easy to misdiagnose. Mount an memory-backed emptyDir at /dev/shm sized for the number of GPUs in the pod, and check that the value matches what you used on the Docker host. Record the size in the manifest so it survives chart upgrades.

Model cache rebuilt on every pod start

If weights and compiled artifacts live in the container filesystem, every rescheduled pod downloads the model again, which slows recovery and can exhaust egress or registry quotas. Keep the Hugging Face cache on a persistent volume or a pre-staged read-only volume shared by replicas, and decide who owns the staging step. In air-gapped clusters the weights must be loaded from your own store. Ask the platform team to confirm the storage class supports the access mode you need before rollout.

Unauthenticated multi-node traffic on a flat network

The vLLM security guidance states that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. Kubernetes pod networks are flat unless you restrict them, so any pod in the cluster can reach the Ray or multiprocessing ports. Place inference pods in a dedicated namespace and apply NetworkPolicies that allow only the peers in the same serving group. Confirm with your network team that the policies are enforced by your CNI plugin.

vLLM security docs

Metrics and admin endpoints exposed through ingress

The --api-key option does not cover /metrics, /health, /pause, /resume or /abort_requests, so a broad ingress rule publishes them to every client. The vLLM docs recommend a reverse proxy that allowlists only the endpoints meant for users. Write the ingress path rules explicitly, deny the control endpoints, and scrape metrics through an internal Service. Test the rules from outside the cluster after each change.

Version drift across image, chart and cluster

vLLM ships new minor releases about every two weeks, and Kubernetes ships about three minor versions per year, so the image, the Helm chart and the cluster can each move on their own schedule. Kubernetes allows kubelets to be up to three minor versions older than the API server, but the vLLM image still has to match the CUDA and driver stack on the nodes. Pin the image tag and chart version together in version control, and check the GPU operator and driver version against the cluster before each upgrade. Ask your platform team which Kubernetes release line they support.

vLLM minor releases
Every two weeks
Kubernetes version skew policy

Questions teams ask before moving vLLM to Kubernetes

How much does moving vLLM from Docker hosts to Kubernetes cost?

vLLM itself has no license fee, since it is Apache-2.0 licensed and has no paid edition, so the cost comes from four places. The first is accelerator capacity, which you already pay for on the Docker hosts and may pay for again while both environments run in parallel. The second is the surrounding infrastructure: the Kubernetes control plane, persistent volumes for model caches, networking, load balancing and monitoring. The third is implementation labor, covering manifests or Helm charts, probe tuning, testing and cutover. The fourth is the ongoing operation of the platform by your staff or a partner. Implementation cost is one-time, while capacity, infrastructure and operations recur. Ask any quote to itemize these components and state what is in and out of the written scope.

How long does the move from Docker hosts to Kubernetes take?

The timeline depends on how many models and endpoints are in scope, how much of the Kubernetes platform already exists, and how many GPU node types must be scheduled. Teams with a working cluster, GPU operator and model storage usually spend their time on the vLLM workload itself, while teams starting from bare metal must add cluster build and hardening first. Probe tuning deserves its own time, because large models can take a long time to load and a liveness probe set too tight will restart healthy pods. Cutover planning, parallel running and rollback rehearsal also add steps. Ask for a schedule that lists each milestone and the dependencies behind it, rather than a single total.

What must our team provide before the move starts?

Prepare four inputs before any scoping call. Start with a GPU inventory listing each host, accelerator model, memory, driver version and network link. Next, a model list with the checkpoint format, precision, size and the vLLM flags each one currently uses. Then an endpoint list showing every path clients call, such as /v1/chat/completions or /v1/embeddings, along with the clients and their authentication method. Finally, cluster access: a target cluster or the requirements to build one, namespaces, a registry for the vLLM image, storage classes for model caches and read access to the Docker host configuration. Confirm the list with your security team, because the endpoint list also decides which paths a reverse proxy must expose.

Can our in-house team move vLLM to Kubernetes without a partner?

Yes, if the team already runs Kubernetes with GPU scheduling and has someone who has operated a stateful workload on it. vLLM is open source, its docs list native manifests and Helm as deployment options, and the hard parts are operational: shared memory sizing, model cache volumes, readiness and liveness probes that respect model load times, and routing across replicas. A partner adds the most value when the team lacks GPU cluster experience, when several model families must be validated, or when the move must meet audit evidence requirements on a deadline. Compare the internal effort, including the time your engineers would spend away from current work, against a fixed-scope quote with written deliverables.

Do we have to build a Kubernetes platform before moving vLLM?

Not always, but you do need a cluster that meets the requirements of your vLLM workload before the cutover. If you already operate a supported Kubernetes release, the work is adding GPU node pools, a device plugin, persistent storage for model weights and a route for client traffic. If you do not, the platform has to come first: a highly available control plane, typically three or more control plane nodes behind a TCP load balancer on port 6443 in the kubeadm topology, an etcd backup plan and authentication for users. Kubernetes Secrets are stored unencrypted in etcd by default, so encryption at rest belongs in the build. Confirm your Kubernetes version against the current support table before you choose it.

How do we handle vLLM upgrades after the move to Kubernetes?

vLLM ships new minor releases about every two weeks, so plan upgrades as a recurring process rather than a one-time event. Pin the image tag in your manifests or Helm values, test each candidate release against your model list and flags, then roll it out to a staging namespace before production. Check the release notes for changes to engine arguments, API behavior and chat templates, and rerun your endpoint tests and metrics checks after each change. Kubernetes has its own cadence of about three minor releases per year, and the version skew policy requires the API server to be upgraded first, so schedule cluster upgrades separately. Ask any partner whether upgrades are included in the written scope or offered as a retainer.

What your team provides and what you receive

The engagement starts with what your team can hand over, and the quality of that material sets how much discovery the work needs. The most useful input is a container inventory for every Docker host running vLLM: the image tag, the exact vllm serve arguments, environment variables, mounted model and cache paths, shared memory size, and any reverse proxy or load balancer in front of each container. Alongside that, provide the GPU node details: accelerator model and count, driver and CUDA versions, host memory, storage layout, and how nodes are networked to each other. Also list every model you serve, where its weights come from, and the license that governs its use, since the license decides whether weights can be cached inside your cluster. Confirm the target too: either an existing cluster with its distribution, GPU operator, ingress and storage classes, or a decision that a platform team will build one. Tell us who owns the identity layer, because API keys, SSO for administrators and network policy all depend on it.

In a fixed-scope engagement, DeployOpen delivers the Kubernetes artifacts, the operating documentation and the evidence that the move is safe. The artifacts are the manifests or Helm chart, the probe and routing configuration sized to the model load times you measured, and the settings for shared memory and model cache volumes. The documentation is a runbook covering deployment, rollback, scaling, certificate and key rotation, and how to read the vLLM metrics exposed at /metrics. The evidence is a parallel-run report comparing responses, latency and error rates between the Docker hosts and the Kubernetes service on the same traffic, followed by a decommission checklist that lists each host, volume and firewall rule to retire and the condition that must be met first. Exact deliverables, schedule and fees are set in the written scope, which is agreed before work starts. Ask for the list of deliverables by name, the acceptance criteria for the parallel run, and who signs off the cutover.

How DeployOpen scopes and delivers a vLLM Kubernetes migration

DeployOpen plans and delivers the move of vLLM from Docker hosts to Kubernetes inside your own clusters and infrastructure. We agree the scope in writing first, build and test the serving stack against your models and traffic, and hand over documented runbooks your team can operate.

How we scope

  • Inventory every vLLM container, its image tag, model source, GPU assignment and client endpoints before choosing a deployment method.
  • Agree in writing which Kubernetes layer is in scope: native manifests, Helm, or a named serving stack, and who owns each part.
  • Record the shared memory, model cache volume, probe timing and replica routing requirements that the written scope will cover.
  • Confirm the target cluster, GPU node pool, network isolation and identity integration that the migration depends on.

How we build

  • Build manifests or charts from your current container settings, mapping each Docker flag to a Kubernetes field and recording differences.
  • Tune startup and readiness probes against measured model load times on your hardware, not default timeouts.
  • Configure shared memory and model cache volumes, then verify that tensor parallel workers start reliably on each node.
  • Place a reverse proxy in front of the replicas that exposes only the endpoints meant for users, and test routing across replicas.

How we hand over

  • Deliver the manifests or charts, configuration files and secrets handling in your own version control, with change records.
  • Document the cutover sequence, rollback steps and the checks run against the Docker host and Kubernetes deployments.
  • Provide dashboards and alert guidance based on the Prometheus metrics the vLLM server exposes at its metrics endpoint.
  • Walk your platform and operations engineers through the runbooks so they can run upgrades and restarts without us.

How we support

  • Agree the post-handover support terms in the written scope, including who handles vLLM version upgrades and Kubernetes upgrades.
  • Offer ongoing support, upgrades and continuous testing as a retainer when your team wants us to keep operating the stack.
  • Retest the serving stack after each planned change to the vLLM release, cluster version or model set.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.