跳至主要内容

Kwasm

Kwasm is a Kubernetes Operator that adds WebAssembly support to your Kubernetes nodes.

Quick start

You will need a running Kubernetes cluster to install Kwasm operator. Here we use a fresh cluster created by kind:

kind create cluster

You will also need to install helm to setup Kwasm:

helm repo add kwasm http://kwasm.sh/kwasm-operator/
helm repo update
helm install -n kwasm --create-namespace kwasm kwasm/kwasm-operator
kubectl annotate node --all kwasm.sh/kwasm-node=true

Apply the yaml file for the wasm job:

kubectl apply -f https://raw.githubusercontent.com/KWasm/kwasm-node-installer/main/example/test-job.yaml

After the job is finished, check the log:

kubectl logs job/wasm-test