SuperEdge

    • Download the installation package
    • Install edge Kubernetes master node with containerd runtime
    • Join edge node with containerd runtime
    1. ./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 .

    1. sudo apt update
    2. sudo apt install -y make git gcc build-essential pkgconf libtool \
    3. libsystemd-dev libprotobuf-c-dev libcap-dev libseccomp-dev libyajl-dev \
    4. go-md2man libtool autoconf python3 automake
    1. cd crun
    2. ./autogen.sh
    3. ./configure --with-wasmedge
    4. make
    5. 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.

    1. sudo patch -d/ -p0 < config.toml.diff
    2. sudo systemctl restart containerd
    1. cat > wasmedge-app.yaml << EOF
    2. apiVersion: v1
    3. kind: Pod
    4. metadata:
    5. annotations:
    6. module.wasm.image/variant: compat
    7. labels:
    8. name: wasi-demo
    9. containers:
    10. - args:
    11. - /wasi_example_main.wasm
    12. - "50000000"
    13. image: hydai/wasm-wasi-example:with-wasm-annotation
    14. imagePullPolicy: IfNotPresent
    15. name: wasi-demo
    16. hostNetwork: true
    17. restartPolicy: Never
    18. EOF

    The output will show by executing kubectl logs wasi-demo command.