Deploying an LLM on Amazon EKS with vLLM, step by step (EP.1)
อ่านภาษาไทย
vLLM Bangkok condensed and translated this post from Deploy LLM บน Amazon EKS ด้วย vLLM แบบ Step-by-Step (EP.1), Mongkol Thongkraikaew’s Thai article on DEV Community (10 Aug 2026). The full commands and YAML files are in the original.
Mongkol opens with Gartner’s forecast (Magic Quadrant for Container Management, 6 August 2025) that by 2028, 95% of new AI deployments will use Kubernetes, up from less than 30% when the report came out, and starts a series on serving LLMs on a Kubernetes platform. EP.1 goes from nothing to a working setup: an EKS cluster, a GPU node, a model on vLLM behind an OpenAI-compatible API, and a chat page people can use in a browser. It is distilled from his own trial and error.
How it fits together

Figure from Mongkol Thongkraikaew’s article
Users reach the Open WebUI chat through an Application Load Balancer (ALB). Open WebUI runs on a general-purpose node and forwards each question to vLLM on the GPU node through /v1/chat/completions.
| Part | What the article uses |
|---|---|
| Region | us-east-1 (N. Virginia), for its g6 instances |
| Where commands run | AWS CloudShell, so nothing to install locally |
| Cluster | Amazon EKS 1.35 in Auto Mode, created with eksctl |
| GPU node | A Karpenter NodePool named gpu: on-demand g6.2xlarge (NVIDIA L4, 24 GB VRAM) |
| Inference engine | vLLM image vllm/vllm-openai:v0.26.0 |
| Model | meta-llama/Llama-3.1-8B-Instruct in FP16, which needs at least about 17–18 GB of VRAM, hence a 24 GB card |
| Chat page | Open WebUI v0.9.2 |
| Way in | An internet-facing ALB Ingress |
If the card is short on VRAM, the article suggests the FP8 build RedHatAI/Meta-Llama-3.1-8B-Instruct-FP8 instead.
Why vLLM
Mongkol gives six reasons:
- Efficient GPU memory use: PagedAttention manages the KV cache much as an OS manages virtual memory, which cuts fragmentation, and continuous batching adds new requests to the running batch instead of waiting for it to finish.
- An OpenAI-compatible API, so existing apps and tools connect without code changes, plus native
/healthand/metricsendpoints for Kubernetes health checks and autoscaling. - High concurrency without a complicated setup.
- Multi-GPU and multi-node serving with tensor and pipeline parallelism.
- Kubernetes-friendly: a main backend in KServe, and AWS ships Deep Learning Containers with vLLM tuned for EKS.
- Open source under Apache 2.0, with a growing community.
Before you start
- An AWS account with GPU quota. New accounts usually start with a quota of 0 for “Running On-Demand G and VT instances”; ask for at least 8 vCPUs first (a g6.2xlarge has 8). For a sandbox or lab account, the article recommends AdministratorAccess so that permissions do not get in the way during the deploy.
- A Hugging Face token with the Read role.
- Access to the model. Llama 3.1 is gated: request access on the model page first. Until it comes through, the ungated mirror
NousResearch/Meta-Llama-3.1-8B-Instructhas the same weights (set--modelto it), or you can pick another open-weight model such as Qwen, DeepSeek or Mistral.
The seven steps
1. Environment and tools. In CloudShell, set HF_TOKEN, the region and the cluster name, then install gettext (for envsubst), eksctl and kubectx/kubens.
2. Create the EKS cluster with eksctl: Auto Mode with the general-purpose and system node pools, OIDC on. Wait for ACTIVE, then check with kubectl get node and kubectl get pod -A. Auto Mode already brings Karpenter, the AWS Load Balancer Controller and the NVIDIA device plugin.
3. Prepare the GPU NodePool. A NodePool named gpu lets Karpenter start a g6.2xlarge only when a pod needs a GPU. It carries the label node-type: gpu and the taint nvidia.com/gpu=true:NoSchedule so other pods stay off the machine, and consolidationPolicy: WhenEmpty with consolidateAfter: 5m shuts the node down after five idle minutes. Auto Mode handles the NVIDIA driver and device plugin. Without Auto Mode, you install the device plugin yourself, and on AL2 or a custom AMI the NVIDIA driver too (the article shows the GPU Operator Helm chart for both cases): without a device plugin, Kubernetes cannot see the GPU.
4. Deploy vLLM and the model. Create the local-llm namespace and an hf-secret Secret for the token, and confirm gated-model access with curl (it should return 200). Then apply the vllm-llama31-8b Deployment (one replica, with nodeSelector: node-type: gpu and a toleration for the GPU taint so it lands on the GPU node) and a ClusterIP Service on port 8000. The heart of the Deployment is this set of vLLM arguments:
args:
- --model=meta-llama/Llama-3.1-8B-Instruct
- --served-model-name=llama31-8b
- --max-model-len=8192
- --gpu-memory-utilization=0.90
- --port=8000
The pod waits in Pending while Karpenter starts the GPU node. It then pulls the image, downloads the model weights from Hugging Face, loads them into the L4’s VRAM and starts the API server before it turns Ready 1/1.
5. Add the Open WebUI chat page, pointed at http://vllm-llama31-8b:8000/v1, with login switched off (WEBUI_AUTH: "False") because it is a lab. Then create an IngressClassParams, an IngressClass alb and an internet-facing Ingress so the ALB lets people in from outside.
6. Test it in a browser. Open the ALB’s ADDRESS from kubectl get ingress: the model llama31-8b shows up in Open WebUI, ready for a question. The article reports quick replies from the L4.
7. Clean up when you are done. Delete the Deployments, Services, Ingress, Secret and NodePool, and finish with:
eksctl delete cluster llm-eks-lab --region us-east-1
Settings worth knowing
--max-model-len=8192: Llama 3.1 takes up to 131,072 tokens of context, but on a 24 GB L4 the full length risks running out of memory, so the article caps it at 8,192.--gpu-memory-utilization=0.90: vLLM reserves 90% of VRAM for the weights and the KV cache.- Resources: 4 CPUs, 16Gi of memory (22Gi limit) and one GPU (
nvidia.com/gpu: "1"). - Startup probe:
/healthevery 10 seconds with up to 120 failures (by our count, 120 tries of 10 seconds: about 20 minutes for the download and model load) before the readiness and liveness probes take over. /dev/shm: an in-memory emptyDir of 8Gi.- Model cache: an emptyDir of 60Gi at
/root/.cache/huggingface. A note from vLLM Bangkok: an emptyDir goes away with its pod, so a pod rescheduled to another node downloads the model again. - Endpoints:
/health,/metrics(for Prometheus, with TTFT, TPOT, queue size and KV-cache usage),/v1/models,/v1/chat/completionsand the Anthropic-compatible/v1/messages.
Cost and caveats
Hourly prices from the article (us-east-1):
| Item | Per hour |
|---|---|
| EKS control plane (Auto Mode) | $0.10 |
| System node | $0.1075 |
| General-purpose node | $0.2150 |
| GPU node g6.2xlarge | $1.0539 |
| ALB | $0.0405 |
The table leaves out hidden extras such as NAT Gateway and EBS; with those, the article puts the total at about $1.6 an hour, most of it the GPU node, and notes that for serious production use a Reserved Instance or Savings Plan cuts the cost by about 30–35%. Our arithmetic: left running for a month (about 730 hours) that is roughly $1,100–1,200, so delete the cluster after every session.
This setup is built for a lab. The article warns that the ALB accepts traffic from any IP, and that for real use you should restrict it with a Security Group, WAF or an inbound CIDR allow-list. It marks Open WebUI’s disabled login as lab only, and vLLM itself runs without an API key. A note from vLLM Bangkok: AdministratorAccess is also far too broad for a production account.
Next episodes
Mongkol’s plan for the series:
- Best practices for serving LLMs on EKS
- LLMs on CPU nodes in EKS, a cheaper option for small models
- LLM observability: TTFT, TPOT and GPU metrics
- Multiple nodes and scaling with request volume
- Quantization (FP8/AWQ) to save VRAM and raise throughput
Sources
- Deploy LLM บน Amazon EKS ด้วย vLLM แบบ Step-by-Step (EP.1) — Mongkol Thongkraikaew, DEV Community, 10 Aug 2026 (in Thai). The main source for the content, figures, settings and the diagram (© Mongkol Thongkraikaew).
- vLLM — vllm-project on GitHub
- eksctl — eksctl-io on GitHub
- meta-llama/Llama-3.1-8B-Instruct, RedHatAI/Meta-Llama-3.1-8B-Instruct-FP8 and NousResearch/Meta-Llama-3.1-8B-Instruct — Hugging Face
Read next
- Serving Local Models with vLLM: James’s talk at SCBX NEXT TECH on running models on your own machines with vLLM
The diagram and the original cover belong to Mongkol Thongkraikaew and are used with credit. This post is vLLM Bangkok’s condensed version of his article. If you spot a mistake, tell us through the contact details on this site.


