Event sources

An event source is a Kubernetes custom resource (CR), created by a developer or cluster administrator, that acts as a link between an event producer and an event sink. A sink can be a k8s service, including Knative Services, a Channel, or a Broker that receives events from an event source.

Event sources are created by instantiating a CR from a Source object. The Source object defines the arguments and parameters needed to instantiate a CR.

All Sources are part of the sources category.

knkubectl

You can list existing event sources on your cluster by entering the kn command:

  1. kn source list

You can list existing event sources on your cluster by entering the command:

  1. kubectl get sources

Note

Event Sources that import events from other messaging technologies such as Kafka or RabbitMQ are not responsible for setting Optional Attributes such as the datacontenttype. This is a responsibility of the original event producer; the Source just appends attributes if they exist.

Knative Sources

NameStatusMaintainerDescription
APIServerSourceStableKnativeBrings Kubernetes API server events into Knative. The APIServerSource fires a new event each time a Kubernetes resource is created, updated or deleted.
Apache CouchDBAlphaKnativeBrings Apache CouchDB messages into Knative.
Apache KafkaStableKnativeBrings Apache Kafka messages into Knative. The KafkaSource reads events from an Apache Kafka Cluster, and passes these events to a sink so that they can be consumed. See the Kafka Source example for more details.
ContainerSourceStableKnativeThe ContainerSource instantiates container image(s) that can generate events until the ContainerSource is deleted. This may be used, for example, to poll an FTP server for new files or generate events at a set time interval. Given a spec.template with at least a container image specified, the ContainerSource keeps a Pod running with the specified image(s). K_SINK (destination address) and KE_CE_OVERRIDES (JSON CloudEvents attributes) environment variables are injected into the running image(s). It is used by multiple other Sources as underlying infrastructure. Refer to the Container Source example for more details.
GitHubBetaKnativeRegisters for events of the specified types on the specified GitHub organization or repository, and brings those events into Knative. The GitHubSource fires a new event for selected GitHub event types. See the GitHub Source example for more details.
GitLabBetaKnativeRegisters for events of the specified types on the specified GitLab repository, and brings those events into Knative. The GitLabSource creates a webhooks for specified event types, listens for incoming events, and passes them to a consumer. See the GitLab Source example for more details.
KogitoSourceAlphaKnativeAn implementation of the Kogito Runtime custom resource managed by the Kogito Operator.
PingSourceStableKnativeProduces events with a fixed payload on a specified Cron schedule. See the Ping Source example for more details.
RabbitMQStableKnativeBrings RabbitMQ messages into Knative.
RedisSourceAlphaKnativeBrings Redis Stream into Knative.
SinkBindingStableKnativeThe SinkBinding can be used to author new event sources using any of the familiar compute abstractions that Kubernetes makes available (e.g. Deployment, Job, DaemonSet, StatefulSet), or Knative abstractions (e.g. Service, Configuration). SinkBinding provides a framework for injecting K_SINK (destination address) and K_CE_OVERRIDES (JSON cloudevents attributes) environment variables into any Kubernetes resource which has a spec.template that looks like a Pod (aka PodSpecable). See the SinkBinding example for more details.

Third-Party Sources

NameStatusMaintainerDescription
Amazon CloudWatchStableTriggerMeshCollects metrics from Amazon CloudWatch. (installation) (example)
Amazon CloudWatch LogsStableTriggerMeshSubscribes to log events from an Amazon CloudWatch Logs stream. (installation) (example)
AWS CodeCommitStableTriggerMeshRegisters for events emitted by an AWS CodeCommit source code repository. (installation) (example)
Amazon Cognito IdentityStableTriggerMeshRegisters for events from Amazon Cognito identity pools. (installation) (example)
Amazon Cognito UserStableTriggerMeshRegisters for events from Amazon Cognito user pools. (installation) (example)
Amazon DynamoDBStableTriggerMeshReads records from an Amazon DynamoDB stream. (installation) (example)
Amazon KinesisStableTriggerMeshReads records from an Amazon Kinesis stream. (installation) (example)
Amazon RDS Performance InsightsStableTriggerMeshSubscribes to metrics from Amazon RDS Performance Insights. (installation) (example)
Amazon S3StableTriggerMeshSubscribes to event notifications from an Amazon S3 bucket. (installation) (example)
Amazon SNSStableTriggerMeshSubscribes to messages from an Amazon SNS topic. (installation) (example)
Amazon SQSStableTriggerMeshConsumes messages from an Amazon SQS queue. (installation) (example)
Apache CamelStableApache Software FoundationEnables use of Apache Camel components for pushing events into Knative. Camel sources are now provided via Kamelets as part of the Apache Camel K project.
Azure Activity LogsStableTriggerMeshCapture activity logs from Azure Activity Logs. (installation) (example)
Azure Blob StorageStableTriggerMeshSubscribes to events from an Azure Blob Storage account. (installation) (example)
Azure Event GridStableTriggerMeshRetrieves events from Azure Event Grid. (installation) (example)
Azure Event HubsStableTriggerMeshConsumes events from Azure Event Hubs. (installation) (example)
Azure IoT HubStableTriggerMeshConsumes event from Azure IoT Hub. (installation) (example)
Azure Queue StorageStableTriggerMeshRetrieves messages from Azure Queue Storage. (installation) (example)
Azure Service Bus QueuesStableTriggerMeshConsumes messages from an Azure Service Bus queue. (installation) (example)
Azure Service Bus TopicsStableTriggerMeshSubscribes to messages from an Azure Service Bus topic. (installation) (example)
DirektivAlphaDirektivReceive events from Direktiv.
DockerHubSourceAlphaNoneRetrieves events from Docker Hub Webhooks and transforms them into CloudEvents for consumption in Knative.
Google Cloud Audit LogsStableTriggerMeshCaptures audit logs from Google Cloud Audit Logs. (installation) (example)
Google Cloud BillingStableTriggerMeshCaptures budget notifications from Google Cloud Billing. (installation) (example)
Google Cloud IoTStableTriggerMeshSubscribes to messages from a Google Cloud IoT registry. (installation) (example)
Google Cloud Pub/SubStableTriggerMeshSubscribes to messages from a Google Cloud Pub/Sub topic. (installation) (example)
Google Cloud Source RepositoriesStableTriggerMeshConsumes events from Google Cloud Source Repositories. (installation) (example)
Google Cloud StorageStableTriggerMeshCaptures change notifications from a Google Cloud Storage bucket. (installation) (example)
HTTP PollerStableTriggerMeshPeriodically pulls events from an HTTP/S URL. (installation) (example)
Oracle Cloud InfrastructureStableTriggerMeshRetrieves metrics from Oracle Cloud Infrastructure. (installation) (example)
SalesforceStableTriggerMeshConsumes events from a Salesforce channel. (installation) (example)
SlackStableTriggerMeshSubscribes to events from Slack. (installation) (example)
TwilioSupportedTriggerMeshReceive events from Twilio. (installation) (example)
VMwareAlphaVMwareBrings vSphere events into Knative.
WebhookStableTriggerMeshIngest events from a webhook using HTTP. (installation) (example)
ZendeskStableTriggerMeshSubscribes to events from Zendesk. (installation) (example)

Additional resources