Run a wasi:http
app on AKS + WasmCloud.
- Login to Azure:
az login
- Set subscription ID:
export ARM_SUBSCRIPTION_ID=$(az account show --query id -o tsv)
- Run Terraform:
terraform init && terraform apply -auto-approve
-
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
-
Setup WasmCloud:
./setupWasmCloud.sh
More: Deploying wasmCloud on Kubernetes
- Apply the manifest:
kubectl apply -f app.yml
- 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
- Test endpoints:
curl http://localhost:8080 curl http://localhost:8080/echo -d 'Hello, from WasmCloud!'
Guests
- sample-wasi-http-rust - A
wasi:http
example program written in Rust
Apache-2.0 with LLVM Exception