/
echo.yaml
38 lines (37 loc) · 914 Bytes
/
echo.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
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: echo
annotations:
version: v0.0.1
description: "This is my app"
spec:
components:
- name: echo
type: component
properties:
image: wasmcloud.azurecr.io/echo:0.3.7
traits:
- type: spreadscaler
properties:
instances: 1
- name: httpserver
type: capability
properties:
contract: wasmcloud:httpserver
image: wasmcloud.azurecr.io/httpserver:0.17.0
traits:
- type: spreadscaler
properties:
instances: 1
- type: link
properties:
target: echo
namespace: wasi
package: http
interfaces:
- incoming-handler
source_config:
- name: default-port
properties:
address: 0.0.0.0:8080