forked from wasmCloud/wasmCloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwadm.yaml
52 lines (51 loc) · 1.79 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
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: custom-template-provider
annotations:
version: v0.0.1
description: 'An application with a provider and component built for extending wasmCloud with custom capabilities'
spec:
components:
- name: test-component
type: component
properties:
image: file://./component/build/custom_template_test_component.wasm
## To configure OTEL integration for this provider specifically, uncomment the lines below
# config:
# - name: otel
# properties:
# otel_exporter_otlp_endpoint: "http://all-in-one:4318"
# otel_exporter_otlp_traces_endpoint: "http://traces-backend/v1/traces"
# otel_exporter_otlp_metrics_endpoint: "http://metrics-backend/v1/metrics"
# otel_exporter_otlp_logs_endpoint: "http://logs-backend/v1/logs"
traits:
- type: spreadscaler
properties:
instances: 1
# Link the component to the provider on wasmcloud:example/system-info
- type: link
properties:
target:
name: custom-template
namespace: wasmcloud
package: example
interfaces: [system-info]
- name: custom-template
type: capability
properties:
image: file://./build/wasmcloud-provider-custom-template.par.gz
id: custom-template
config:
- name: provider-config
properties:
foo: bar
traits:
# Link the provider to the component on wasmcloud:example/process-data
- type: link
properties:
target:
name: test-component
namespace: wasmcloud
package: example
interfaces: [process-data]