All Products
Search
Document Center

Container Service for Kubernetes:Deploy Knative Eventing

Last Updated:Sep 05, 2023

Knative Eventing allows you to use 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 Container Service for Kubernetes (ACK) Serverless cluster.

Prerequisites

Deploy Knative Eventing

  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. In the Core Component section of the Components tab, click Deploy in the Actions column of Eventing.

    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" # Change the value from false to true. 
        #...
      kind: ConfigMap
      metadata:
        name: eci-profile
        namespace: kube-system
  4. In the Deploy Eventing dialog box, click Confirm.

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