Skip to content

jshaw86/rust-wasm-envoy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

  1. Install rustup https://www.rust-lang.org/tools/install
  2. Install wasm target
rustup target add wasm32-wasi
  1. Install Kind
brew install kind
  1. 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
  1. Create istio cluster
kind create cluster --name istio-testing
kubectl config use-context kind-istio-testing
  1. Install istio
istioctl install --set profile=demo -y
  1. Setup demo app
kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml
  1. 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

  1. Build and copy wasm binary to root directory
cargo build --target wasm32-wasi --release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages