KServe
Gets KServe installed on a cluster and serving an LLM behind an OpenAI-compatible endpoint, with routing,
scaling and rollouts that match the model size. Verified against KServe v0.21.0 (2026-10-11).
Scope: KServe only: install, serve, scale, roll out, update, troubleshoot. Engine flags belong to vllm,
the router and well-lit paths to llm-d, the Helm-only vLLM router to vllm-production-stack.
Work through the steps in order. Load a reference only when a step names it.
Discover first
Everything here is read-only and never prints secrets.
kubectl config current-context; kubectl version -o json | jq -r '.serverVersion.gitVersion'
kubectl get crd | grep -E 'serving.kserve.io|gateway.networking|inference.networking|leaderworkerset|keda.sh'
kubectl get pods -n kserve 2>/dev/null
kubectl get deploy -n kserve -o jsonpath='{range .items[*]}{.metadata.name}{" "}{.spec.template.spec.containers[0].image}{"\n"}{end}' 2>/dev/null
kubectl get inferenceservice,llminferenceservice -A 2>/dev/null
kubectl get clusterservingruntime,llminferenceserviceconfig -A 2>/dev/null
kubectl get configmap inferenceservice-config -n kserve -o jsonpath='{.data.deploy}' 2>/dev/null; echo
kubectl get gatewayclass,gateway -A 2>/dev/null
kubectl get nodes -o custom-columns='NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu'
helm list -A 2>/dev/null | grep -i kserve
Decision flow
- Which resource? LLMs on GPUs, scheduler routing, prefill/decode, multi-node or WVA autoscaling ->
LLMInferenceService (CRD serving.kserve.io, storage version v1alpha2, v1alpha1 still served).
A simple single-node LLM, or classic ML (sklearn, XGBoost, Triton) -> InferenceService (v1beta1).
Nothing needs a platform? Plain manifests are simpler: skill vllm.
- Which install? Follow
references/install.md: LLMs only -> llmisvc install (Gateway API, Envoy Gateway,
Envoy AI Gateway, LeaderWorkerSet, cert-manager). Mixed -> KServe plus llmisvc. Add LocalModel only for
cold-start caching of InferenceService models.
- Deploy from
templates/llmisvc-gpu.yaml or templates/inferenceservice-hf.yaml; field guide in
references/llminferenceservice.md and references/inferenceservice-huggingface.md.
- Verify
READY=True, then one /v1/chat/completions through the gateway or port-forward.
- Scale and roll out:
references/scaling-and-rollout.md (WVA, KEDA, canary groups, LocalModel).
- Connect clients:
references/integrations.md (LiteLLM, Envoy AI Gateway, metrics, tracing).
- Upgrade or break:
references/updating.md, references/troubleshooting.md.
Rules
- Ask before changing the cluster. CRDs, controllers, gateways and namespaces are cluster-wide. Show the
command and the undo (
helm uninstall, kubectl delete -k) first.
- Pin versions. Use the release you verified; docs pages may still show an older install script version.
- Secrets stay out of manifests.
kubectl create secret generic hf-secret --from-file=HF_TOKEN=<file>
(a 0600 file), never --from-literal in shell history or a committed Secret.
- Never rely on
latest. Pin runtime images in templates; the sample images upstream use latest.
- Check the status conditions, not just the pods.
Ready rolls up WorkloadsReady and RouterReady.
- One engine flag source. KServe passes extra vLLM flags through
args or VLLM_ADDITIONAL_ARGS; look the
flag up with the vllm skill.
Quick start (LLMInferenceService on a GPU cluster)
# After the install in references/install.md
kubectl create namespace llm-demo
kubectl apply -n llm-demo -f templates/llmisvc-gpu.yaml
kubectl get llminferenceservice -n llm-demo -w
kubectl get llminferenceservice qwen-single -n llm-demo -o jsonpath='{.status.url}{"\n"}'
The request path is <gateway>/<namespace>/<name>/v1/chat/completions (verified in the upstream quickstart).
For a quick test, port-forward the Envoy Gateway service labeled serving.kserve.io/gateway=kserve-ingress-gateway.
Workflows
Reference index
references/install.md: install matrix (Helm OCI charts, kustomize, quick-install scripts), dependencies.
references/llminferenceservice.md: spec fields, config composition, scheduler, parallelism, prefill/decode.
references/inferenceservice-huggingface.md: Hugging Face runtime, storage containers, multi-node, KEDA.
references/scaling-and-rollout.md: WVA, canary groups, LocalModelCache, KV cache offloading, LoRA.
references/integrations.md: LiteLLM, Envoy AI Gateway, observability, security.
references/updating.md: chart restructure notes, upgrade order, rollback.
references/troubleshooting.md: symptom to fix table.
templates/: llmisvc-gpu.yaml, inferenceservice-hf.yaml.
Companion skills
llm-d: the router and well-lit-path architecture KServe's LLMInferenceService is built on. Install: npx skills add ScaleDockHQ/llm-skills --skill llm-d.
vllm: engine flags, parsers and tuning. Install: npx skills add ScaleDockHQ/llm-skills --skill vllm.
vllm-production-stack: Helm-based alternative with its own router. Install: npx skills add ScaleDockHQ/llm-skills --skill vllm-production-stack.
litellm: gateway with keys and budgets in front of the endpoint. Install: npx skills add ScaleDockHQ/llm-skills --skill litellm.
cloud-llms: where Kubernetes fits among hosting options. Install: npx skills add ScaleDockHQ/llm-skills --skill cloud-llms.
1---2name: kserve3description: Deploy and operate KServe on Kubernetes for LLMs and ML models (InferenceService, LLMInferenceService, ServingRuntime, LocalModelCache). Use for installing KServe or its llmisvc controller, hf:// model serving with vLLM, llm-d scheduler routing, prefill/decode, multi-node, WVA/KEDA autoscaling, canary rollouts, model caching, upgrades. Fixes InferenceService not Ready, Gateway or HTTPRoute missing, storage-initializer errors. Not for plain Deployments (vllm), llm-d alone (llm-d) or vLLM Helm (vllm-production-stack).4license: MIT5compatibility: A Kubernetes 1.32+ cluster with kubectl and Helm 3.8+, NVIDIA GPU nodes for GPU models (CPU works for demos), curl and jq. Installs, CRD changes, gateways and exposure need the user's explicit approval.6metadata:7 source: https://skillmd.com/skills/scaledockhq/kserve8 author: ScaleDockHQ9 version: "0.1.0"10---1112# KServe1314Gets KServe installed on a cluster and serving an LLM behind an OpenAI-compatible endpoint, with routing,15scaling and rollouts that match the model size. Verified against KServe v0.21.0 (2026-10-11).1617**Scope:** KServe only: install, serve, scale, roll out, update, troubleshoot. Engine flags belong to `vllm`,18the router and well-lit paths to `llm-d`, the Helm-only vLLM router to `vllm-production-stack`.1920Work through the steps in order. Load a reference only when a step names it.2122## Discover first2324Everything here is read-only and never prints secrets.2526```bash27kubectl config current-context; kubectl version -o json | jq -r '.serverVersion.gitVersion'28kubectl get crd | grep -E 'serving.kserve.io|gateway.networking|inference.networking|leaderworkerset|keda.sh'29kubectl get pods -n kserve 2>/dev/null30kubectl get deploy -n kserve -o jsonpath='{range .items[*]}{.metadata.name}{" "}{.spec.template.spec.containers[0].image}{"\n"}{end}' 2>/dev/null31kubectl get inferenceservice,llminferenceservice -A 2>/dev/null32kubectl get clusterservingruntime,llminferenceserviceconfig -A 2>/dev/null33kubectl get configmap inferenceservice-config -n kserve -o jsonpath='{.data.deploy}' 2>/dev/null; echo34kubectl get gatewayclass,gateway -A 2>/dev/null35kubectl get nodes -o custom-columns='NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu'36helm list -A 2>/dev/null | grep -i kserve37```3839## Decision flow40411. **Which resource?** LLMs on GPUs, scheduler routing, prefill/decode, multi-node or WVA autoscaling ->42 `LLMInferenceService` (CRD `serving.kserve.io`, storage version `v1alpha2`, `v1alpha1` still served).43 A simple single-node LLM, or classic ML (sklearn, XGBoost, Triton) -> `InferenceService` (`v1beta1`).44 Nothing needs a platform? Plain manifests are simpler: skill `vllm`.452. **Which install?** Follow `references/install.md`: LLMs only -> llmisvc install (Gateway API, Envoy Gateway,46 Envoy AI Gateway, LeaderWorkerSet, cert-manager). Mixed -> KServe plus llmisvc. Add LocalModel only for47 cold-start caching of `InferenceService` models.483. **Deploy** from `templates/llmisvc-gpu.yaml` or `templates/inferenceservice-hf.yaml`; field guide in49 `references/llminferenceservice.md` and `references/inferenceservice-huggingface.md`.504. **Verify** `READY=True`, then one `/v1/chat/completions` through the gateway or port-forward.515. **Scale and roll out**: `references/scaling-and-rollout.md` (WVA, KEDA, canary groups, LocalModel).526. **Connect clients**: `references/integrations.md` (LiteLLM, Envoy AI Gateway, metrics, tracing).537. **Upgrade or break**: `references/updating.md`, `references/troubleshooting.md`.5455## Rules5657- **Ask before changing the cluster.** CRDs, controllers, gateways and namespaces are cluster-wide. Show the58 command and the undo (`helm uninstall`, `kubectl delete -k`) first.59- **Pin versions.** Use the release you verified; docs pages may still show an older install script version.60- **Secrets stay out of manifests.** `kubectl create secret generic hf-secret --from-file=HF_TOKEN=<file>`61 (a `0600` file), never `--from-literal` in shell history or a committed Secret.62- **Never rely on `latest`.** Pin runtime images in templates; the sample images upstream use `latest`.63- **Check the status conditions, not just the pods.** `Ready` rolls up `WorkloadsReady` and `RouterReady`.64- **One engine flag source.** KServe passes extra vLLM flags through `args` or `VLLM_ADDITIONAL_ARGS`; look the65 flag up with the `vllm` skill.6667## Quick start (LLMInferenceService on a GPU cluster)6869```bash70# After the install in references/install.md71kubectl create namespace llm-demo72kubectl apply -n llm-demo -f templates/llmisvc-gpu.yaml73kubectl get llminferenceservice -n llm-demo -w74kubectl get llminferenceservice qwen-single -n llm-demo -o jsonpath='{.status.url}{"\n"}'75```7677The request path is `<gateway>/<namespace>/<name>/v1/chat/completions` (verified in the upstream quickstart).78For a quick test, port-forward the Envoy Gateway service labeled `serving.kserve.io/gateway=kserve-ingress-gateway`.7980## Workflows8182- [ ] Install -> `references/install.md`83- [ ] Deploy an LLM -> `references/llminferenceservice.md` or `references/inferenceservice-huggingface.md`84- [ ] Autoscale, canary, cache models -> `references/scaling-and-rollout.md`85- [ ] Gateway, LiteLLM, metrics -> `references/integrations.md`86- [ ] Upgrade -> `references/updating.md`87- [ ] Diagnose -> `references/troubleshooting.md`88- [ ] Done when: `kubectl get llminferenceservice` shows `READY=True` and a completion returns through the gateway.8990## Reference index9192- `references/install.md`: install matrix (Helm OCI charts, kustomize, quick-install scripts), dependencies.93- `references/llminferenceservice.md`: spec fields, config composition, scheduler, parallelism, prefill/decode.94- `references/inferenceservice-huggingface.md`: Hugging Face runtime, storage containers, multi-node, KEDA.95- `references/scaling-and-rollout.md`: WVA, canary groups, LocalModelCache, KV cache offloading, LoRA.96- `references/integrations.md`: LiteLLM, Envoy AI Gateway, observability, security.97- `references/updating.md`: chart restructure notes, upgrade order, rollback.98- `references/troubleshooting.md`: symptom to fix table.99- `templates/`: `llmisvc-gpu.yaml`, `inferenceservice-hf.yaml`.100101## Companion skills102103- `llm-d`: the router and well-lit-path architecture KServe's LLMInferenceService is built on. Install: `npx skills add ScaleDockHQ/llm-skills --skill llm-d`.104- `vllm`: engine flags, parsers and tuning. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm`.105- `vllm-production-stack`: Helm-based alternative with its own router. Install: `npx skills add ScaleDockHQ/llm-skills --skill vllm-production-stack`.106- `litellm`: gateway with keys and budgets in front of the endpoint. Install: `npx skills add ScaleDockHQ/llm-skills --skill litellm`.107- `cloud-llms`: where Kubernetes fits among hosting options. Install: `npx skills add ScaleDockHQ/llm-skills --skill cloud-llms`.