Getting an LLM running on a GPU is easy. vllm serve and you have an OpenAI-compatible endpoint in five minutes. Running it in production is where the days disappear, and they disappear in three specific places.

1. The startup probe, or why your pods keep dying on rollout

A 70B model takes minutes to load into GPU memory. The default Kubernetes liveness probe kills the container after 30 seconds, the load restarts, and the pod crash-loops forever. The fix is a startup probe with a window sized for your actual model load:

startupProbe: httpGet: path: /health port: 8000 failureThreshold: 40 periodSeconds: 15 # 10 minutes of patience for big models readinessProbe: httpGet: path: /health port: 8000 periodSeconds: 10 

Size failureThreshold * periodSeconds from a measured cold load, then add headroom for model download on a fresh node. Only after startup succeeds do the liveness and readiness probes take over.

2. The /dev/shm trap with tensor parallelism

vLLM workers communicate over shared memory. Kubernetes gives containers a 64Mi /dev/shm by default, and tensor-parallel setups crash or hang with inscrutable NCCL or shared-memory errors. The fix is one volume:

volumes: - name: shm emptyDir: medium: Memory sizeLimit: 8Gi 

mounted at /dev/shm in every vLLM container. Everyone hits this exactly once, and it costs hours because the error message never says "shared memory" in a way you can grep for.

3. Autoscale on queue depth, not GPU utilization

The HPA's default instinct, scale on GPU utilization, is wrong for LLM serving. A vLLM server at 95% GPU utilization with an empty queue is healthy and fast; one at 40% utilization with 50 requests queued is drowning. The signal that predicts user-visible latency is vllm:num_requests_waiting.

vLLM exposes Prometheus metrics out of the box; you scale on queue depth through the prometheus-adapter:

# HPA custom metric (via prometheus-adapter) - type: Pods pods: metric: name: vllm_num_requests_waiting target: type: AverageValue averageValue: "5" 

The part most setups get wrong is the adapter glue: the series name, the pod-level aggregation, and the resource association. When it is wired right, replicas scale with actual demand instead of a proxy for it.

Two more production basics people skip: a ServiceMonitor so Prometheus actually scrapes the metrics you are scaling on, and a PodDisruptionBudget so a node drain never takes your last warm replica. And request GPUs correctly, nvidia.com/gpu: 2 with the model's tensor-parallel size matching, or the scheduler will make creative decisions for you.

The shortcut

This is all packaged as a production starter kit: the deployment with the right probes and shm, the ServiceMonitor, the PDB, the prometheus-adapter config, and a setup guide covering model/GPU right-sizing and OOM fixes. Every manifest is kubeconform-validated. $39: https://probizgen.gumroad.com/l/ProductionvLLMonKubernetes

Black Friday: 30% off this pack (and everything else in the store, including the $79 three-pack bundle) with code BF30 through Monday Nov 30: https://probizgen.gumroad.com/l/ProductionvLLMonKubernetes/BF30

Disclosure: I built and sell this pack. The three gotchas above are the real content; the pack is the working deployment you don't have to debug.

Pairs with the GPU monitoring pack, because the first thing you want after serving works is to know what your GPUs are doing: https://probizgen.gumroad.com/l/GPUMonitoringStarterPack