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
An ACK managed cluster or ACK Serverless cluster is created. For more information, see Create an ACK Serverless cluster or Create an ACK managed cluster.
Knative is deployed in the cluster. For more information, see Deploy Knative in an ACK cluster or Deploy Knative in an ACK Serverless cluster.
A kubectl client is connected to the cluster. For more information, see Obtain the kubeconfig file of a cluster and use kubectl to connect to the cluster.
Deploy Knative Eventing
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.
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.
Run the following command to modify the eci-profile file:
kubectl -n kube-system edit configmap eci-profile
Set
enablePrivateZone
totrue
. 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
In the Deploy Eventing dialog box, click Confirm.
After Knative Eventing is deployed, the component is in the Deployed state on the Components tab.