-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wadm): update manifests to use .yaml and build assets
- Loading branch information
Showing
10 changed files
with
171 additions
and
17 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# This is a full example of how to run the kvcounter actor exposed with the | ||
# managed providers for the HTTP and KeyValue capabilities. | ||
|
||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: kvcounter | ||
annotations: | ||
version: v1.0.0 | ||
description: "wasmCloud Key Value Counter Example" | ||
spec: | ||
components: | ||
- name: kvcounter | ||
type: actor | ||
properties: | ||
image: cosmonic.azurecr.io/kvcounter:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
- type: linkdef | ||
properties: | ||
target: keyvalue | ||
- type: linkdef | ||
properties: | ||
target: httpserver | ||
values: | ||
ADDRESS: 0.0.0.0:8081 | ||
- name: httpserver | ||
type: capability | ||
properties: | ||
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4 | ||
contract: wasmcloud:httpserver | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
spread: | ||
- name: wormholespread | ||
requirements: | ||
cosmonic_managed: 'true' | ||
- 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: kvspread | ||
requirements: | ||
cosmonic_managed: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# WIP | ||
# This is a full example of how to run the kvcounter actor exposed with an HTTP server. Using this | ||
# example requires you to have a Redis server running locally (though the linkdef can be modified to | ||
# use a Redis server you have running elsewhere) and WADM running: | ||
# | ||
# https://github.com/wasmCloud/wadm/tree/main/wadm. You can deploy this example with a simple command: | ||
# | ||
# `wash app deploy wadm.yaml` | ||
|
||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: multi-channel-chat | ||
annotations: | ||
version: v1.0.0 | ||
description: "Multi-Channel Chat" | ||
spec: | ||
components: | ||
- name: apigateway | ||
type: actor | ||
properties: | ||
image: cosmonic.azurecr.io/mcc_apigateway:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
|
||
- name: chatlog | ||
type: actor | ||
properties: | ||
image: cosmonic.azurecr.io/mcc_chatlog:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
- type: linkdef | ||
properties: | ||
target: keyvalue | ||
|
||
- name: httpchannel | ||
type: actor | ||
properties: | ||
image: cosmonic.azurecr.io/mcc_httpchannel:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
- type: linkdef | ||
properties: | ||
target: httpserver | ||
|
||
- name: natschannel | ||
type: actor | ||
properties: | ||
image: cosmonic.azurecr.io/mcc_natschannel:0.1.0 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 3 | ||
- type: linkdef | ||
properties: | ||
target: messaging | ||
|
||
- name: httpserver | ||
type: capability | ||
properties: | ||
contract: wasmcloud:httpserver | ||
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
spread: | ||
- name: wormholespread | ||
requirements: | ||
cosmonic_managed: 'true' | ||
|
||
- name: keyvalue | ||
type: capability | ||
properties: | ||
contract: wasmcloud:keyvalue | ||
image: cosmonic.azurecr.io/builtin_keyvalue:0.2.4 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 | ||
spread: | ||
- name: kvspread | ||
requirements: | ||
cosmonic_managed: 'true' | ||
|
||
- name: messaging | ||
type: capability | ||
properties: | ||
contract: wasmcloud:messaging | ||
image: wasmcloud.azurecr.io/nats_messaging:0.17.2 | ||
traits: | ||
- type: spreadscaler | ||
properties: | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters