-
Notifications
You must be signed in to change notification settings - Fork 0
/
wadm.yaml
69 lines (66 loc) · 1.76 KB
/
wadm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: event-driven
annotations:
description: 'Event driven application'
spec:
components:
- name: ingest
type: component
properties:
image: file://./ingest/build/event_driven_ingest_s.wasm
traits:
- type: spreadscaler
properties:
instances: 10
- type: link
properties:
target: nats
namespace: wasmcloud
package: messaging
interfaces: [consumer]
- name: ingest-http
type: capability
properties:
image: ghcr.io/wasmcloud/http-server:0.22.0
traits:
- type: link
properties:
target: ingest
namespace: wasi
package: http
interfaces: [incoming-handler]
source_config:
- name: default-http
properties:
address: 0.0.0.0:8080
- name: validator
type: component
properties:
image: file://./validator/build/event_driven_validator_s.wasm
traits:
- type: spreadscaler
properties:
instances: 10
- type: link
properties:
target: nats
namespace: wasmcloud
package: messaging
interfaces: [consumer]
- name: nats
type: capability
properties:
image: ghcr.io/wasmcloud/messaging-nats:0.22.0
traits:
- type: link
properties:
target: validator
namespace: wasmcloud
package: messaging
interfaces: [handler]
source_config:
- name: ingest-validator
properties:
subscriptions: eventdriven.http