Install with Operator
The Semantic Router Operator provides a Kubernetes-native way to deploy and manage vLLM Semantic Router instances using Custom Resource Definitions (CRDs). It simplifies deployment, configuration, and lifecycle management across Kubernetes and OpenShift platforms.
Features
- Declarative deployment: Define semantic router instances using Kubernetes CRDs
- Automatic configuration: Generates and manages ConfigMaps for semantic router configuration
- Persistent storage: Manages PVCs for ML model storage with automatic lifecycle
- Platform detection: Automatically detects and configures for OpenShift or standard Kubernetes
- Built-in observability: Metrics, tracing, and monitoring support out of the box
- Production features: HPA, ingress, service mesh integration, and pod disruption budgets
- Secure by default: Drops all capabilities, prevents privilege escalation
Prerequisites
- Kubernetes 1.24+ or OpenShift 4.12+
kubectlorocCLI configured- Cluster admin access (for CRD installation)
Installation
Option 1: Using Kustomize (Standard Kubernetes)
# Clone the repository
git clone https://github.com/vllm-project/semantic-router
cd semantic-router/deploy/operator
# Install CRDs
make install
# Deploy the operator
make deploy IMG=ghcr.io/vllm-project/semantic-router/operator:latest
Verify the operator is running:
kubectl get pods -n semantic-router-operator-system