llm-d
Gets the llm-d serving stack running on a cluster: an intelligent router (EPP) in front of a pool of model-server
pods, with the right well-lit path for the workload. Verified against llm-d v0.10.0 (2026-10-11).
Scope: llm-d only: install, route, disaggregate, offload KV, autoscale, roll out, update, troubleshoot. Engine
flags belong to vllm, the KServe wrapper to kserve, the Helm router from the vLLM project to vllm-production-stack.
Work through the steps in order. Load a reference only when a step names it.
Discover first
Read-only; never prints secrets.
kubectl config current-context; kubectl version -o json | jq -r '.serverVersion.gitVersion'
kubectl get crd | grep -E 'inference.networking|gateway.networking|leaderworkerset|keda.sh|monitoring.coreos.com'
kubectl get inferencepool,httproute,gateway -A 2>/dev/null
helm list -A 2>/dev/null | grep -Ei 'llm-d|router'
kubectl get deploy,pods -A -l llm-d.ai/guide 2>/dev/null
kubectl get nodes -o custom-columns='NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu,AMD:.status.allocatable.amd\.com/gpu'
command -v helm kubectl git kustomize
Decision flow
- Start here for almost everything: the optimized baseline (prefix-cache-aware plus load-aware routing over
a vLLM pool).
references/install.md.
- Gateway or standalone? Standalone mode runs the router with an Envoy sidecar and needs no Gateway
(easiest). Gateway mode needs a Gateway API Inference Extension implementation: GKE Gateway, Istio, agentgateway
or Envoy AI Gateway.
- Pick a path by workload (
references/well-lit-paths.md):
multi-turn or agentic with shared prefixes -> baseline, then precise prefix-cache routing;
long prompts on medium to large models -> prefill/decode disaggregation (RDMA helps);
very large MoE (DeepSeek-R1, gpt-oss) -> wide expert parallelism; long context churn -> tiered KV offload;
many tenants or priorities -> flow control; several base models behind one URL -> multi-model routing.
- Autoscale and roll out:
references/scaling-and-rollouts.md (KEDA on EPP metrics, blue-green, LoRA rollout).
- Observe:
references/operations.md (PodMonitors, PromQL signals, probes, drain).
- Update or break:
references/updating.md, references/troubleshooting.md.
Rules
- Ask before cluster changes. Gateway API and inference-extension CRDs, gateways and namespaces are shared
state. Show the command and the undo first.
- Guides are the source of truth. Check out the release branch (
release-0.10 for v0.10.0) and apply its
kustomize overlays; do not mix a newer chart with older overlays.
- Pin versions.
guides/env.sh sets defaults (ROUTER_CHART_VERSION, GAIE_VERSION, GATEWAY_API_VERSION;
v0.11.0, v1.5.0 and v1.5.1 in the v0.10.0 tag). Print them after sourcing and export your own pins.
- Secrets from files. Create
llm-d-hf-token from a 0600 file: --from-file=HF_TOKEN=<file>. Upstream guides
show --from-literal; do not paste tokens into a shell.
- Calibrate off the reference hardware.
peakPrefillThroughput defaults to the value measured for Qwen3-32B on
H100 TP=2; measure your own for other models or accelerators.
- Do not use
llm-d-cuda for new installs. v0.10.0 deprecated it for docker.io/vllm/vllm-openai.
Quick start (standalone, optimized baseline, NVIDIA GPUs)
git clone --depth 1 --branch release-0.10 https://github.com/llm-d/llm-d.git && cd llm-d
export REPO_ROOT=$(realpath .) GUIDE_NAME=quickstart NAMESPACE=llm-d-quickstart
source "$REPO_ROOT/guides/env.sh"
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api-inference-extension/${GAIE_URL}/v1-manifests.yaml
kubectl create namespace $NAMESPACE
kubectl create secret generic llm-d-hf-token -n $NAMESPACE --from-file=HF_TOKEN=/path/to/token-file
helm install $GUIDE_NAME $ROUTER_STANDALONE_CHART \
-f guides/recipes/router/base.values.yaml -f guides/optimized-baseline/router/optimized-baseline.values.yaml \
-n $NAMESPACE --version $ROUTER_CHART_VERSION
kubectl apply -n $NAMESPACE -k guides/optimized-baseline/modelserver/gpu/vllm/base/
The default deploys 8 replicas of Qwen/Qwen3-32B at TP=2, so 16 GPUs; reduce replicas and tensor parallel size
for a smaller cluster. Test from inside the cluster against svc/${GUIDE_NAME}-epp. Details in references/install.md.
Workflows
Reference index
references/install.md: prerequisites, versions, standalone and gateway mode, accelerators, cleanup.
references/well-lit-paths.md: every path, what it needs, and the directory to apply.
references/scaling-and-rollouts.md: KEDA autoscaling signals, WVA status, blue-green, adapter rollout.
references/operations.md: monitoring, metrics, probes, graceful shutdown, router HA, startup.
references/updating.md: release themes, deprecations and migrations.
references/troubleshooting.md: symptom to fix table.
templates/: router values override and a model-server probe patch.
Companion skills
vllm: the engine under the pool; flags, parsers, tuning. Install: npx skills add ScaleDockHQ/llm-skills --skill vllm.
kserve: LLMInferenceService wraps llm-d's router for KServe users. Install: npx skills add ScaleDockHQ/llm-skills --skill kserve.
vllm-production-stack: the Helm-based alternative. Install: npx skills add ScaleDockHQ/llm-skills --skill vllm-production-stack.
gateway-api-inference-extension: the InferencePool and EPP standard llm-d builds on. Install: npx skills add ScaleDockHQ/llm-skills --skill gateway-api-inference-extension.
keda: event-driven autoscaling for the EPP path. Install: npx skills add ScaleDockHQ/llm-skills --skill keda.
disaggregated-serving, prefix-aware-routing, kv-cache-offloading: technique skills behind the paths. Install: npx skills add ScaleDockHQ/llm-skills --skill disaggregated-serving.
1---2name: llm-d3description: Deploy llm-d on Kubernetes, the CNCF distributed LLM inference stack (llm-d Router, EPP, InferencePool) in front of vLLM or SGLang with prefix-cache and load-aware routing. Use for the optimized-baseline quickstart, precise prefix-cache routing, prefill/decode, wide expert parallelism, tiered KV offload, flow control, KEDA autoscaling, rollouts, release upgrades. Fixes uneven load, low cache hit rate, gateway or CRD errors. Not for KServe (kserve), vLLM Helm router (vllm-production-stack), Dynamo or single-node vLLM (vllm).4license: MIT5compatibility: A Kubernetes cluster with kubectl, helm and git, a Gateway API Inference Extension capable proxy (standalone Envoy mode needs none), NVIDIA, AMD, Intel or TPU nodes, curl and jq. Cluster-wide installs, CRDs and gateways need the user's explicit approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/llm-d8 author: ScaleDockHQ9 version: "0.1.0"10---1112# llm-d1314Gets the llm-d serving stack running on a cluster: an intelligent router (EPP) in front of a pool of model-server15pods, with the right well-lit path for the workload. Verified against llm-d v0.10.0 (2026-10-11).1617**Scope:** llm-d only: install, route, disaggregate, offload KV, autoscale, roll out, update, troubleshoot. Engine18flags belong to `vllm`, the KServe wrapper to `kserve`, the Helm router from the vLLM project to `vllm-production-stack`.1920Work through the steps in order. Load a reference only when a step names it.2122## Discover first2324Read-only; never prints secrets.2526```bash27kubectl config current-context; kubectl version -o json | jq -r '.serverVersion.gitVersion'28kubectl get crd | grep -E 'inference.networking|gateway.networking|leaderworkerset|keda.sh|monitoring.coreos.com'29kubectl get inferencepool,httproute,gateway -A 2>/dev/null30helm list -A 2>/dev/null | grep -Ei 'llm-d|router'31kubectl get deploy,pods -A -l llm-d.ai/guide 2>/dev/null32kubectl get nodes -o custom-columns='NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu,AMD:.status.allocatable.amd\.com/gpu'33command -v helm kubectl git kustomize34```3536## Decision flow37381. **Start here for almost everything:** the optimized baseline (prefix-cache-aware plus load-aware routing over39 a vLLM pool). `references/install.md`.402. **Gateway or standalone?** Standalone mode runs the router with an Envoy sidecar and needs no Gateway41 (easiest). Gateway mode needs a Gateway API Inference Extension implementation: GKE Gateway, Istio, agentgateway42 or Envoy AI Gateway.433. **Pick a path by workload** (`references/well-lit-paths.md`):44 multi-turn or agentic with shared prefixes -> baseline, then precise prefix-cache routing;45 long prompts on medium to large models -> prefill/decode disaggregation (RDMA helps);46 very large MoE (DeepSeek-R1, gpt-oss) -> wide expert parallelism; long context churn -> tiered KV offload;47 many tenants or priorities -> flow control; several base models behind one URL -> multi-model routing.484. **Autoscale and roll out:** `references/scaling-and-rollouts.md` (KEDA on EPP metrics, blue-green, LoRA rollout).495. **Observe:** `references/operations.md` (PodMonitors, PromQL signals, probes, drain).506. **Update or break:** `references/updating.md`, `references/troubleshooting.md`.5152## Rules5354- **Ask before cluster changes.** Gateway API and inference-extension CRDs, gateways and namespaces are shared55 state. Show the command and the undo first.56- **Guides are the source of truth.** Check out the release branch (`release-0.10` for v0.10.0) and apply its57 kustomize overlays; do not mix a newer chart with older overlays.58- **Pin versions.** `guides/env.sh` sets defaults (`ROUTER_CHART_VERSION`, `GAIE_VERSION`, `GATEWAY_API_VERSION`;59 `v0.11.0`, `v1.5.0` and `v1.5.1` in the v0.10.0 tag). Print them after sourcing and export your own pins.60- **Secrets from files.** Create `llm-d-hf-token` from a `0600` file: `--from-file=HF_TOKEN=<file>`. Upstream guides61 show `--from-literal`; do not paste tokens into a shell.62- **Calibrate off the reference hardware.** `peakPrefillThroughput` defaults to the value measured for Qwen3-32B on63 H100 TP=2; measure your own for other models or accelerators.64- **Do not use `llm-d-cuda` for new installs.** v0.10.0 deprecated it for `docker.io/vllm/vllm-openai`.6566## Quick start (standalone, optimized baseline, NVIDIA GPUs)6768```bash69git clone --depth 1 --branch release-0.10 https://github.com/llm-d/llm-d.git && cd llm-d70export REPO_ROOT=$(realpath .) GUIDE_NAME=quickstart NAMESPACE=llm-d-quickstart71source "$REPO_ROOT/guides/env.sh"72kubectl apply -f https://github.com/kubernetes-sigs/gateway-api-inference-extension/${GAIE_URL}/v1-manifests.yaml73kubectl create namespace $NAMESPACE74kubectl create secret generic llm-d-hf-token -n $NAMESPACE --from-file=HF_TOKEN=/path/to/token-file75helm install $GUIDE_NAME $ROUTER_STANDALONE_CHART \76 -f guides/recipes/router/base.values.yaml -f guides/optimized-baseline/router/optimized-baseline.values.yaml \77 -n $NAMESPACE --version $ROUTER_CHART_VERSION78kubectl apply -n $NAMESPACE -k guides/optimized-baseline/modelserver/gpu/vllm/base/79```8081The default deploys 8 replicas of Qwen/Qwen3-32B at TP=2, so 16 GPUs; reduce `replicas` and tensor parallel size82for a smaller cluster. Test from inside the cluster against `svc/${GUIDE_NAME}-epp`. Details in `references/install.md`.8384## Workflows8586- [ ] Install -> `references/install.md`87- [ ] Choose and deploy a path -> `references/well-lit-paths.md`88- [ ] Scale and roll out -> `references/scaling-and-rollouts.md`89- [ ] Monitor and operate -> `references/operations.md`90- [ ] Upgrade -> `references/updating.md`91- [ ] Diagnose -> `references/troubleshooting.md`92- [ ] Done when: pods Ready, a completion returns through the router, and EPP metrics show requests spread across pods.9394## Reference index9596- `references/install.md`: prerequisites, versions, standalone and gateway mode, accelerators, cleanup.97- `references/well-lit-paths.md`: every path, what it needs, and the directory to apply.98- `references/scaling-and-rollouts.md`: KEDA autoscaling signals, WVA status, blue-green, adapter rollout.99- `references/operations.md`: monitoring, metrics, probes, graceful shutdown, router HA, startup.100- `references/updating.md`: release themes, deprecations and migrations.101- `references/troubleshooting.md`: symptom to fix table.102- `templates/`: router values override and a model-server probe patch.103104## Companion skills105106- `vllm`: the engine under the pool; flags, parsers, tuning. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm`.107- `kserve`: `LLMInferenceService` wraps llm-d's router for KServe users. Install: `npx skills add ScaleDockHQ/llm-skills --skill kserve`.108- `vllm-production-stack`: the Helm-based alternative. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm-production-stack`.109- `gateway-api-inference-extension`: the InferencePool and EPP standard llm-d builds on. Install: `npx skills add ScaleDockHQ/llm-skills --skill gateway-api-inference-extension`.110- `keda`: event-driven autoscaling for the EPP path. Install: `npx skills add ScaleDockHQ/llm-skills --skill keda`.111- `disaggregated-serving`, `prefix-aware-routing`, `kv-cache-offloading`: technique skills behind the paths. Install: `npx skills add ScaleDockHQ/llm-skills --skill disaggregated-serving`.