Skip to content

Commit b63e040

Browse files
committed
RHDEVDOCS-4299: Added a procedure to create an event sink
1 parent 9edc85f commit b63e040

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

images/create-event-sink.png

119 KB
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * serverless/develop/serverless-event-sinks.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="serverless-creating-a-kafka-event-sink_{context}"]
7+
8+
= Creating a Kafka event sink
9+
10+
As a developer, you can create an event sink to receive events from a particular source and send them to a Kafka topic.
11+
12+
.Prerequisites
13+
* You have installed the Red Hat OpenShift Serverless operator, with Knative Serving, Knative Eventing, and Knative Kafka APIs, from the Operator Hub.
14+
15+
* You have created a Kafka topic in your Kafka environment.
16+
17+
.Procedure
18+
. In the *Developer* perspective, navigate to the *+Add* view.
19+
. Click *Event Sink* in the *Eventing catalog*.
20+
. Search for `KafkaSink` in the catalog items and click it.
21+
. Click *Create Event Sink*.
22+
. In the form view, type the URL of the bootstrap server, which is a combination of host name and port.
23+
+
24+
image::create-event-sink.png[]
25+
26+
. Type the name of the topic to send event data.
27+
. Type the name of the event sink.
28+
. Click *Create*.
29+
30+
.Verification
31+
. In the *Developer* perspective, navigate to the *Topology* view.
32+
. Click the created event sink to view its details in the right panel.

serverless/develop/serverless-event-sinks.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Addressable objects receive and acknowledge an event delivered over HTTP to an a
1212

1313
Callable objects are able to receive an event delivered over HTTP and transform the event, returning `0` or `1` new events in the HTTP response. These returned events may be further processed in the same way that events from an external event source are processed.
1414

15+
//Creating a Kafka event sink
16+
include::modules/serverless-creating-a-kafka-event-sink.adoc[leveloffset=+1]
17+
1518
// Using --sink flag with kn (generic)
1619
include::modules/specifying-sink-flag-kn.adoc[leveloffset=+1]
1720

0 commit comments

Comments
 (0)