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
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,39 @@ 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
+
apiVersion: sources.knative.dev/v1beta1
275
+
kind: KafkaSource
276
+
metadata:
277
+
name: kafka-source
278
+
spec:
279
+
consumerGroup: knative-group
280
+
bootstrapServers:
281
+
- my-cluster-kafka-bootstrap.kafka:9092 # note the kafka namespace
282
+
topics:
283
+
- knative-demo-topic
284
+
delivery:
285
+
deadLetterSink:
286
+
ref:
287
+
apiVersion: serving.knative.dev/v1
288
+
kind: Service
289
+
name: example-sink
290
+
backoffDelay: <duration>
291
+
backoffPolicy: <policy-type>
292
+
retry: <integer>
293
+
sink:
294
+
ref:
295
+
apiVersion: serving.knative.dev/v1
296
+
kind: Service
297
+
name: event-display
298
+
```
299
+
300
+
The `delivery` API is discussed in the [Handling Delivery Failure](../../event-delivery) chapter.
301
+
269
302
## Optional: Specify the key deserializer
270
303
271
304
When `KafkaSource` receives a message from Kafka, it dumps the key in the Event extension called
0 commit comments