Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit b6566a8

Browse files
author
odacremolbap
committed
a bit of reordering
1 parent a5a2893 commit b6566a8

File tree

2 files changed

+194
-152
lines changed

2 files changed

+194
-152
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
apiVersion: eventing.knative.dev/v1
2+
kind: Broker
3+
metadata:
4+
name: demo
5+
spec:
6+
delivery:
7+
deadLetterSink:
8+
ref:
9+
apiVersion: serving.knative.dev/v1
10+
kind: Service
11+
name: event-failure-capture
12+
backoffDelay: "PT0.5S" # or ISO8601 duration
13+
backoffPolicy: exponential # or linear
14+
retry: 2
15+
16+
---
17+
18+
apiVersion: sources.knative.dev/v1
19+
kind: PingSource
20+
metadata:
21+
name: say-hi
22+
spec:
23+
data: '{"hello": "triggermesh"}'
24+
schedule: "*/1 * * * *"
25+
sink:
26+
ref:
27+
apiVersion: eventing.knative.dev/v1
28+
kind: Broker
29+
name: demo
30+
31+
---
32+
33+
apiVersion: serving.knative.dev/v1
34+
kind: Service
35+
metadata:
36+
name: event-success-capture
37+
spec:
38+
template:
39+
metadata:
40+
annotations:
41+
autoscaling.knative.dev/min-scale: "1"
42+
spec:
43+
containers:
44+
- image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display
45+
46+
---
47+
48+
apiVersion: eventing.knative.dev/v1
49+
kind: Trigger
50+
metadata:
51+
name: demo-to-display
52+
spec:
53+
broker: demo
54+
subscriber:
55+
ref:
56+
apiVersion: serving.knative.dev/v1
57+
kind: Service
58+
name: event-success-capture
59+
60+
---
61+
62+
apiVersion: serving.knative.dev/v1
63+
kind: Service
64+
metadata:
65+
name: event-failure-capture
66+
spec:
67+
template:
68+
metadata:
69+
annotations:
70+
autoscaling.knative.dev/min-scale: "1"
71+
spec:
72+
containers:
73+
- image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display

0 commit comments

Comments
 (0)