KWasm / kwasm-node-installer

Installs KWasm on Kubernetes nodes.
Apache License 2.0
35 stars 13 forks source link

Prepare for 0.3.0 #42

Closed 0xE282B0 closed 1 year ago

0xE282B0 commented 1 year ago

With the 0.9.0 release of deislabs/containerd-wasm-shims and the latest updates in containerd/runwasi, there is no need to use crun for mixed pods with WasmEdge and Linux containers. Therefore, support for crun+wasmedge will be removed for now in favor of the runwasi WasmEdge shim. It is planned to reintroduce support for OCI runtimes in a later version of kwasm-node-installer.

The runwasi WasmEdge shim has the same behavior as the module.wasm.image/variant: compat-smart annotation for crun+wasmedge, but no annotation is required. And even better, all other shims can now be used with sidecars as well!

This PR can be tested with the folowing Helm command:

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"

Available RuntimeClasses:

apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: slight
handler: slight
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: spin
handler: spin
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: wws
handler: wws
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: lunatic
handler: lunatic
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: wasmtime
handler: wasmtime
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: wasmedge
handler: wasmedge
---
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: wasmer
handler: wasmer

closes #40 closes #27 closes #11