Deploy the KServe component

Updated at:

Managing the infrastructure for machine learning model serving is complex and resource-intensive. KServe runs your trained models — including TensorFlow Serving (TFServing), TorchServe, and Triton Inference Server — as Kubernetes Custom Resource Definitions (CRDs) on Container Compute Service (ACS), with built-in auto scaling and scale-to-zero support. Deploy KServe through the ACS console to enable serverless model serving on your cluster.

How KServe works

The KServe Controller manages InferenceService custom resources and creates Knative Services to automate resource scaling.

When traffic increases, the KServe Controller scales the Deployment of a Knative Service accordingly. When no requests arrive, it scales the Service pods to zero. This auto scaling mechanism maximizes resource efficiency and reduces idle costs.

image

Model serving runtimes

KServe includes two built-in model serving runtimes:

Runtime

Description

ModelServer

A Python-based runtime that implements KServe prediction protocol v1

MLServer

A runtime that implements KServe prediction protocol v2 with both REST and gRPC support

Both runtimes provide out-of-the-box model serving. For more complex use cases, build a custom model server using KServe's API primitives or tools such as BentoML.

Serverless features

After deploying models with a KServe InferenceService, the following serverless features are available:

  • Scale to zero

  • Auto scaling based on requests per second (RPS), concurrency, and CPU and GPU metrics

  • Multiple version management

  • Traffic management

  • Security authentication

  • Out-of-the-box observability

Deploy KServe

KServe on ACS runs in Knative-backed mode, which uses Knative's serverless infrastructure to handle auto scaling and traffic routing. Knative must be running on your cluster before you install KServe.

Prerequisites

Before you begin, ensure that you have:

  • Knative deployed in your ACS cluster. For more information, see Deploy Knative.

Install KServe from the console

  1. Log on to the ACS console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, find the target cluster and click its ID. In the left-side navigation pane, choose Applications > Knative.

  3. On the Add-ons tab, find the KServe add-on and click Deploy. Follow the on-screen instructions to complete the installation.

Next steps

After you install the KServe add-on, you can quickly deploy an inference service using KServe.