- Install rustup https://www.rust-lang.org/tools/install
- Install wasm target
rustup target add wasm32-wasi
- Install Kind
brew install kind
- Install istioctl
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.10.4 TARGET_ARCH=x86_64 sh -
cd istio-1.10.4
export PATH=$PWD/bin:$PATH
- Create istio cluster
kind create cluster --name istio-testing
kubectl config use-context kind-istio-testing
- Install istio
istioctl install --set profile=demo -y
- Setup demo app
kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml
- Test setup
kubectl exec "$(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"
- Build and copy wasm binary to root directory
cargo build --target wasm32-wasi --release