KServe: deploy a model as an InferenceService with autoscaling on Kubernetes

domain: ml-ops · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Write an InferenceService manifest (apiVersion serving.kserve.io/v1beta1) with spec.predictor.model.modelFormat.name (e.g. sklearn) and storageUri pointing to your model artifact, plus resources requests/limits.
  2. Add spec.predictor.minReplicas and spec.predictor.maxReplicas to bound the autoscaler; KServe defaults minReplicas to 1, and you can set it to 0 to allow scale-to-zero.
  3. Optionally set scaleTarget and scaleMetric on the predictor to tune the autoscaling threshold — KServe's default autoscaler (Knative Pod Autoscaler / KPA) scales on concurrent request count against scaleTarget.
  4. Apply the manifest with `kubectl apply -n <namespace> -f isvc.yaml`, then check status with `kubectl get inferenceservices <name> -n <namespace>` and confirm the READY column and URL.
  5. Send inference requests to `http://<isvc-name>.<namespace>.<domain>/v1/models/<model>:predict` (via the ingress gateway) to exercise and observe autoscaling under load.

Known gotchas

Related routes

KServe: deploy an InferenceService on Kubernetes
kserve.github.io/website/docs · 6 steps · unrated
Deploy a KServe InferenceService on Kubernetes
kserve.github.io · 6 steps · unrated
Deploy a custom predictor container as a KServe InferenceService
kserve.github.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans