Install TriggerMesh Components on Kubernetes with YAML
This guide takes you through installing TriggerMesh on a Kubernetes cluster by using our provided YAML manifests. The manifests will install the required TriggerMesh custom resource definitions (CRDs) and controllers onto your cluster.
Pre-requisites
- A Kubernetes cluster version
v1.22+
- Knative Serving
v1.0.0+
Installing Knative Serving
TriggerMesh relies on Knative Serving to run some of its components as Knative Services. We plan to relax this dependency in the near future.
Please refer to the official Knative Serving installation instructions. Knative Eventing is not a prerequisite for TriggerMesh to run, but we do provide compatibility for Knative Eventing users.
Install the CRDs
All TriggerMesh APIs are implemented as Kubernetes CRDs, which we need to create before deploying the controller. The following kubectl apply
command will create all of the CRDs.
kubectl apply -f https://github.com/triggermesh/triggermesh-core/releases/latest/download/triggermesh-core-crds.yaml
kubectl apply -f https://github.com/triggermesh/triggermesh/releases/latest/download/triggermesh-crds.yaml
Install the controllers
By default, the controllers are deployed in the triggermesh
namespace. Deploy the controllers with the following kubectl apply
command:
kubectl apply -f https://github.com/triggermesh/triggermesh-core/releases/latest/download/triggermesh-core.yaml
kubectl apply -f https://github.com/triggermesh/triggermesh/releases/latest/download/triggermesh.yaml
Verifying the installation
Upon successful creation of the CRDs and successful deployment of the controller you should see three pods running in the triggermesh
namespace
$ kubectl get pods -n triggermesh
NAME READY STATUS RESTARTS AGE
triggermesh-controller-5cd97f4c8f-z6r2r 1/1 Running 0 57m
triggermesh-webhook-79cd8d6f5d-gf2lj 1/1 Running 0 57m
triggermesh-core-controller-64c588d74c-jpr42 1/1 Running 0 57m
All event sources and targets will be available to you as new API objects. For example, you can list all AWS related sources and targets with:
$ kubectl get crds |grep triggermesh |grep aws
awscloudwatchlogssources.sources.triggermesh.io 2021-10-06T09:01:27Z
awscloudwatchsources.sources.triggermesh.io 2021-10-06T09:01:27Z
awscodecommitsources.sources.triggermesh.io 2021-10-06T09:01:27Z
awscognitoidentitysources.sources.triggermesh.io 2021-10-06T09:01:27Z
awscognitouserpoolsources.sources.triggermesh.io 2021-10-06T09:01:27Z
awscomprehendtargets.targets.triggermesh.io 2021-10-06T09:01:28Z
awsdynamodbsources.sources.triggermesh.io 2021-10-06T09:01:28Z
awsdynamodbtargets.targets.triggermesh.io 2021-10-06T09:01:28Z
awseventbridgetargets.targets.triggermesh.io 2021-10-06T09:01:28Z
awskinesissources.sources.triggermesh.io 2021-10-06T09:01:28Z
awskinesistargets.targets.triggermesh.io 2021-10-06T09:01:29Z
awslambdatargets.targets.triggermesh.io 2021-10-06T09:01:29Z
awsperformanceinsightssources.sources.triggermesh.io 2021-10-06T09:01:29Z
awss3sources.sources.triggermesh.io 2021-10-06T09:01:29Z
awss3targets.targets.triggermesh.io 2021-10-06T09:01:29Z
awssnssources.sources.triggermesh.io 2021-10-06T09:01:30Z
awssnstargets.targets.triggermesh.io 2021-10-06T09:01:30Z
awssqssources.sources.triggermesh.io 2021-10-06T09:01:30Z
awssqstargets.targets.triggermesh.io 2021-10-06T09:01:30Z