A test consists of three sections cluster setup, test setup, and test result.
- Docker
- Kind
- Kubectl
- Helm
# Crate cluster
kind create cluster --image kindest/node:v1.28.0
# Install with 0.3.0-pre installer
helm repo add kwasm http://kwasm.sh/kwasm-operator/ --force-update
helm repo update
helm upgrade --install -n kwasm --create-namespace kwasm-operator kwasm/kwasm-operator \
--set kwasmOperator.autoProvision="true" \
--set kwasmOperator.installerImage="ghcr.io/kwasm/kwasm-node-installer:pr-42"
kubectl apply -f https://gist.githubusercontent.com/0xE282B0/1854ad6ed7ddaf4ad7d3032397056a38/raw/937c56555532d8f7dadedc9405c6764f3133073e/runtimeclass.yaml
kubectl apply -f https://gist.githubusercontent.com/0xE282B0/1854ad6ed7ddaf4ad7d3032397056a38/raw/937c56555532d8f7dadedc9405c6764f3133073e/workload.yaml
❯ kubectl get pod
NAME READY STATUS RESTARTS AGE
lunatic-demo-6475554875-5k9bf 2/2 Running 0 2m49s
wasm-slight-6467bcc5bc-5kd4k 2/2 Running 0 2m49s
wasm-spin-74c4cf5c77-smvzp 2/2 Running 0 2m49s
wasm-wws-888f6bc4b-f2nfj 2/2 Running 0 2m48s
wasmedge-demo-5ff758d79-fszsk 2/2 Running 0 2m49s
wasmer-demo-857f947cb7-lj467 2/2 Running 0 2m49s
wasmtime-demo-56c78ddd95-wkcsz 2/2 Running 0 2m49s