These are the steps to set Knative and its dependencies.
Edit config file for your setup.
./create-gke-cluster./install-serving./install-eventingYou probably need a Broker in the default namespace with Knative Eventing. You can follow instructions in Broker Creation page to do that.
If you intend to read Google Cloud events, install Knative GCP components.
There are 2 ways of setting up authentication in Knative GCP:
- Kubernetes secrets
- Workload identity (recommended)
Pick one of the mechanisms and use appropriate scripts.
Install Knative GCP:
# Kubernetes secrets
./install-knative-gcp
# Workload identity
./install-knative-gcp workloadConfigure a Pub/Sub enabled Service Account for Data Plane:
# Kubernetes secrets
./install-dataplane-serviceaccount
# Workload identity
./install-dataplane-serviceaccount workloadInstall Tekton Pipelines, if you want to run build samples:
./install-tektonThanks to Mark Chmarny for the initial scripts and James Ward for HTTPS configuration instructions.