|
1 | 1 | include::modules/serverless-document-attributes.adoc[] |
2 | 2 | [id="knative-event-sources"] |
3 | | -= Getting started with event sources |
| 3 | += Understanding event sources |
4 | 4 | include::modules/common-attributes.adoc[] |
5 | 5 | :context: knative-event-sources |
6 | 6 |
|
7 | 7 | toc::[] |
8 | 8 |
|
9 | | -An _event source_ is an object that links an event producer with an event _sink_, or consumer. A sink can be a Knative service, channel, or broker that receives events from an event source. |
| 9 | +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 xref:../../serverless/knative_eventing/serverless-event-sinks.adoc#serverless-event-sinks[_sink_]. Sourcing events is critical to developing a distributed system that reacts to events. |
| 10 | + |
| 11 | +You can create and manage Knative event sources by using the *Developer* perspective in the {product-title} web console, the `kn` CLI, or by applying YAML files. |
10 | 12 |
|
11 | 13 | Currently, {ServerlessProductName} supports the following event source types: |
12 | 14 |
|
13 | | -API server source:: Connects a sink to the Kubernetes API server. |
14 | | -Ping source:: Periodically sends ping events with a constant payload. It can be used as a timer. |
15 | | -Sink binding:: Connects core Kubernetes resource objects, such as `Deployment`, `Job`, or `StatefulSet` objects, with a sink. |
16 | | -Container source:: Creates a custom event source by using an image. |
17 | | -Knative Kafka source:: Connects a Kafka cluster to a sink as an event source. |
| 15 | +xref:../../serverless/event_sources/serverless-apiserversource.adoc#serverless-apiserversource[API server source]:: 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. |
| 16 | + |
| 17 | +xref:../../serverless/event_sources/serverless-pingsource.adoc#serverless-pingsource[Ping source]:: Produces events with a fixed payload on a specified cron schedule. |
| 18 | + |
| 19 | +xref:../../serverless/event_sources/serverless-sinkbinding.adoc#serverless-sinkbinding[Sink binding]:: Connects core Kubernetes resource objects, such as `Deployment`, `Job`, or `StatefulSet` objects, with a sink. |
18 | 20 |
|
19 | | -You can create and manage Knative event sources using the *Developer* perspective in the {product-title} web console, the `kn` CLI, or by applying YAML files. |
| 21 | +xref:../../serverless/event_sources/serverless-containersource.adoc#serverless-containersource[Container source]:: 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. |
20 | 22 |
|
21 | | -* Create an xref:../../serverless/event_sources/serverless-apiserversource.adoc#serverless-apiserversource[API server source]. |
22 | | -* Create an xref:../../serverless/event_sources/serverless-pingsource.adoc#serverless-pingsource[ping source]. |
23 | | -* Create a xref:../../serverless/event_sources/serverless-sinkbinding.adoc#serverless-sinkbinding[sink binding]. |
24 | | -* Create a xref:../../serverless/event_sources/serverless-containersource.adoc#serverless-containersource[container source]. |
25 | | -* Create a xref:../../serverless/event_sources/serverless-kafka-source.adoc#serverless-kafka-source[Kafka source]. |
| 23 | +xref:../../serverless/event_sources/serverless-kafka-source.adoc#serverless-kafka-source[Kafka source]:: Connects a Kafka cluster to a sink as an event source. |
0 commit comments