Running a self-hosted LLM in Kubernetes with vLLM

· Source: Cloud Native Computing Foundation · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cloud Computing & IT Infrastructure · Depth: Intermediate, medium

Summary

Michael Troutman of LINBIT, in a post from July 16, 2026, outlines the deployment of a self-hosted large language model (LLM) inference stack within a Kubernetes lab environment. The setup leverages vLLM as a high-performance inference engine and LINSTOR for replicated persistent storage. Specifically, it demonstrates serving the meta-llama/Llama-3.2-1B-Instruct model, a 1B parameter model, by configuring a 50Gi PersistentVolumeClaim with the linstor-csi-lvm-thin-r2 storage class. This ensures model weights are cached persistently, accelerating pod restarts. The vLLM instance exposes an OpenAI-compatible REST API, facilitating integration with existing tools like LangChain or LlamaIndex and supporting hybrid AI strategies. The article provides detailed Kubernetes resource definitions for the PVC, a Hugging Face token secret, and the vLLM Deployment and Service, including testing instructions.

Key takeaway

For MLOps Engineers evaluating LLM deployment strategies, this setup demonstrates a robust pattern for self-hosting. You can achieve predictable costs and data residency by deploying vLLM in Kubernetes with LINSTOR-backed persistent storage. This approach, using an OpenAI-compatible API, allows you to integrate open-source models for sensitive or high-volume workloads while maintaining flexibility for hybrid AI architectures. Consider layering an inference router like llm-d for advanced request dispatching.

Key insights

Self-hosting LLMs in Kubernetes with vLLM and LINSTOR provides control over cost, latency, and data residency.

Principles

Method

Deploy vLLM in Kubernetes using a PersistentVolumeClaim for model caching and a Secret for Hugging Face access, then expose via a Service.

In practice

Topics

Code references

Best for: AI Engineer, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Cloud Native Computing Foundation.