Vincent Tran

llmdup: from a Kubernetes cluster to a working llm-d endpoint in one command

llm-d 1.0 ships every well-lit path as a machine-readable recipe. llmdup runs those recipes for you: a terminal UI for people, a JSON CLI for scripts and an MCP server for agents.

In short

  • llm-d 1.0 ships every well-lit path as a recipe. llmdup runs those recipes for you, instead of you copying commands out of a README.
  • llmdup local up --yes brings up the llm-d router, the Inference Extension and two simulated model servers on a laptop in about two minutes, with no GPU.
  • The same plan runs on your cluster, from a k9s-style UI, a JSON CLI, or an MCP server that agents can use safely.

Why it exists

llm-d is a Kubernetes-native way to serve LLMs, with prefix-cache aware routing, prefill/decode disaggregation and latency-based routing. The hard part is the first hour: clone the right release, read a support table, export a dozen variables, copy the blocks that apply, and hope the cleanup was complete.

llm-d 1.0 made that machine-readable: each guide is a guide.yaml with variables, a support matrix and ordered prerequisite, deploy, verify and cleanup steps. llmdup drives that recipe. It writes no install commands of its own, so what it runs is exactly what llm-d’s own guides say.

By handllmdup
VariablesRead the support table, export a dozenDetects accelerator, provider and model; validates every value
Cluster-wide changesEasy to missFlagged, shown with real values, run only after you confirm
Knowing it workedWatch pods, craft a curlWaits for ready pods, sends the guide’s own smoke test
TeardownFind the cleanup block, hopeRuns the guide’s cleanup, then checks nothing is left

Try it in two minutes, no GPU

uv tool install llmdup        # or: pip install llmdup
llmdup local up --yes         # kind + llm-d router + simulated models
llmdup status                 # pods and the endpoint
llmdup test                   # rerun the guide's smoke test
llmdup down --yes             # cleanup, then check nothing is left
llmdup local down --yes       # delete the kind cluster

That is a real llm-d stack on a laptop kind cluster: the router, the Gateway API Inference Extension and two simulated model servers, answering /v1/completions through the router. You need Python 3.14 (uv installs it), kubectl, helm and kind with Docker or Podman.

llmdup terminal UI listing the llm-d guides, with support for the detected accelerator
The guides view, with support shown for the detected accelerator.

Then run the same plan on your cluster

# preflight: tools, GPUs, CRDs, capacity, HF_TOKEN
llmdup doctor optimized-baseline --context my-cluster

# the ordered steps, cluster-wide ones flagged
llmdup plan optimized-baseline --accelerator gpu

# print the exact script, then run it: deploy, wait for pods, smoke test
llmdup up optimized-baseline --context my-cluster --dry-run
llmdup up optimized-baseline --context my-cluster --yes

llmdup down --context my-cluster --namespace llm-d-optimized-baseline --yes

Anything you leave out comes from detection first, then from the guide’s defaults. A value the guide does not allow exits with code 2 and lists the allowed ones. All 27 guides in llm-d v1.0.0 that have a guide.yaml load and plan for up, test and down.

llmdup plan view: variables with their source, ordered steps with tags, and the exact command of the selected step
The plan view: every variable with its source, every step with its exact command.

One core, three front ends

Terminal UIfor peopleJSON CLIfor scriptsMCP serverfor agentsONE COREdoctorplanrun the stepswait, then smoke testllm-d v1.0 guide.yamlpinned, commit-checkedREADSKubernetesone pinned contextRUNSstate in the clusterstatus, test and down work from any machine
Three front ends, one core. The steps come from llm-d's own guide.yaml; llmdup writes no install commands of its own.
  • Terminal UI for people. Run llmdup with no arguments. k9s keys; plan, deploy with a live log, doctor with copyable fixes, and stacks where you can test, tail logs, read metrics, port-forward or tear down.
  • CLI for scripts. With --yes and --json, every command prints exactly one JSON document and returns a stable exit code: 1 names the failed step and its last 40 log lines, 2 is a bad value, 3 a blocking preflight check, 4 a confirmation that is needed.
  • MCP server for agents. claude mcp add llmdup -- llmdup mcp gives an agent eight tools, from list_guides to down. up and down are two-step: without confirm: true they change nothing and return the plan, the target context and the exact commands, and the confirmed call must name that same context.

Safe by construction

  • The kube context is resolved once and pinned for every command, so switching context in another terminal cannot redirect a deploy.
  • Cluster-scoped steps and every delete need explicit confirmation that shows the real context, namespace and commands.
  • HF_TOKEN and other secrets come only from the environment and are redacted from logs, JSON, state and the screen.
  • Teardown verifies the namespace, Helm releases and pods afterwards. Anything it cannot verify counts as left behind.

Why it matters

  • Trying llm-d costs two minutes on a laptop instead of a GPU budget, so a team can learn the router and the Inference Extension before it buys capacity.
  • The plan you tried locally is the plan you deploy, so there is no gap between the demo and the cluster.
  • Verified teardown means a forgotten experiment does not keep holding GPUs.
  • Agents can stand up and tear down inference, with a person approving every cluster-wide change.

Not in 0.1: creating cloud clusters, choosing a configuration from a workload or SLA, benchmarks, several guides in one namespace, and upgrades between llm-d versions.

Try it, and tell me what breaks

uv tool install llmdup
llmdup local up --yes

The code is on GitHub under Apache-2.0, like llm-d, and the package is on PyPI. If you run it on a cluster, open an issue with your accelerator, provider and the guide you tried, whether it worked or not. That is the fastest way to make the next release better.