SuperEdge
- Download the installation package
- Install edge Kubernetes master node with containerd runtime
- Join edge node with containerd runtime
./edgeadm join <Master Public/Intranet IP Or Domain>:Port --token xxxx --discovery-token-ca-cert-hash sha256:xxxxxxxxxx --install-pkg-path <edgeadm kube-* install package address path> --enable-edge=true --runtime=containerd
See the detailed process
Use the simple install script to install WasmEdge on your edge node.
The crun project has WasmEdge support baked in. For now, the easiest approach is just to build it yourself from source. First, let’s make sure that crun dependencies are installed on your Ubuntu 20.04. For other Linux distributions, please see .
sudo apt update
sudo apt install -y make git gcc build-essential pkgconf libtool \
libsystemd-dev libprotobuf-c-dev libcap-dev libseccomp-dev libyajl-dev \
go-md2man libtool autoconf python3 automake
cd crun
./autogen.sh
./configure --with-wasmedge
make
sudo make install
Superedge containerd node has default config, we should modify the configuration file(/etc/containerd/config.toml) according to the following steps.
Firstly, we generate diff file and patch it.
sudo patch -d/ -p0 < config.toml.diff
sudo systemctl restart containerd
cat > wasmedge-app.yaml << EOF
apiVersion: v1
kind: Pod
metadata:
annotations:
module.wasm.image/variant: compat
labels:
name: wasi-demo
containers:
- args:
- /wasi_example_main.wasm
- "50000000"
image: hydai/wasm-wasi-example:with-wasm-annotation
imagePullPolicy: IfNotPresent
name: wasi-demo
hostNetwork: true
restartPolicy: Never
EOF
The output will show by executing kubectl logs wasi-demo
command.