wasmCloud · Example Payload

Wasmcloud Oam Manifest Example

Example OAM manifest deploying an HTTP hello-world component linked to the HTTP server capability provider

Cloud NativeCNCFDistributed SystemsIncubatingRuntimeWasmWebAssemblyWIT

Wasmcloud Oam Manifest Example is an example object payload from wasmCloud, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptionexample

Example Payload

Raw ↑
{
  "summary": "wasmCloud Hello World Application Manifest",
  "description": "Example OAM manifest deploying an HTTP hello-world component linked to the HTTP server capability provider",
  "example": {
    "apiVersion": "core.oam.dev/v1beta1",
    "kind": "Application",
    "metadata": {
      "name": "hello-world",
      "annotations": {
        "version": "v0.1.0",
        "description": "A simple Hello World HTTP application running on wasmCloud"
      }
    },
    "spec": {
      "components": [
        {
          "name": "http-component",
          "type": "component",
          "properties": {
            "image": "ghcr.io/wasmcloud/components/http-hello-world:0.1.0",
            "id": "http-hello-world"
          },
          "traits": [
            {
              "type": "spreadscaler",
              "properties": {
                "replicas": 1
              }
            },
            {
              "type": "link",
              "properties": {
                "target": "http-server",
                "namespace": "wasi",
                "package": "http",
                "interfaces": ["incoming-handler"]
              }
            }
          ]
        },
        {
          "name": "http-server",
          "type": "capability",
          "properties": {
            "image": "ghcr.io/wasmcloud/http-server:0.22.0",
            "id": "http-server"
          },
          "traits": [
            {
              "type": "spreadscaler",
              "properties": {
                "replicas": 1
              }
            },
            {
              "type": "link",
              "properties": {
                "target": "http-component",
                "namespace": "wasi",
                "package": "http",
                "interfaces": ["incoming-handler"],
                "target_config": [
                  {
                    "name": "listen-config",
                    "properties": {
                      "address": "0.0.0.0:8080"
                    }
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  }
}