Skip to content

oktadev/okta-rust-webassembly-k8s-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust WebAssembly on Kubernetes with Krustlet

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

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.

Build

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

Push to OCI registry

wasm-to-oci push target/wasm32-wasi/release/rust-wasm.wasm ghcr.io/<your GitHub user>/rust-wasm:latest

License

Apache 2.0, see LICENSE.

About

An example Rust WebAssembly application as a Kubernetes workload

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages