All Products
Search
Document Center

Container Service for Kubernetes:Deploy Knative

最終更新日:Nov 06, 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 install and uninstall Knative in an ACK Serverless cluster.

Prerequisites

An ACK Serverless cluster that runs Kubernetes 1.28 or later has been created. If you need to upgrade the cluster, see Manually upgrade an ACK cluster.

Procedure

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

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

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

    For more information about gateway or Ingress recommendations for Knative, see Recommendations for selecting an Ingress for Knative.

    ALB

    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.

    Note

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

    MSE

    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.

    Important

    MSE Ingresses support only clusters of Kubernetes 1.24 and later.

    ASM

    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

    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.

    Note

    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.