All Products
Search
Document Center

Container Service for Kubernetes:Manage Knative

Last Updated:Aug 29, 2023

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.

Install Knative

In a new cluster

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

  2. In the upper-right corner of the Clusters page, click Create Kubernetes Cluster.

  3. Click the ACK Serverless tab, configure parameters, and click Create Cluster. In the message that appears, click OK.

    The following table describes the key parameters. For more information about other parameters, see Create an ACK Serverless cluster.

    Parameter

    Description

    Kubernetes Version

    Select 1.15 or later.

    NAT Gateway

    Specify whether to automatically create a NAT gateway and configure SNAT rules on the NAT gateway. This parameter is required only if you set VPC to Create VPC.

    • If you set VPC to Create VPC, you can select whether to automatically create a NAT gateway and configure SNAT rules for the VPC.

    • If you clear this check box, you must manually create a NAT gateway and configure SNAT rules on the NAT gateway. Otherwise, clusters that are deployed in the VPC cannot access the Internet.

    Public Access

    Enable or disable Expose API Server with EIP.

    • If you select this check box, an elastic IP address (EIP) is created and port 6443 on master nodes is exposed. This port is used by the API server. You can connect to and manage the cluster by using the kubeconfig file over the Internet.

    • If you clear this check box, no EIP is created. You can connect to and manage the cluster by using the kubeconfig file only within the VPC.

    Knative

    Select Enable Knative to deploy Knative in the ACK Serverless cluster.2

In an existing cluster

  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 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.

    Note

    For 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.

    Important

    MSE 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.

    Note

    To use Kourier gateways in ASK 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

Uninstall Knative

On the Knative page, click Uninstall in the upper-right corner of the Components tab. In the message that appears, click OK.