Knative Eventing provides an event model for routing events from external systems such as ApsaraMQ for RocketMQ, ApsaraMQ for Kafka, and Container Registry to your Knative services or functions. Deploy the component in the ACK console to enable event-driven capabilities.
Prerequisites
Ensure that:
-
Knative is deployed in your cluster.
Deploy Knative Eventing
-
Log on to the ACK console. In the left navigation pane, click Clusters.
-
On the Clusters page, click your cluster name. In the left navigation pane, choose Applications > Knative.
-
On the Components tab, find Eventing under Core Component and click Deploy.
-
In the Deploy Eventing dialog box, click Confirm.
After deployment, Eventing shows Deployed status on the Components tab.
Troubleshooting
PrivateZone is not enabled for the cluster
If the Deploy Eventing dialog box shows the error "PrivateZone is not enabled for the cluster. For more information, see Enable PrivateZone when you deploy Knative Eventing," enable Alibaba Cloud DNS PrivateZone:
-
Open the
eci-profileConfigMap for editing:kubectl -n kube-system edit configmap eci-profile -
Set
enablePrivateZoneto"true", then save and close the file:apiVersion: v1 data: #... enablePrivateZone: "true" # Change the value from false to true. #... kind: ConfigMap metadata: name: eci-profile namespace: kube-system -
Return to step 3 and click Deploy again.