-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwadm.yaml
46 lines (44 loc) · 1.35 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
# This is a full example of how to run the echo actor exposed with an HTTP server. Using this
# example requires you to have WADM running: https://github.com/wasmCloud/wadm/.
#
# To run this example, use: `wash app deploy wadm.yaml`
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: hello
annotations:
version: v0.0.44
description: "wasmCloud Hello World Example"
spec:
components:
- name: hello
type: actor
properties:
image: file:///home/jt117/labs/wasmcloud_infra/hello-world/build/hello_world_s.wasm
traits:
- type: spreadscaler
properties:
replicas: 50
# spread:
# - name: host1
# requirements:
# host: "189"
# weight: 40
# - name: host2
# requirements:
# host: "190"
# weight: 20
# - name: host3
# requirements:
# host: "191"
# weight: 40
- type: linkdef
properties:
target: httpserver
values:
address: 0.0.0.0:8080
- name: httpserver
type: capability
properties:
image: file:///home/jt117/labs/wasmcloud_infra/capability-providers/httpserver-rs/build/httpserver.par.gz
contract: wasmcloud:httpserver