Knative extends Kubernetes with Serving, Eventing, and Functions to deploy HTTP services, route CloudEvents, and build stateless functions as containers with scale-to-zero and traffic management.
Overview
Knative is a Kubernetes-based platform that provides middleware for building, deploying, and managing modern serverless workloads. It adds higher-level abstractions on top of Kubernetes to simplify cloud-native application development and operation.
Three main components work together or independently: Knative Serving manages HTTP-triggered autoscaling container runtimes with deployment, routing, and scaling; Knative Eventing delivers a CloudEvents-over-HTTP routing layer for asynchronous producers and consumers; Knative Functions offers a developer-oriented path to build and deploy stateless functions using Serving and Eventing, including local build and test without a cluster initially.
Serving defines Kubernetes CRDs for Services, Routes, Configurations, and Revisions. A Service coordinates routes and revisions; revisions are immutable snapshots that scale with traffic. Capabilities include scale from zero, blue-green and canary-style traffic splitting, ingress with custom domains and TLS, and separation of code from configuration.
Eventing addresses event ingestion, routing, and delivery using CloudEvents and Kubernetes configuration. Knative is portable across cloud providers and on-premises Kubernetes clusters compared to cloud-specific serverless products. Serving can request GPU resources on pods for inference-style HTTP workloads and integrates with KServe for production LLM deployments.
Key features
- HTTP Serving with scale-to-zero
- Traffic splitting and revisions
- CloudEvents event routing
- Knative Functions developer workflow
- Kubernetes-native CRD resources
- Ingress and TLS networking
- Optional GPU resource requests
- Incremental component adoption
Use cases
- Serverless HTTP APIs on Kubernetes
- Event-driven architectures with CloudEvents
- Function builds deployed as containers
- LLM inference services with autoscaling