Knative overview
ACK Serverless provides built-in Knative with ALB gateways and reserved instances at no extra cost.
Knative is an open-source, Kubernetes-based platform for building, deploying, and managing serverless workloads.
ACK Serverless integrates Knative. Create an ACK Serverless cluster and enable Knative to use cloud resources through the Knative API. The controller runs at no additional charge.
Components
Knative comprises two core components:
-
Knative Serving: Integrated with ACK Serverless, the Knative Serving controller automatically requests pod resources from the cluster.
-
Knative Gateway: Handles ingress traffic for cluster services. ACK Serverless uses Application Load Balancer (ALB) instances as Knative ingress gateways, eliminating resident gateway infrastructure.
ACK Serverless Knative vs. open-source Knative
| Open-source Knative | ACK Serverless Knative | |
|---|---|---|
| Gateway infrastructure | Requires resident gateway instances (e.g., Istio); you pay for the infrastructure and O&M | Uses ALB as the ingress gateway; no resident gateway instances required |
| Knative controller cost | You pay for the infrastructure running the Knative controller | No charge for the Knative controller |
| Scaling behavior | Scales to zero during off-peak hours; cold starts may cause session timeouts under burst traffic | Keeps one reserved instance; uses burstable instances during off-peak hours to control costs |
Knative Gateway
Open-source Knative supports multiple ingress gateways: Istio, Gloo, Contour, Kourier, and Ambassador. Istio is the most common because it doubles as a service mesh, but requires at least two resident gateway instances per cluster for high availability, plus ongoing infrastructure and O&M costs.
ACK Serverless uses ALB instances as Knative ingress gateways, eliminating resident gateway instances and reducing infrastructure and O&M costs.
Reserved instances
Open-source Knative scales to zero during off-peak hours to minimize costs. The tradeoff is cold start latency: when traffic resumes, the cluster must allocate resources, schedule pods, pull images, and initialize the application, which can cause session timeouts under burst traffic.
ACK Serverless Knative keeps one reserved instance running at all times. During off-peak hours, it swaps compute-optimized instances for burstable instances to reduce costs. When traffic arrives, it switches back. CPU credits accumulated during off-peak hours can offset peak-hour compute costs.
Prerequisites
Requires an ACK Serverless cluster running Kubernetes 1.16 or later. If your cluster runs a version earlier than 1.16, upgrade the cluster before you deploy Knative.
Deploy Knative
Deploy Knative in the ACK console.
Billing
ACK Serverless Knative charges only for the cloud resources used by your cluster: elastic container instances, Server Load Balancer (SLB) instances, and NAT gateways. Each resource is billed per its billing rules.
Knative communication group
If you have questions about Knative, click here to join an organization.
Next steps
-
Deploy Knative: Enable Knative on an ACK Serverless cluster.
-
Reserved instances: Configure reserved instances to balance cost and availability.