All Products
Document Center

Container Service for Kubernetes:Deploy Knative

Last Updated:Mar 01, 2024

Knative is a Kubernetes-based serverless framework. The main objective of Knative is to develop a cloud-native and cross-platform orchestration standard for serverless applications. This topic describes how to deploy Knative in a Container Service for Kubernetes (ACK) cluster.


An ACK managed cluster is created.

  • Knative 1.4.0 and later support only clusters of Kubernetes 1.22 and later. ACK managed clusters, ACK dedicated clusters, and ACK Serverless clusters are supported.

  • If an ACK managed cluster or ACK dedicated cluster is used, the cluster must contain at least three worker nodes.

  • When you deploy Application Load Balancer (ALB) gateways and Microservices Engine (MSE) gateways, take note of the following items:


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

  2. On the Clusters page, click the name of the cluster that you want to manage and choose Applications > Knative in the left-side navigation pane.

  3. On the Components tab, click Deploy Knative, select the Knative gateway that you want to install, and then click Deploy.


    ALB Ingresses are fully managed and provide a more efficient method to manage ingress traffic based on ALB. ALB Ingresses support complex routing, automatic certificate discovery, and the HTTP, HTTPS, and QUIC protocols. If you use ALB Ingresses, you must select at least two vSwitches.


    For more information, see Regions and zones where ALB is available.


    MSE Ingresses are developed based on MSE cloud-native gateways and provide a more efficient method to manage ingress traffic. MSE Ingresses are compatible with NGINX Ingresses and more than 50 annotations defined in NGINX Ingresses. MSE Ingresses are suitable for more than 90% of scenarios supported by NGINX Ingresses. MSE Ingresses allow you to roll out multiple canary versions at the same time, and provide flexible service governance capabilities and comprehensive protection. MSE Ingresses can meet the requirements for traffic governance in scenarios in which a large number of cloud-native distributed applications are used.


    MSE Ingresses support only clusters of Kubernetes 1.24 and later.


    Alibaba Cloud Service Mesh (ASM) is a fully managed service mesh platform. ASM is compatible with the open source Istio service mesh. ASM simplifies service management. For example, you can use ASM to route and split inter-service traffic, secure inter-service communication based on authentication, and observe the behavior of services in meshes. This greatly reduces your development and O&M work.


    Kourier gateways are provided by the Knative community and provide basic routing capabilities. Kourier gateways are deployed in your clusters and must be manually maintained.


    To use Kouier gateways in ACK Serverless clusters, you must enable Alibaba Cloud DNS PrivateZone or CoreDNS.

    After the components are deployed, you can click Go to Components to view details about the components or click Go to Services to view details about the Knative Services.查看部署结果

    What to do next

    • Deploy components: On the Components tab, find a component whose Status column displays Not Deployed and click Deploy in the Actions column. In the message that appears, click Confirm.

    • Uninstall components: On the Components tab, find the component that you want to uninstall and click Uninstall in the Actions column. In the message that appears, click Confirm.

    • Uninstall Knative: On the Components tab, click Uninstall in the upper right corner. In the dialog box that appears, select I confirm that I have read the above information and want to uninstall Knative and click OK.