You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/eventing/sources/kafka-source/README.md
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,41 @@ can add to the `config-kafka-features` configmap, [read about the experimental K
266
266
}
267
267
```
268
268
269
+
## Handling Delivery Failures
270
+
271
+
The `KafkaSource` implements the `Delivery` Specificiation, allowing you to configure event delivery parameters forit, which are appliedin cases where an event fails to be delivered:
272
+
273
+
```yaml
274
+
275
+
apiVersion: sources.knative.dev/v1beta1
276
+
kind: KafkaSource
277
+
metadata:
278
+
name: kafka-source
279
+
spec:
280
+
consumerGroup: knative-group
281
+
bootstrapServers:
282
+
- my-cluster-kafka-bootstrap.kafka:9092 # note the kafka namespace
283
+
topics:
284
+
- knative-demo-topic
285
+
delivery:
286
+
deadLetterSink:
287
+
ref:
288
+
apiVersion: serving.knative.dev/v1
289
+
kind: Service
290
+
name: example-sink
291
+
backoffDelay: <duration>
292
+
backoffPolicy: <policy-type>
293
+
retry: <integer>
294
+
sink:
295
+
ref:
296
+
apiVersion: serving.knative.dev/v1
297
+
kind: Service
298
+
name: event-display
299
+
300
+
```
301
+
302
+
The `delivery` API is discussed in the [Handling Delivery Failure](../../event-delivery) chapter.
303
+
269
304
## Optional: Specify the key deserializer
270
305
271
306
When `KafkaSource` receives a message from Kafka, it dumps the key in the Event extension called
0 commit comments