Member-only story
Knative Series: Knative Serving and Eventing
11 min readJan 24, 2023
Knative Serving is a set of components for building and deploying serverless workloads on Kubernetes. It provides a set of abstractions for building, deploying, and managing containerized applications, and it can be used to build both stateless and stateful applications.
The main components of Knative Serving are:
- Kubernetes: Knative Serving is built on top of Kubernetes and leverages its primitives, such as pods and services, to deploy and manage serverless applications.
- Activator: The Activator is a component that listens for incoming requests and routes them to the appropriate revision of an application. It is responsible for scaling the number of replicas of an application based on traffic. The activator is responsible for starting and stopping the serverless workloads based on the incoming traffic. It creates new replicas of the workloads when the traffic increases and scales down the replicas when the traffic decreases.
- Controller: The controller is responsible for managing the lifecycle of the serverless workloads. It watches for changes in the Kubernetes resources and updates the state of the workloads accordingly.
- Autoscaler: The autoscaler is responsible for scaling the serverless workloads based on the incoming traffic. It monitors the traffic and adjusts…