-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwadm.yaml
64 lines (64 loc) · 1.73 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
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: dev-48mklb-http-hello-world
annotations:
version: 01JCN98EH2ZARVFAWFSNVW2WNM
labels:
wasmcloud.dev/generated-by: wash-dev
spec:
policies:
- name: nats-kv
type: policy.secret.wasmcloud.dev/v1alpha1
properties:
backend: nats-kv
components:
- name: 48mklb-http-hello-world
type: component
properties:
image: file:///Users/brooks/demo/multitier-security/build/http_hello_world_s.wasm
id: 48mklb-http-hello-world
secrets:
- name: client_id
properties:
policy: nats-kv
key: client_id
- name: client_secret
properties:
policy: nats-kv
key: client_secret
traits:
- type: spreadscaler
properties:
instances: 100
- type: link
properties:
namespace: wasi
package: http
interfaces:
- outgoing-handler
target:
name: 48mklb-dep-http-client
- name: 48mklb-dep-http-server
type: capability
properties:
image: ghcr.io/wasmcloud/http-server:0.24.0
traits:
- type: link
properties:
namespace: wasi
package: http
interfaces:
- incoming-handler
source:
config:
- name: wasi-http-config
properties:
address: 127.0.0.1:8000
target:
name: 48mklb-http-hello-world
- name: 48mklb-dep-http-client
type: capability
properties:
image: ghcr.io/wasmcloud/http-client:0.12.1
traits: []