Skip to content

yoshuawuyts/sample-wasi-http-aks-wasmcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-wasi-http-aks-wasmcloud

Run a wasi:http app on AKS + WasmCloud.

🚀 Deploy the Infrastructure

  1. Login to Azure: az login
  2. Set subscription ID: export ARM_SUBSCRIPTION_ID=$(az account show --query id -o tsv)
  3. Run Terraform: terraform init && terraform apply -auto-approve

☁️ Deploy WasmCloud

  1. Connect to the AKS cluster:

    export RG_NAME="$(terraform output -raw resource_group_name)"
    export AKS_NAME="$(terraform output -raw azure_kubernetes_cluster_name)"
    az aks get-credentials --resource-group $RG_NAME --name $AKS_NAME --overwrite-existing
    
  2. Setup WasmCloud:

    ./setupWasmCloud.sh

More: Deploying wasmCloud on Kubernetes

Deploy the wasm component

  1. Apply the manifest:
    kubectl apply -f app.yml
  2. Port forward:
    WASMCLOUD_HOST_POD=$(kubectl get pods -o jsonpath="{.items[*].metadata.name}" -l app.kubernetes.io/instance=wasmcloud-host)
    kubectl port-forward pods/$WASMCLOUD_HOST_POD 8080
  3. Test endpoints:
    curl http://localhost:8080
    curl http://localhost:8080/echo -d 'Hello, from WasmCloud!'

See Also

Guests

License

Apache-2.0 with LLVM Exception

About

A sample running a `wasi:http` application on AKS + WasmCloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published