Knative Serving¶
Knative Serving defines a set of objects as Kubernetes Custom Resource Definitions (CRDs). These resources are used to define and control how your serverless workload behaves on the cluster.

The primary Knative Serving resources are Services, Routes, Configurations, and Revisions:
-
Services: The
service.serving.knative.devresource automatically manages the whole lifecycle of your workload. It controls the creation of other objects to ensure that your app has a route, a configuration, and a new revision for each update of the service. Service can be defined to always route traffic to the latest revision or to a pinned revision. -
Routes: The
route.serving.knative.devresource maps a network endpoint to one or more revisions. You can manage the traffic in several ways, including fractional traffic and named routes. -
Configurations: The
configuration.serving.knative.devresource maintains the desired state for your deployment. It provides a clean separation between code and configuration and follows the Twelve-Factor App methodology. Modifying a configuration creates a new revision. -
Revisions: The
revision.serving.knative.devresource is a point-in-time snapshot of the code and configuration for each modification made to the workload. Revisions are immutable objects and can be retained for as long as useful. Knative Serving Revisions can be automatically scaled up and down according to incoming traffic.
For more information on the resources and their interactions, see the Resource Types Overview in the serving Github repository.
Start here¶
New to Knative Serving? Follow Try Serving to deploy a container, watch it scale to zero, and split traffic between Revisions on a local cluster.
Choose a task¶
- Deploy and configure: create a Service, convert a Kubernetes Deployment, deploy from a private registry, or configure resource limits, health probes, and volumes.
- Networking: configure private Services, custom domains, custom TLS certificates, or HTTP protocols.
- Revisions and traffic: manage Revisions, split traffic and assign tags, or configure gradual rollouts.
- Autoscaling: tune autoscaling defaults, concurrency, scale bounds, scale to zero, and request buffering.
- Observe and troubleshoot: collect metrics, browse the metrics reference, or troubleshoot application issues.