What This Design Does:

Reference Kubernetes architecture for serving large language models with vLLM's OpenAI-compatible API server. Includes: - Deployment running vllm/vllm-openai with GPU resource requests, readiness/liveness probes on /health, and shared memory (/dev/shm) - Service exposing the OpenAI-compatible API on port 8000, plus an Ingress routing /v1 traffic - PersistentVolumeClaim caching Hugging Face model weights so pod restarts don't re-download models - ConfigMap for model name and max context length; Secret for the Hugging Face token - HorizontalPodAutoscaler scaling replicas 1–3 on CPU utilization

Design Snapshot

vllm-inference-server design snapshot

Caveats and Consideration:

Requires a GPU node pool with the NVIDIA device plugin, a default StorageClass, and an NGINX ingress controller. Pods will not schedule without GPU nodes. Before deploying: replace the placeholder HF_TOKEN in the hf-token Secret, set MODEL_NAME in vllm-config (default: Qwen/Qwen2.5-0.5B-Instruct), and adjust GPU/memory requests and PVC size for your model. CPU-based autoscaling is a simple default; for production, scale on request queue depth or GPU utilization via custom metrics.

Compatibility:

`