ASK Knative provides the Knative Eventing component to build an event-driven framework for serverless applications. Knative Eventing has designed an all-in-one eventing system for event-driven serverless applications. Knative Eventing provides event management capabilities, such as producing and consuming events. This topic describes how to deploy Knative Eventing in a serverless Kubernetes (ASK) cluster.

Prerequisites

Procedure

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane of the details page, choose Applications > Knative.
  5. In the Core Component section of the Components tab, find Eventing and click Deploy in the Actions column.

    After you click Deploy, if the PrivateZone is not enabled for the cluster. For more information, see Enable PrivateZone when you deploy Knative Eventing error appears in the Deploy Eventing dialog box, you must perform the following steps to enable Alibaba Cloud DNS PrivateZone.

    1. Run the following command to modify the eci-profile file:
      kubectl -n kube-system edit configmap eci-profile
    2. Set enablePrivateZone to true. Save and close the eci-profile file.
      apiVersion: v1
      data:
        #...
        enablePrivateZone: "true"
        #...
      kind: ConfigMap
      metadata:
        name: eci-profile
        namespace: kube-system
  6. In the Deploy Eventing dialog box, click Confirm.

Verify the AHPA policy

After Knative Eventing is deployed, the component is in the Deployed state on the Components tab. eventing