You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
K3s recently added support for configuring containerd to work with shims. Ironically, this makes it harder to use kwasm.
Here k3s now checks if the shim exists in the filesystem. If it find it, it then assumes it is on the users path, updating the containerd.toml.tmpl config to set runtime_type = "io.containerd.spin.v2". This seems to wire containerd to look for the shim on path even if it tries to qualify where with the options section next:
The node installer then sees that the config template was updated and opts not to update it with the path to the binary at /opt/kwasm. The runtime_type should be specified as:
Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: failed to start shim: failed to resolve runtime path: runtime "io.containerd.spin.v2" binary not installed "containerd-shim-spin-v2": file does not exist: unknown
Workaround
Option 1: Update the /var/lib/rancher/k3s/agent/etc/containerd/config.toml file to point to the shim under the kwasm directory:
K3s recently added support for configuring containerd to work with shims. Ironically, this makes it harder to use kwasm.
Here k3s now checks if the shim exists in the filesystem. If it find it, it then assumes it is on the users path, updating the
containerd.toml.tmpl
config to setruntime_type = "io.containerd.spin.v2"
. This seems to wire containerd to look for the shim on path even if it tries to qualify where with the options section next:The node installer then sees that the config template was updated and opts not to update it with the path to the binary at
/opt/kwasm
. Theruntime_type
should be specified as:When you go to run your app, you get the error:
Workaround
/var/lib/rancher/k3s/agent/etc/containerd/config.toml
file to point to the shim under the kwasm directory:/opt/kwasm
directory to pathThe text was updated successfully, but these errors were encountered: