This is an example Rust WebAssembly(Wasm) workload for Kubernetes.
You will use Krustlet to run a Wasm workload written in Rust on Kubernetes today.
Prerequisites
- Docker
- kubectl
- kind or another local kubernetes distribution
- Rust toolkit (Includes rustup, rustc, and cargo)
Follow the blog post "Containerless! Run WebAssembly Workloads written in Rust on Kubernetes" for further instruction on setting up the cluster and running the workload.
You can build the app for Wasm using below command.
# add WASI target
rustup target add wasm32-wasi
# build
cargo build --release --target wasm32-wasi
wasm-to-oci push target/wasm32-wasi/release/rust-wasm.wasm ghcr.io/<your GitHub user>/rust-wasm:latest
Apache 2.0, see LICENSE.