Cloudexe / Blog

How we ran vLLM on EKS Without AWS GPUs

How we solved GPU availability issues in AWS without leaving AWS.

A customer came to us with a problem many AWS teams have. They could not get GPUs in AWS when they needed them. When they could get them, the cost was high. This had been going on for a while.

They ran vLLM on EKS. They wanted to keep doing that. They needed a different source of GPUs.

This post is a high-level overview. We will cover the filesystem, security, Kubernetes scheduling, benchmarks and other parts in separate, detailed posts later.

There is a demo video at cloudexe.tech. It is from a different setup (with Red Hat OpenShift on AWS) but shows the concept working the same way.

Why moving was hard

The usual answer is to move the workload to a GPU cloud such as CoreWeave. The customer looked at it. It was a big lift.

  • Private weights. The model weights were their own. About 90 GB.
  • Custom vLLM. They ran a modified build of vLLM. A lot of their IP was in those changes and in the weights.
  • Security review. Approving a new provider to hold that IP would take weeks on its own.
  • Dependencies. The application was not standalone. It needed the rest of AWS. In particular EKS, IAM and the audit trail.

Moving the GPU work meant moving or rebuilding all of that as well.

What kept them in AWS

We looked at what tied the customer to AWS. It was the software and the operations around it. The container images, the deployment pipeline, the IAM roles, the Kubernetes networking, the logs. The GPU hardware was the one part they had no attachment to.

So we asked a simple question. Can we separate the two? Keep the software and operations in AWS. Get the GPU from somewhere else.

That is why we at Cloudexe built GPU Bridge.

The setup

The GPU nodes came from our fleet, outside AWS. Each one was a VM with a single H200 GPU.

On the EKS side, the vLLM pod ran on an ordinary CPU node. We used m5.xlarge. Each pod connected to one GPU node outside. One pod, one GPU node. We kept N GPU nodes in reserve for this customer.

To Kubernetes, the pod was a normal vLLM pod. The model ran on the GPU node.

Diagram: Software stays in AWS; the GPU comes from outside. A vLLM pod on a CPU node in AWS EKS connects over an encrypted tunnel to a GPU node, a confidential VM outside AWS.

Trusting the GPU node

The weights and the custom vLLM build would run on hardware the customer did not own. That was their main concern. We suggested ways to address it.

  • Confidential computing. The GPU VM used AMD SEV-SNP on the CPU side and the confidential computing mode of the Hopper GPU. CPU memory, GPU memory and PCIe transactions are all encrypted. The host cannot read them. That includes us.
  • No permanent writeable media. The VM has no disk to write to. It boots an immutable Linux kernel and nothing else. Nothing from a session stays on the machine.
  • Attestation. This configuration is attested. The attestation report is signed by an encryption key baked into the hardware. The customer can verify what is running before sending anything to it. We helped the customer create a reference CVM to compare attestation reports against.
  • There were no inbound ports to be opened to customer’s VPC.

This gave the customer the comfort they needed to go ahead.

The connection

The pod opens an outbound, encrypted connection to its GPU node. The link from the VM cluster to the Internet was a 10 Gbps commit with burst upto 40 Gbps, with a 2 ms round trip.

The encryption key pair is generated randomly for each session, on the AWS side. Only the public key travels through the GPU Bridge backend to the GPU node. The private key stays in the customer’s environment, in the system RAM of the GPU Bridge shim.

Software and network come from the AWS container

The GPU node brings the GPU and the kernel. Everything else comes from the pod.

Software. The vLLM build, its patches and its Python environment stay in the customer’s container image. The GPU node does not store a copy. GPU Bridge mounts the container’s filesystem on the GPU node over the tunnel. Then it runs the vLLM process in a chroot of that filesystem. The process sees the same files it would see inside the pod.

Outbound network. GPU Bridge adds a TAP device on the GPU node. All of the vLLM process’s traffic is routed through the TAP device and over the tunnel. It leaves from the pod. To the rest of AWS, the traffic comes from the pod.

Inbound network. The vLLM serving port on the pod is tunneled through to the vLLM process on the GPU node. A request to the pod’s Kubernetes service reaches vLLM on the GPU node.

Diagram: Requests go through the tunnel; operations stay on EKS. (1) Client to EKS service, (2) to the vLLM pod and through the tunnel to vLLM on an H200 outside AWS, (3) token generation, (4) tokens return through the tunnel, (5) response to the EKS service, (6) logs, telemetry and IAM stay on EKS.
  1. The request reaches the EKS service.
  2. The request is forwarded through the tunnel to the remote vLLM process.
  3. Token generation happens on the H200.
  4. Generated tokens return through the tunnel.
  5. The response reaches the Kubernetes service.
  6. Logs, telemetry, IAM and the rest stay on the EKS side.

What stayed the same

The customer changed nothing in how they ran the service.

  • Deployment tooling and CI/CD.
  • IAM, Kubernetes networking and load balancing.
  • Logging, the audit trail and telemetry.

Performance

Loading weights. These numbers are for loading the ~90 GB of weights over the networked filesystem. They do not include vLLM startup. The load took up to about 2 minutes. On a restart it took less than a minute, because the Linux page cache already had the weights in DRAM. Otherwise it depended on network performance. Getting there took some effort. AWS networking puts a bandwidth limit on each flow. The limits are also not static. Throughput changed from one time to the next. GPU Bridge spreads the traffic across multiple flows and balances the load between them. With that, throughput was a steady 8 to 9 Gbps. The pods are designed to run for days at a time. Compared with that, the load time is noise.

Inference. The 2 ms round trip is added to each inference call. Time to first token is in the hundreds of milliseconds. So the added latency is minor. Token throughput was between 99% and 101% of the baseline. The baseline was the same model on an H200 inside AWS. That is within the margin of error.

Scheduling

The Kubernetes scheduler had to know the state of the GPU fleet behind it. This took some work. We mapped each GPU node’s availability to a specific CPU node. When all N GPU nodes are busy, no more vLLM pods can be scheduled. New pods wait in Pending until a GPU node is free.

Egress cost

Each new GPU server needs one transfer of the weights out of AWS. After that, only requests and responses cross the link. Compared with the savings on GPU cost, the egress charge turned out to be noise.

Failure handling

Dropouts. The two ends send keep-alive packets at a fixed interval. If the network drops, Kubernetes restarts the pod. Recovery uses the normal Kubernetes path.

Graceful preemption. When Kubernetes stops the pod, the SIGTERM goes over the tunnel to the vLLM process on the GPU node. vLLM gets time to clean up its resources before it exits.

Exit status. When the vLLM process exits, GPU Bridge passes its return code back to the pod. Kubernetes sees the same exit status it would see if vLLM had run inside the pod.

How long it took

The whole setup took a couple of days of work. On our side, our team. On the customer side, their Kubernetes DevOps lead, who knew the stack well. They had expected this to take far longer.

Attestation was the one step that needed more. We had to explain how it works and how to use the reference CVM. That took time and effort. It also needed willingness on the customer’s side.

Need GPUs in your EKS cluster?

See how this works for your own workloads on Cloudexe on AWS, or book a call to set up a POC.

Start a POCCloudexe on AWS

Also published on Substack, where you can subscribe for new posts.