-
Notifications
You must be signed in to change notification settings - Fork 3
/
wadm.yaml
58 lines (56 loc) · 1.55 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
# You can deploy this example with a simple command:
# `cosmo app deploy wadm.yaml`
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: hello-cosmo
annotations:
version: v0.1.0
description: "Workshop Application built with Cosmonic at WasmCon 2023."
spec:
components:
# Actor
- name: hello-cosmo
type: actor
properties:
# This is the image that will be used to run the actor
image: registry.cosmonic.sh/<<constellation_id>>/<<actor_name>>:<<version>>
traits:
- type: spreadscaler
properties:
replicas: 1
- type: linkdef
properties:
target: keyvalue
- type: linkdef
properties:
target: httpserver
# Capability Providers
## HTTP Server
- name: httpserver
type: capability
properties:
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.0
contract: wasmcloud:httpserver
traits:
- type: spreadscaler
properties:
replicas: 1
spread:
- name: httpserverspread
requirements:
cosmonic_managed: "true"
## KeyValue Bucket
- name: keyvalue
type: capability
properties:
image: cosmonic.azurecr.io/builtin_keyvalue:0.2.4
contract: wasmcloud:keyvalue
traits:
- type: spreadscaler
properties:
replicas: 1
spread:
- name: keyvaluespread
requirements:
cosmonic_managed: "true"