Setting Up Tekton Triggers
Follow the steps below to set up an official release of Tekton Triggers on your Kubernetes cluster.
If you want to test Triggers from
HEAD, see the
Tekton Developer Guide.
You must satisfy the following prerequisties to set up Tekton Triggers:
- You must have a Kubernetes Cluster running Kubernetes 1.18 or above.
You can use
kind to quickly create a local cluster with RBAC enabled for testing purposes:
kindas described in Installation.
Create a cluster as described in Creating a Cluster.
You must have Tekton Pipelines installed on your Kubernetes cluster.
For instructions, see Installing Tekton Pipelines.
- You must grant the
cluster-adminprivilege to the user with which you installed Tekton Pipelines.
For instructions, see Role-based access control.
Installing Tekton Triggers on Your Cluster
Log on to your Kubernetes cluster as the user with which you installed Tekton Pipelines.
kubectl applycommand to install the latest release of Tekton Triggers and its dependencies:
kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml
To install a specific release of Tekton Triggers, replace
latestwith the desired version number as shown in the following example:
kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/previous/v0.1.0/release.yaml
To install a nightly release, use the following command:
kubectl apply --filename https://storage.googleapis.com/tekton-releases-nightly/triggers/latest/release.yaml
Monitor the installation using the
kubectl get pods --namespace tekton-pipelines --watch
When all Tekton Triggers components report a status of
Runningpress CTRL+C to stop monitoring.
You are now ready to configure Tekton Triggers for your workflow. For instructions, see the following:
Customizing the Triggers Controller behavior
To customize the behavior of the Triggers Controller, modify the ConfigMap
feature-flags-triggers as follows:
enable-api-fields: set this flag to “stable” to allow only the most stable features to be used. Set it to “alpha” to allow alpha features (in addition to stable features) to be used. Note that this flag only applies to the v1beta1 apiVersion.
enable-api-fields: "alpha" # Allow "alpha" fields to be used in v1beta1 Triggers' resources. Defaults to "stable" features only.
Was this page helpful?
Thanks! Tell us how we can further improve.
Sorry about that. Tell us how we can further improve.