Having experimented with Knative Serving in the last part of the series, let’s see Knative Eventing in action.
This tutorial will show you how to consume messages sent to a Google Cloud Pub/Sub topic within a Kubernetes Pod.
Setting up the Environment
If you have provisioned a GKE cluster with Istio, you can skip this step. Otherwise, go ahead and run the below commands to launch the cluster.
$ export CLUSTER_NAME=mi2-knative $ export CLUSTER_ZONE=asia-south1-a
Change the cluster name and GCP zone to your choice.
Read the entire article at The New Stack