Closed liamwh closed 3 months ago
kubectl get application/tinygo-http-hello-world -o yaml
produces:
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
annotations:
description: HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component
Model and WebAssembly Interfaces Types (WIT)
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"core.oam.dev/v1beta1","kind":"Application","metadata":{"annotations":{"description":"HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)"},"name":"tinygo-http-hello-world","namespace":"wasmcloud"},"spec":{"components":[{"n
ame":"http-hello-world-go","properties":{"config":[{"name":"timezone","properties":{"TZ":"Europe/Amsterdam"}}],"image":"redacted:0.0.2"},"traits":[{"properties":{"replicas":1},"type":"spreadscaler"}],"type":"component"},{"name":"httpserve
r","properties":{"image":"redacted"},"traits":[{"properties":{"interfaces":["incoming-handler"],"namespace":"wasi","package":"http","source_config":[{"name":"default-http","properties":{"address":"0.0.0.0:8062"}}],"target":"http-hello-worl
d-go"},"type":"link"}],"type":"capability"}]}}
version: 01J178TEAC99KNCD18CXDJQXHP
labels:
app.kubernetes.io/instance: tinygo-http-hello-world
name: tinygo-http-hello-world
namespace: wasmcloud
resourceVersion: bc13ddae-da51-5e76-9334-613ec1bd8144
uid: bc13ddae-da51-5e76-9334-613ec1bd8144
spec:
components:
- name: http-hello-world-go
properties:
config:
- name: timezone
properties:
TZ: Europe/Amsterdam
image: redacted
traits:
- properties:
instances: 1
type: spreadscaler
type: component
- name: httpserver
properties:
image: redacted
traits:
- properties:
interfaces:
- incoming-handler
namespace: wasi
package: http
source_config:
- name: default-http
properties:
address: 0.0.0.0:8062
target: http-hello-world-go
type: link
type: capability
status:
phase: Deployed