A Knative event source can be any Kubernetes object that generates or imports cloud events, and relays those events to another endpoint, known as a sink. Sourcing events is critical to developing a distributed system that reacts to events.
You can create and manage Knative event sources by using the Developer perspective in the OpenShift Container Platform web console, the
kn CLI, or by applying YAML files.
Currently, OpenShift Serverless supports the following event source types:
Brings Kubernetes API server events into Knative. The API server source fires a new event each time a Kubernetes resource is created, updated or deleted.
Produces events with a fixed payload on a specified cron schedule.
Connects core Kubernetes resource objects, such as
StatefulSet objects, with a sink.
Starts a container image that generates cloud events and sends them to a sink. Container sources can also be used to support your own custom event sources in Knative.
Connects a Kafka cluster to a sink as an event source.