Multi-node vLLM on Kubernetes with LeaderWorkerSet

Multi-node vLLM on Kubernetes with LeaderWorkerSet spreads a model too large for one node across leader and worker pods, with the inter-node traffic isolated on a private network.

On this page

Multi-node vLLM on Kubernetes with LeaderWorkerSet for models too large for one node

When a model does not fit on one 8-GPU node, the platform team has to decide how to split it across nodes, and for vLLM on Kubernetes the supported path is the LeaderWorkerSet (LWS) API with the vLLM example. The vLLM LWS page describes a layout of at least two Kubernetes nodes with 8 GPUs each, using the 405B example model with tensor parallelism of 8 inside each node. The LWS pattern gives you one leader pod and a set of worker pods that start together as a group, and the leader serves the OpenAI-compatible API while the workers join the distributed run. Your first task is to confirm that your node pool, GPU type and scheduler can place a full group on matching nodes before you commit to a model size.

The leader and worker pods exchange PyTorch Distributed, parallelism and KV cache traffic, and vLLM's security guidance treats all of it as insecure by default, with no authorization or encryption between nodes. Plan a network boundary before the first deployment: a dedicated subnet or VLAN for the GPU nodes, network policies that allow traffic only between pods in the same LWS group, and inbound rules that open only the API server port to clients. Confirm with your network team how the cluster CNI enforces those policies, because a flat pod network will not provide the isolation on its own.

The leader is the only pod that should be reachable from users, so the API key, reverse proxy and allowlisting decisions sit there. Because --api-key does not cover every endpoint, such as /metrics and /health, the proxy in front of the leader needs an explicit allowlist. Decide early which backend you will use, the default multiprocessing backend with pipeline parallelism set to the group size or Ray with pipeline parallelism 2, since that choice changes what must be isolated and monitored. Treat the isolation work as part of the build, not as a later hardening task.

What the cluster and team need before deploying LeaderWorkerSet with vLLM

A multi-node vLLM deployment on LeaderWorkerSet depends on hardware, a Kubernetes control plane, a private network and a pinned vLLM release that all agree with each other. Confirm each item below before any manifest is written, because a gap in one usually surfaces later as a failed startup or an exposed port.

Two nodes with eight GPUs

The vLLM LeaderWorkerSet example needs at least two Kubernetes nodes with 8 GPUs each, because the 405B reference layout splits the model with tensor parallelism of 8 inside each node. Confirm that the scheduler can place a full eight-GPU group on each node at the same time, and that no other workload holds part of that capacity. Check accelerator memory against the model size with your own sizing, not only the GPU count.

vLLM LWS page

LeaderWorkerSet API installed

The LeaderWorkerSet API is not part of a default Kubernetes install, so the cluster needs the controller and its custom resource definitions before the vLLM manifests can apply. Confirm the installed LeaderWorkerSet version with the vLLM LWS page and the project's own release notes. Record who owns upgrades to this controller, since the leader and worker pods depend on it.

Supported Kubernetes minor version

Kubernetes maintains the three most recent minor releases, and as of September 2026 these were 1.37, 1.36 and 1.35. Pick a minor version from that list that your distribution also supports, and confirm the LeaderWorkerSet release you plan to use supports it. Plan the upgrade path before go-live, because the version skew policy requires the API server to move one minor version at a time.

Kubernetes releases

Private network path between nodes

vLLM's security guide states that communication between nodes is insecure by default, with no authorization or encryption, so inter-node traffic must stay on an isolated network. Confirm that a private subnet or VLAN connects the two nodes, that the pod network does not route this traffic to users, and that only the API server port is reachable from outside. Ask the network team to document the firewall rules before the deployment is approved.

vLLM security guide

Model weight access

Each pod group must load the same model weights, so decide where the 405B checkpoint lives before deployment: a shared volume, a local cache on each node or an internal object store. Confirm that the nodes can reach that storage without internet access if the environment is isolated, and that the access credentials are stored as Kubernetes Secrets with encryption at rest. Estimate the storage footprint and transfer time with the model provider's published file sizes.

Pinned vLLM release and driver versions

vLLM ships minor releases about every two weeks, and v0.31.0 was released on October 5, 2026, so pin a specific tag in the image rather than a floating latest. Confirm the NVIDIA driver, CUDA and any other accelerator plugin versions that the chosen vLLM release requires, using the vLLM installation docs. Assign one engineer to own the pinned version and its upgrade testing.

vLLM installation docs

How leader and worker pods form one vLLM engine

The request starts at the leader pod, which runs the OpenAI-compatible API server reached through an edge you control. Each pod holds one node's eight GPUs, where tensor parallelism splits every layer across them. Pipeline parallelism then passes activations from the leader's stage to the worker's stage over the private inter-node network. Check that this network sits inside the trust boundary, because vLLM's inter-node traffic is insecure by default and only the API endpoint should be reachable from users.

One LeaderWorkerSet group serving a single model across two nodes, with the inter-node network isolated.

Multiprocessing or Ray: choosing the multi-node backend

The multiprocessing backend is the default in the vLLM LeaderWorkerSet example. vLLM starts its own worker processes on each node, so the deployment adds no second cluster manager. The example runs --tensor-parallel-size 8 inside each 8-GPU node and sets --pipeline-parallel-size to the group size. For the 405B model on two nodes, that gives a pipeline size of 2, with the leader pod coordinating the workers in its group. Check the LeaderWorkerSet page for the flags that match your vLLM version.

  • Fewest moving parts: the backend runs inside vLLM, so your team operates the leader and worker pods directly, with no separate scheduler layered over them.
  • Group size sets the layout: the pipeline size follows the number of pods in each group, so a change in pod count changes how the model is split and needs a fresh load test.
  • One API entry point: the leader pod serves the OpenAI-compatible endpoints, while worker pods hold model shards and should not receive user traffic.
  • Skills to confirm: Kubernetes pod networking, NCCL troubleshooting and the vLLM parallelism flags. Confirm which of these your team already runs in production.

Confirm that the GPU count per pod, the tensor size and the pipeline size agree before the first rollout.

How to deploy the LeaderWorkerSet manifest step by step

This sequence takes a cluster with two GPU nodes to a state where one vLLM service runs the 405B example across both nodes and answers requests on its /v1 endpoint. Each step ends with a check so the team knows whether to continue.

  1. Install the LeaderWorkerSet API on the cluster

    The cluster administrator installs the LeaderWorkerSet API into the Kubernetes cluster, using the install method that the LeaderWorkerSet project and your cluster standards specify. Confirm the version against the vLLM LeaderWorkerSet page before you start, since the example manifests depend on the API version they were written for. The step is done when the LeaderWorkerSet custom resource definition is listed by the cluster and the controller pod is running. If the resource type is missing from the API discovery output, stop here, because nothing later will schedule.

  2. Label and confirm the two GPU nodes

    The platform engineer labels the two nodes that will host the model, using a label your scheduling rules and node selectors can match, and confirms each node exposes eight GPUs to Kubernetes. Check the allocatable GPU count on both nodes and confirm the GPU device plugin is healthy. Also confirm that both nodes sit on the isolated network segment you plan to use for inter-node traffic, since the vLLM security guide treats that traffic as insecure by default. The step is done when both nodes list eight allocatable GPUs and the labels appear in the node list.

  3. Create the model weight source and access secret

    Decide where the Meta-Llama-3.1-405B-Instruct weights come from, such as a storage volume you control or a mirrored artifact store, and confirm your license terms for the model allow that use. Create the volume or claim that every pod in the group can read, then create a Kubernetes Secret for any Hugging Face token the download needs. Recall that Secrets are stored unencrypted in etcd unless encryption at rest is configured, so confirm that setting with your cluster administrator. The step is done when a test pod can mount the volume and list the weight files, and the Secret exists in the target namespace.

  4. Apply the LeaderWorkerSet with the 405B settings

    Apply the LeaderWorkerSet manifest built from the vLLM example, with the model set to meta-llama/Meta-Llama-3.1-405B-Instruct and tensor parallel size 8 so each node's eight GPUs serve one shard group. Choose the backend deliberately: the default multiprocessing backend sets pipeline parallel size to the group size, while the Ray backend uses pipeline parallel size 2. Keep the example's group size and pod template resources aligned with the GPU count per node. The step is done when the LeaderWorkerSet object is created and the controller starts creating leader and worker pods, without admission errors in the events.

  5. Confirm leader and worker pods are ready

    Watch the leader and worker pods until both report Ready, and read the leader logs to confirm that the distributed workers joined and the model shards loaded across all 16 GPUs. Loading a model of this size can take a long time, and the duration depends on your storage and network, so set expectations with the team before judging a slow start. If a worker stays pending or restarts, check GPU allocation, the shared volume mount and the isolated network path between the pods. The step is done when every pod in the group reports Ready and the leader log shows the engine serving on its API port.

  6. Check that the /v1 endpoint answers

    Forward or route traffic to the leader's API service, then call the /v1/models endpoint to confirm the served model name matches what you deployed. Send one short request to /v1/chat/completions to confirm the chat template loads and the model returns text. Only expose the endpoint to users through a reverse proxy that allowlists the routes you intend to offer, because the --api-key option alone does not protect every route. The step is done when /v1/models lists the expected model and a chat request returns a completion without errors in the leader logs.

How the leader routes requests across pipeline stages

The leader pod is the only member of a LeaderWorkerSet group that accepts API traffic. It runs the vLLM OpenAI-compatible server, receives each request, schedules it, and coordinates the other members of the group so that every pipeline stage processes its share of the model for each token. The workers hold the remaining pipeline stages and do not serve requests directly. Your Service, ingress or gateway should therefore select the leader only, and your readiness checks should confirm the leader can serve a completion before traffic is sent to it. Confirm in the vLLM LWS example how the leader and workers discover each other and which pipeline size each group is started with.

Within each pod, vLLM splits the model across that node's GPUs with tensor parallelism, which is why the reference layout uses --tensor-parallel-size 8 on 8-GPU nodes. Tensor parallelism synchronizes partial results after nearly every layer, so its traffic has to cross the fastest path available, the NVLink or PCIe links inside one node. Pipeline parallelism passes activations between stages only at stage boundaries, so it is the part that crosses the network between nodes. Keep the tensor-parallel size equal to the GPU count per node unless your network and hardware review shows a reason to change it. The rule is a planning choice, and you should confirm the exact limits with the vLLM parallelism and scaling documentation for your version.

A worker pod restart breaks the pipeline for the whole group, because the stages on that worker no longer have their weights loaded or their peers connected, and in-flight requests that touched that stage fail. Treat the group as one unit for recovery, scaling and rollout. LeaderWorkerSet restarts and replaces members as a group, so plan for a cold start that reloads model weights on every pod, and measure how long that takes in your environment before setting probe thresholds. Do not let a health check on one worker decide whether the leader keeps accepting traffic. Test a forced worker restart in a staging group and confirm that the leader reports not ready until the whole group is healthy again.

Mapping pods, parallel sizes and endpoints to each other

This table ties each LeaderWorkerSet pod role to its GPU count, parallel setting, backend and the endpoints it serves. Read each row as a question to answer for your own cluster: which pod runs the API server, how many GPUs it sees, and who is allowed to reach it. The main takeaway is that only the API server port should reach users, while the metrics, health and inter-node traffic stay on the isolated network.

ElementLeader podWorker pods
Role in the groupRuns the vLLM API server and coordinates the groupJoins the leader to host GPU work and carries no user traffic
GPUs per node8 GPUs in the documented 405B example, set to match the tensor parallel size8 GPUs in the documented 405B example, one node per worker
Tensor parallel size8, so each node's GPUs share each layer of the model8, matching the leader so each node holds its shard
Pipeline parallel sizeGroup size with the multiprocessing backend, or 2 with the Ray backend in the documented examplesSame value as the leader, set through the same launch arguments
Backend choiceMultiprocessing is the default, Ray is the alternative; the leader must match the choice on every podMust run the same backend as the leader, and needs a Ray head connection only when Ray is chosen
Users may reach itOnly the OpenAI-compatible API port, through a gateway or reverse proxy that allowlists pathsNo; workers should expose no user-facing port
Internal only/metrics and /health, which the --api-key option does not cover, plus inter-node trafficInter-node PyTorch Distributed and parallelism traffic, which is unauthenticated and unencrypted by default
Protection neededAllowlist user paths at the proxy, restrict /metrics and /health to monitoring, and confirm the exact port list in your versionIsolate on a private network and block inbound ports other than those the group needs; confirm ports with the vLLM security guide

Isolating inter-node traffic and protecting the API

Multi-node vLLM sends unauthenticated, unencrypted traffic between pods, so the network, the API edge and the Kubernetes control of secrets and pods have to be designed together. The cards below cover the controls that connect the worker traffic to the endpoints users reach, and the checks to run before the cluster takes live requests.

Private network for worker traffic

The vLLM security guide treats all communication between nodes as insecure by default, with no authorization or encryption, so the leader and worker pods must sit on a network that only they and their platform components can reach. Block inbound ports on the worker pods except the API server port, and confirm with a test from a pod outside the group that the coordination ports are unreachable. Ask your network team who owns the policy and how it is reviewed after cluster changes.

vLLM security guide

Kubernetes network policy enforcement

A private subnet alone does not stop traffic between pods that share a cluster network. Write NetworkPolicy objects that restrict ingress to the leader and worker pods of one LeaderWorkerSet group, and confirm that the CNI plugin in your cluster enforces them. Test the policy after every node pool or CNI change, since a policy that is silently unenforced gives no protection.

API key limits on /v1

The --api-key option protects the /v1, /v2, /inference and /cohere endpoints, but it does not cover /invocations, /pause, /resume, /abort_requests, /metrics or /health. The vLLM docs warn against relying on it alone, so treat it as one layer. Verify the key is passed as a Kubernetes Secret and never placed in the container arguments visible in the pod spec.

Reverse proxy endpoint allowlist

The vLLM docs recommend a reverse proxy that forwards only the endpoints meant for users, so control and operational paths such as /pause, /abort_requests and /metrics are never reachable from outside. Decide which paths clients need, deny everything else at the proxy, and keep /metrics reachable only from the monitoring namespace. Test each blocked path with a request from a client outside the cluster.

Secrets encryption and access

Kubernetes stores Secrets unencrypted in etcd by default, which matters for Hugging Face tokens and the API key. Configure encryption at rest for Secrets, restrict get, list and watch access with least-privilege RBAC roles bound to the serving namespace only, or mount credentials from an external store through the Secrets Store CSI Driver. Ask who can read Secrets across the cluster and confirm the answer with a test account.

Kubernetes Secrets practices

Pod security and benchmark checks

The leader and worker pods need GPU device access and host-level networking settings that often conflict with restricted profiles, so record each exception against the Pod Security Standards level chosen for the namespace. Use the CIS Kubernetes Benchmark as the reference list for the cluster review, and document which recommendations are not applied and why. Re-run the review after each Kubernetes or vLLM upgrade.

Common LeaderWorkerSet failures and how to fix them

This table lists the failures teams most often hit when bringing up a multi-node vLLM group on LeaderWorkerSet, with the likely cause and first fix for each. Use it as a triage order: confirm pod membership first, then GPU placement, then network reachability, then application-level checks.

FailureLikely causeFix and what to confirm
Worker pods do not join the groupLeader and worker pods cannot resolve or reach each other, or the group size in the LeaderWorkerSet spec does not match the parallelism flagsCheck that every pod in the group is Running and that the leader sees all workers. Confirm the group size matches the pipeline parallel size the example sets, and confirm the leader's address and port in the vLLM LWS example docs
GPU scheduling mismatch across nodesNodes in the group expose different GPU counts, models or driver stacks, so the 8-GPU per-node layout cannot be placed on every podLabel nodes by GPU model and count, request 8 GPUs per pod, and make sure each node runs a compatible driver and CUDA stack. Confirm the two-node, 8-GPU layout in the vLLM LWS page before scaling
Pipeline stages fail on blocked inter-node portsNetwork policies or host firewalls block the ports used by PyTorch Distributed and parallelism traffic between pods, which vLLM does not encrypt or authenticatePlace the group on an isolated network, allow traffic only between group members on the ports the run uses, and block all other inbound ports except the API server. Confirm the port list for your vLLM version in the security guide
Chat completions return template errorsThe model has no chat template, or the template was not supplied with the chat template optionConfirm the model ships a chat template for the chat completions API. If it does not, pass a template with the chat template option in the serving command. Test with one request before exposing the endpoint
Health checks fail before weights loadProbes start before the model has finished loading, so the pod is restarted while weights are still downloading or shardingSet the readiness and liveness delays to cover the full model load on the leader and workers, and use a startup probe where your cluster supports it. Confirm probe guidance in the vLLM Kubernetes deployment docs
Metrics or health endpoints reachable from outsideThe API key option does not protect /metrics or /health, and the service is exposed beyond the clusterKeep the leader service internal, route users through a reverse proxy that allowlists only user-facing endpoints, and scrape /metrics from inside the monitoring network. Confirm the endpoint list in the vLLM security docs

Questions buyers ask before running multi-node vLLM on Kubernetes

What does multi-node vLLM on Kubernetes cost to run?

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: GPU or other accelerator capacity, the surrounding infrastructure, implementation work and the people who operate the platform. The LeaderWorkerSet example needs at least two Kubernetes nodes with 8 GPUs each, so accelerator capacity is usually the largest recurring line. Ask any partner for a quote that separates one-time work (design, build, hardening, testing) from recurring work (capacity, upgrades, monitoring, on-call), and ask which of those lines the quote includes.

What drives the cost of a multi-node vLLM build up or down?

The main drivers are the model size and precision, which set how many GPUs and nodes you need, the node type and whether you reserve or rent capacity, and whether you already run Kubernetes with GPU scheduling, a private network and a secrets store. Build cost rises with the number of isolated networks, identity integrations, endpoint exposure controls and the monitoring you need. Operating cost rises with the number of models, the frequency of vLLM release upgrades and the on-call coverage your service levels require. Ask for each driver to be priced as its own line item so you can change one without reopening the whole quote.

How long does a multi-node vLLM deployment take to put in place?

Duration depends mostly on how quickly accelerator nodes are provisioned and whether the Kubernetes cluster already meets the requirements, not on the vLLM configuration itself. The work usually runs in phases: confirming model and hardware compatibility, building an isolated network for inter-node traffic, deploying the LeaderWorkerSet workload, testing the API and metrics, and then operating it. No duration is fixed by the vLLM documentation, so ask a partner to tie the timeline to a written scope and to name which steps depend on hardware delivery or access approvals you control.

What does your team need to provide for this work?

Your team needs to supply the environment and the decisions. That means Kubernetes clusters with GPU nodes in your cloud account, data center or air-gapped network, a private network segment where the nodes can talk to each other, access to the model weights and a place to store them, and an owner for the API exposure decisions. You will also need someone who can approve the firewall rules that block inbound ports other than the API server's. Ask the partner for a written list of these prerequisites before the scope is signed.

Can our own platform team deploy multi-node vLLM without outside help?

A team that already runs Kubernetes with GPU nodes, networking policy and GitOps or manifest deployment can build this in-house, because the LeaderWorkerSet pattern uses standard Kubernetes resources and the vLLM documentation covers the example. The harder parts are the ones the documentation leaves to you: isolating inter-node traffic, protecting the API endpoints that vLLM's own API key option does not cover, choosing between the multiprocessing and Ray backends, and proving the result to security and compliance reviewers. If those skills are missing, a fixed-scope engagement can cover them, and you can keep operations in-house afterward.

Do we need to test or verify the deployment after it goes live?

Yes. Verification should cover the model loading and generating correctly across both nodes, the isolation of inter-node ports, the reverse proxy that exposes only user-facing endpoints, and the Prometheus metrics exposed at /metrics. The vLLM security guide says inter-node communication is insecure by default, so a network test should confirm that unauthorized hosts cannot reach the worker ports. Ask whether a partner's security testing covers these checks and whether a retest is included after fixes.

How do vLLM release upgrades affect a multi-node deployment?

vLLM ships new minor releases about every two weeks, for example v0.30.0 on September 22 and v0.31.0 on October 5, 2026, so upgrades are a recurring activity rather than a one-off project. Each upgrade has to be tested against the model, the parallelism settings and the backend choice, and the leader and worker pods must run compatible versions. Kubernetes itself adds another upgrade cycle, since the project releases about three times per year and maintains only the three most recent minor versions. Plan a staging cluster, a rollback path and a named owner for each upgrade, and ask any partner whether upgrades are in the scope or sold as a retainer.

Does a support contract exist for vLLM itself?

vLLM is a community project, and the project itself does not sell support, so any support you buy comes from a service provider or a vendor who packages vLLM. Ask a partner what they cover: deployment, incident response, upgrades and the Kubernetes layer underneath, and whether the response times are written into the agreement. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and the terms of any retainer are set in the written scope rather than promised here.

What a platform team owns after the first deployment

The first deployment is the cheapest point to get the LeaderWorkerSet layout right, but the work that keeps a two-node 405B serving group reliable is recurring. Someone on the platform team must own vLLM minor release tracking. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26 and v0.31.0 on October 5, 2026, and each one can change flags, defaults or the parallelism behavior that the LWS manifest depends on. Assign an owner to read the vLLM GitHub releases page, test each candidate image against a staging LeaderWorkerSet with the same --tensor-parallel-size 8 and pipeline settings, and promote only after the model loads on both nodes and answers a fixed set of requests. Confirm with your own tests how far an upgrade can skip without breaking the group.

Kubernetes adds a second recurring track. The control plane must be upgraded one minor version at a time, and kubelets may run up to three minor versions behind kube-apiserver, so a GPU node pool can drift away from the control plane without anyone noticing. Schedule patch windows that drain a whole leader and worker group together, because a single pod restart breaks the multiprocessing or Ray process group and the model must reload from scratch. Check the Kubernetes release page for the end-of-life dates of the minor versions you run, and treat a version approaching end of life as a planned upgrade, not an emergency. Also keep the /metrics endpoint under watch: Prometheus-format request counts, token throughput, latency histograms and KV cache usage show whether a worker has silently stalled, and alert on flat throughput and rising KV cache use rather than on pod restarts alone.

Network changes are the third recurring risk. vLLM's security guidance treats inter-node traffic as insecure by default, so any new subnet, security group, network policy, service mesh sidecar or CNI change can reopen a path that was closed. After each such change, rerun the isolation checks: confirm that only the API server port is reachable from outside the group, that the inter-node ports used by PyTorch Distributed and parallelism traffic are reachable only between leader and worker pods, and that /metrics, /pause and /abort_requests are not exposed through the user-facing route. Record the results as evidence, since the same checks will be asked for in a security review.

How DeployOpen works on this

DeployOpen scopes multi-node vLLM on Kubernetes with LeaderWorkerSet as a written, fixed-scope engagement inside your own clusters and network. The work covers the group topology, the backend choice, the node isolation and the operating evidence your platform and security teams need before the model goes live.

How we scope

  • We confirm the model, precision and GPU layout, including whether two 8-GPU nodes meet the memory need for the chosen checkpoint.
  • We record the choice between the multiprocessing backend and a Ray backend, with the reasons, in the written scope.
  • We agree the cluster versions, node pools, network segments and API exposure that the written scope will cover.

How we build

  • We deploy the LeaderWorkerSet resources, leader and worker pods and GPU scheduling in your clusters, pinned to versions you approve.
  • We place the inter-node traffic on a private network and block inbound ports other than the API server port, then test that the isolation holds.
  • We test the API behind a reverse proxy that allowlists only user-facing endpoints, and check that /metrics and admin routes are not exposed.

How we hand over

  • You receive manifests, configuration, network policy and runbooks for starting, stopping and restarting a multi-node group.
  • You receive the test results for node isolation, endpoint exposure and model load, with the findings and fixes recorded.
  • You receive a walkthrough for your platform and operations teams so they can run upgrades and recover a failed worker.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the original build.
  • Retainers can cover vLLM release changes, Kubernetes version moves and retesting of the inter-node network after changes.
  • Any change to the parallelism layout or backend is scoped and tested in a non-production group before it reaches users.

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.