Getting Started
Verified against
v0.19.0. Commands assume a localkindcluster and that you serve a predictive model inStandardmode.
Prerequisites
- A Kubernetes cluster. For local testing,
kindplus Docker. kubectlconfigured against that cluster.- Outbound network access so the storage-initializer can pull the sample model from public object storage.
Install
The exact install asset name changes per release, so follow the official KServe Quickstart Guide for the version you run. The high-level flow is the same across releases.
kind create clusterThe repo ships an install script with explicit mode flags (hack/kserve-install.sh). Standard mode is the lightweight, Knative-free option:
./hack/kserve-install.sh --standardThe script also accepts --knative for serverless mode and --keda for KEDA-based autoscaling. The quickstart guide wraps the same steps in a single curl ... | bash install for your chosen release.
A first working setup
Serve the scikit-learn iris model. The manifest below matches the in-repo sample at hack/release/smoke-test-data/sklearn-iris.yaml.
Create the
InferenceService.yamlapiVersion: "serving.kserve.io/v1beta1" kind: "InferenceService" metadata: name: "sklearn-iris" spec: predictor: sklearn: storageUri: "gs://kfserving-examples/models/sklearn/1.0/model"Apply it.
bashkubectl apply -f sklearn-iris.yaml
KServe picks the scikit-learn ServingRuntime by model format, injects a storage-initializer init container that downloads the model from storageUri into /mnt/models, and creates the Deployment, Service, and HPA.
Verify it works
Wait for the resource to report Ready, then read its URL:
kubectl get inferenceservice sklearn-irisThe READY column should turn True and the URL column should be populated. The printer columns come from the CRD definition (pkg/apis/serving/v1beta1/inference_service.go:140-147). From there, send a prediction request to that URL following the protocol example in the quickstart guide.
Where to go next
- The KServe Quickstart Guide for the version-pinned install command and a full prediction request.
- The KServe Admin Guide for production install of Standard, Knative, or ModelMesh modes (linked from the repo
README.md). - The v0.15 generative AI announcement for the
LLMInferenceServicepath.