Note: You can skip step 3, if you trust running the container I've made public on ghcr.io/mikkelhegn/mydotnet:v1
- Install kwasm.sh with Minikube - https://kwasm.sh/quickstart/
- Add the runtimeclass -
kubectl apply -f runtime-class.yaml
- Build the app and container, or skip ahead to 4
- Spin app -
spin build -f c-sharp/spin.toml
- Build the container -
docker buildx build -t
some-container-registry/username
/mydotnet:v1 .
- Push it -
docker push
some-container-registry/username
/mydotnet:v1
- Change the container image reference in
spinapp.yaml
- Spin app -
- Deploy the app to Minikube -
kubectl apply -f spinapp.yaml
- Port forward -
kubectl port-forward deployment/wasm-spin 8000:80
- Call the app endpoint -
curl localhost:8000/hello