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 install and uninstall Knative in an ACK Serverless cluster.
Prerequisites
An ACK Serverless cluster is created.
Knative 1.4.0 and later support only clusters of Kubernetes 1.22 and later. The following types of clusters are supported: ACK basic cluster, ACK dedicated cluster, ACK Pro cluster, serverless Kubernetes (ACK Serverless) basic cluster, and ACK Serverless Pro cluster.
If an ACK basic cluster or ACK dedicated cluster is used, the cluster must contain at least three worker nodes.
Install Knative
Log on to the ACK console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of the cluster that you want to manage and choose in the left-side navigation pane.
On the Knative page, click Deploy Knative on the Components tab, select the Knative components that you want to install and the gateway that you want to use, and then click Deploy.
ALB
Application Load Balancer (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.
NoteFor more information about the regions and zones that support ALB, see Supported regions and zones.
MSE
Microservices Engine (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.
ImportantMSE Ingresses support only clusters of Kubernetes 1.24 and later.
Kourier
Kourier gateways are provided by the Knative community and provide basic routing capabilities. Kourier gateways are deployed in your clusters and need to be manually maintained.
NoteTo use Kourier gateways in ACK Serverless clusters, you must first 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 the details of 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 dialog box that appears select I confirm that I have read the above information and want to uninstall Knative and click OK.