Sovereign AI · November 24, 2026
Self-Hosting vLLM on Kubernetes: Multi-GPU Architecture & Production Best Practices
TL;DR // Quick Answer
To run vLLM reliably on Kubernetes, isolate GPU nodes with dedicated taints, pin exact vLLM image digests and model revisions, size --gpu-memory-utilization around 0.88–0.92 with explicit --max-model-len caps, mount fast NVMe PVC caches for model weights, and front the OpenAI-compatible API with an mTLS reverse proxy and Prometheus queue-depth alerts.
Running a local LLM in a developer container is easy. Operating self-hosted vLLM on Kubernetes for regulated enterprise workloads—where unpredictable prompt lengths, multi-GPU tensor parallelism, and strict GDPR/DORA data residency intersect—requires treating inference like a stateful database tier.
This evergreen architecture guide covers the exact Kubernetes manifests, GPU scheduling controls, and observability thresholds required to run vLLM in production without OOM crashes or silent latency collapses.
1. GPU Node Isolation & Topology
Never schedule general-purpose microservices onto expensive GPU nodes, and never let vLLM pods compete with unrelated CPU-heavy jobs for PCIe or memory bandwidth.
Taint your GPU node pool:
kubectl taint nodes gpu-node-01 nvidia.com/gpu=present:NoSchedule
kubectl label nodes gpu-node-01 workload-tier=llm-inference gpu-arch=hopper
Ensure the NVIDIA GPU Operator is installed with DCGM Exporter enabled so GPU temperature, XID errors, and VRAM pressure feed directly into Prometheus.
2. Production Multi-GPU vLLM Deployment Manifest
Key hardening details in the manifest below:
- Pinned image tag/digest (never use
:latest; see our vLLM 0.28 release gate analysis) - Dedicated
/dev/shmRAM disk for NCCL inter-GPU communication - PersistentVolumeClaim for pre-warmed model weights (eliminates repeated 40GB+ downloads on pod restart)
- Startup probe sized for multi-GPU weight loading
apiVersion: apps/v1
kind: Deployment
metadata:
name: vllm-private-inference
namespace: ai-inference
spec:
replicas: 1
strategy:
type: Recreate # Prevents GPU deadlock during rolling updates on single-node GPU pools
selector:
matchLabels:
app: vllm-private-inference
template:
metadata:
labels:
app: vllm-private-inference
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
prometheus.io/path: "/metrics"
spec:
nodeSelector:
workload-tier: llm-inference
tolerations:
- key: "nvidia.com/gpu"
operator: "Equal"
value: "present"
effect: "NoSchedule"
containers:
- name: vllm
image: vllm/vllm-openai:v0.28.0
args:
- "--model=/models/Qwen2.5-72B-Instruct-AWQ"
- "--served-model-name=enterprise-llm-72b"
- "--tensor-parallel-size=2"
- "--gpu-memory-utilization=0.90"
- "--max-model-len=16384"
- "--max-num-seqs=64"
- "--enable-prefix-caching"
- "--disable-log-requests" # Prevent sensitive prompts from leaking into stdout logs
ports:
- containerPort: 8000
name: http
resources:
limits:
nvidia.com/gpu: "2"
memory: "96Gi"
cpu: "16"
requests:
nvidia.com/gpu: "2"
memory: "64Gi"
cpu: "8"
volumeMounts:
- name: model-cache
mountPath: /models
readOnly: true
- name: dshm
mountPath: /dev/shm
startupProbe:
httpGet:
path: /health
port: 8000
failureThreshold: 60
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 8000
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: 8000
periodSeconds: 30
volumes:
- name: model-cache
persistentVolumeClaim:
claimName: nvme-model-weights-pvc
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 24Gi
3. Perimeter Security & Ingress Controls
vLLM's built-in HTTP server should not be exposed directly to internal corporate networks or external clients:
- Terminate mTLS at Nginx or Gateway API: Enforce client certificates or OIDC/JWT token validation at the ingress gateway before forwarding to port
8000. - Disable prompt logging by default: Always pass
--disable-log-requestsin regulated financial or healthcare environments so PII and proprietary documents never land in centralized log aggregators. - Apply per-tenant token rate limits: Protect shared GPU capacity from a single runaway agent loop by enforcing request concurrency and timeout ceilings at the proxy layer (see our Production Nginx Tuning Guide).
4. Essential Prometheus Alerts
Monitor these four signals in Grafana/Alertmanager:
| Metric | Alert Threshold | Operational Action |
| :--- | :--- | :--- |
| vllm:gpu_cache_usage_perc | > 0.85 for 5m | KV cache nearing saturation; requests will preempt/swap. Scale replicas or cap max-model-len. |
| vllm:num_requests_waiting | > 10 for 2m | Queue buildup causing Time-To-First-Token spikes. |
| DCGM_FI_DEV_XID_ERRORS | > 0 | Hardware/driver fault on GPU node; cordon node and drain inference pods. |
| vllm:e2e_request_latency_seconds | p95 > 15s | Investigate long-context prompts or broken prefix cache hit rates. |
Need help designing a sovereign, DORA-ready private inference platform or multi-agent AI architecture? Explore our AI Engineering & Automation services or see how we engineered a 17-agent production AI platform.
FAQ // Key Questions
Frequently Asked Questions
How should I configure shared memory (/dev/shm) for multi-GPU vLLM pods on Kubernetes?+
Multi-GPU tensor parallelism uses NCCL over shared memory. Always mount an emptyDir volume with medium Memory (typically 16Gi to 32Gi) at /dev/shm; otherwise pods will crash with SIGBUS or NCCL shared-memory errors during startup.
What Kubernetes probes work best for large vLLM models that take minutes to load?+
Use a startupProbe hitting /health with failureThreshold 60 and periodSeconds 10 (allowing up to 10 minutes for cold weight loading) before readinessProbe and livenessProbe take over.
Which vLLM Prometheus metrics predict latency degradation earliest?+
Track vllm:num_requests_waiting (queue depth), vllm:gpu_cache_usage_perc (KV cache saturation), and vllm:time_to_first_token_seconds (TTFT p95). When KV cache usage exceeds 85% and waiting requests climb, scale horizontally or tighten max_model_len.
Related Notes
Sovereign AI · Aug 28, 2026
vLLM 0.28 Production Upgrade Guide: Release Gates & Private Inference Architecture
vLLM 0.28.0 adds DeepSeek V4 sparse MLA and tiered KV cache offload, but introduces prefix-caching and multi-node startup regressions. Here is how to deploy it safely in regulated EU environments.
Sovereign AI · Sep 7, 2026
Luxembourg Open-Source AI Assessment Sandbox Configurator
Luxembourg's LIST and SnT release an open-source sandbox configurator to standardize EU AI Act and DORA compliance testing for enterprise AI.
