WasmEdge
WasmEdge copied to clipboard
module name conflict when WasmEdge on k8s
Description
I build the wasm OCI image which can be run correctly through 'ctr run', but when I deploy container on k8s, I get the following error. The reference I take to build the OCI image is https://nigelpoulton.com/getting-started-with-docker-and-wasm How to run wasm workloads on Kubernetes: https://nigelpoulton.com/webassembly-on-kubernetes-everything-you-need-to-know
Current State
[error] instantiation failed: module name conflict, Code: 0x60 [error] At AST node: module
Expected
wasm container can run on k8s correctly.
Environment
Ubuntu 22.04 Kubernetes 1.22.5 Containerd 1.5.8 WasmEdge 0.11.2
@dm4 Can you help take a look? Thanks.
Hi @EthanLiu1991 Could you please provide your OCI image?
@hydai When I use this image whether ctr or k8s, it works: docker.io/duizhang/wasi-demo-app:latest
When I use the image I build myself, only ctr can run: sudo ctr run --rm --runtime=io.containerd.wasmedge.v1 docker.io/ethanliu1991/wasmedge:test testwasmedge then, it prints [hello]
But when I use this image on k8s, it shows the error: [error] instantiation failed: module name conflict, Code: 0x60 [error] At AST node: module
Thanks for the information. Have you uploaded your image to the docker hub or anywhere? So we can try the problematic image directly.
@hydai Yes, I've already uploaded the image to my dockerhub.
Could you provide link to the image?
ethanliu1991/wasmedge:test image: https://hub.docker.com/repository/docker/ethanliu1991/wasmedge/tags?page=1&ordering=last_updated