improved deploy config
This commit is contained in:
parent
798b8ec39b
commit
7c86547e25
34
wadm.yaml
34
wadm.yaml
@ -3,22 +3,22 @@ kind: Application
|
|||||||
metadata:
|
metadata:
|
||||||
name: go-data-stream
|
name: go-data-stream
|
||||||
annotations:
|
annotations:
|
||||||
description: 'HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)'
|
description: 'Data stream processing using NATS topic in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)'
|
||||||
wasmcloud.dev/authors: wasmCloud team
|
wasmcloud.dev/authors: Lorenzo Venerandi
|
||||||
wasmcloud.dev/source-url: https://github.com/wasmCloud/wasmCloud/blob/main/examples/golang/components/http-hello-world/wadm.yaml
|
wasmcloud.dev/source-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/wadm.yaml
|
||||||
wasmcloud.dev/readme-md-url: https://github.com/wasmCloud/wasmCloud/blob/main/examples/golang/components/http-hello-world/README.md
|
wasmcloud.dev/readme-md-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/README.md
|
||||||
wasmcloud.dev/homepage: https://github.com/wasmCloud/wasmCloud/tree/main/examples/golang/components/http-hello-world
|
wasmcloud.dev/homepage: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git
|
||||||
wasmcloud.dev/categories: |
|
wasmcloud.dev/categories: |
|
||||||
http,outgoing-http,http-server,tinygo,golang,example
|
stream-processing,nats-client,tinygo,golang
|
||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
- name: echo
|
- name: client
|
||||||
type: component
|
type: component
|
||||||
properties:
|
properties:
|
||||||
# To use the locally compiled code in this folder, use the line below instead after running `wash build`:
|
# To use the locally compiled code in this folder, use the line below instead after running `wash build`:
|
||||||
# image: file://./build/echo_messaging_s.wasm
|
# image: file://./build/echo_messaging_s.wasm
|
||||||
image: gitea.rebus.ninja/lore/go-nats-client:1.0.1
|
image: gitea.rebus.ninja/lore/wasm-nats-stream-client:1.0.1
|
||||||
id: echo
|
id: stream
|
||||||
config:
|
config:
|
||||||
- name: nats-topic
|
- name: nats-topic
|
||||||
properties:
|
properties:
|
||||||
@ -29,8 +29,12 @@ spec:
|
|||||||
properties:
|
properties:
|
||||||
instances: 1
|
instances: 1
|
||||||
spread:
|
spread:
|
||||||
- name: edge
|
- name: cloud
|
||||||
weight: 100
|
weight: 100
|
||||||
|
requirements:
|
||||||
|
host-type: cloud
|
||||||
|
- name: edge
|
||||||
|
weight: 0
|
||||||
requirements:
|
requirements:
|
||||||
host-type: edge
|
host-type: edge
|
||||||
# Establish a unidirectional link to the messaging capability provider (powered by NATS),
|
# Establish a unidirectional link to the messaging capability provider (powered by NATS),
|
||||||
@ -65,19 +69,23 @@ spec:
|
|||||||
# so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/handler interface) .
|
# so that so the provider can deliver messages to the component (by invoking the wasmcloud:messaging/handler interface) .
|
||||||
- type: link
|
- type: link
|
||||||
properties:
|
properties:
|
||||||
target: echo
|
target: client
|
||||||
namespace: wasmcloud
|
namespace: wasmcloud
|
||||||
package: messaging
|
package: messaging
|
||||||
interfaces: [handler]
|
interfaces: [handler]
|
||||||
source_config:
|
source_config:
|
||||||
- name: simple-subscription
|
- name: simple-subscription
|
||||||
properties:
|
properties:
|
||||||
subscriptions: wasmcloud.echo
|
subscriptions: test.source
|
||||||
- type: spreadscaler
|
- type: spreadscaler
|
||||||
properties:
|
properties:
|
||||||
instances: 1
|
instances: 1
|
||||||
spread:
|
spread:
|
||||||
- name: edge
|
- name: cloud
|
||||||
weight: 100
|
weight: 100
|
||||||
|
requirements:
|
||||||
|
host-type: cloud
|
||||||
|
- name: edge
|
||||||
|
weight: 0
|
||||||
requirements:
|
requirements:
|
||||||
host-type: edge
|
host-type: edge
|
Loading…
Reference in New Issue
Block a user