Chapter 10. Getting Started with Triggers


Installing Tekton Triggers

// install the trigger custom resource definitions (CRDs)
$ kubectl apply -f

// An interceptor is an object that contains the logic necessary to validate and filter webhooks coming from various sources.
$ kubectl apply -f

$ tkn version
Client version: 0.21.0
Pipeline version: v0.28.1
Triggers version: v0.16.0

$ kubectl apply -f

Now that Triggers is installed, you will be able to listen for events from GitHub, but for the webhooks to reach your cluster, you will need to expose a route to the outside world.


Using a local cluster

Нужно зарегаться

$ cd ~/tmp
$ wget
$ unzip
$ ./ngrok authtoken <YOUR_TOKEN>


$ python -m http.server 8000