{"id":26560757,"url":"https://github.com/igor992/kind-node-wasm","last_synced_at":"2026-05-17T19:34:47.681Z","repository":{"id":281924824,"uuid":"630814339","full_name":"Igor992/kind-node-wasm","owner":"Igor992","description":"Support WebAssembly workloads over WasmEdge runtime","archived":false,"fork":false,"pushed_at":"2023-04-21T08:17:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T16:32:15.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Igor992.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-21T08:02:25.000Z","updated_at":"2025-08-18T09:06:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fa7fdac-c1fc-4929-b92f-237e4390b86b","html_url":"https://github.com/Igor992/kind-node-wasm","commit_stats":null,"previous_names":["igor992/kind-node-wasm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Igor992/kind-node-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor992%2Fkind-node-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor992%2Fkind-node-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor992%2Fkind-node-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor992%2Fkind-node-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Igor992","download_url":"https://codeload.github.com/Igor992/kind-node-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Igor992%2Fkind-node-wasm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-22T13:29:51.741Z","updated_at":"2026-05-17T19:34:47.676Z","avatar_url":"https://github.com/Igor992.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run WebAssembly with Kind\n\n## What is [WebAssembly](https://webassembly.org/)?\n\nWebAssembly a.k.a. `wasm` is a binary instruction format and virtual machine that brings near-native performance to web browser applications, and allows developers to build high-speed web apps in the language of their choice.\n\n---\n\n## [WasmEdge](https://wasmedge.org/) runtime\n\nWasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.\n\n\u003e WasmEdge Runtime was accepted to [CNCF](https://www.cncf.io/projects/wasmedge-runtime/) on `April 28, 2021` and is at the **Sandbox** project maturity level.\n---\n\n## Prepare Kubernetes for this workload\n\n\u003e I assume that the person who reads this repository knows the Kubernetes part well\n\nTo run wasm inside the kind cluster, we need to perform a change at the node side where this workload will be scheduled.\n\nKind node images yet don't support wasm workloads out of the box. I hope that this will be added soon to support an option for mixed workload types. Kind [releases](https://github.com/kubernetes-sigs/kind/releases) page is well documented and I advise you to check it out.\n\nThe game changer in this topic is [runwasi](https://github.com/containerd/runwasi) from the [containerd](https://containerd.io/)\n\nWhat this does is let you to change behaviour of the low-level container runtime [runc](https://github.com/opencontainers/runc), to support new containerd [shim](https://iximiuz.com/en/posts/implementing-container-runtime-shim/) which runs wasm workloads.\n\nTo support this we need to build custom node [image](kind-wasm/image/node/Dockerfile) with [crun](https://github.com/containers/crun). There is couple changes that we need to perfrom in order to containerd starts work with WasmEdge [workload](https://github.com/containerd/runwasi#:~:text=build%20shim%20with%20wasmedge%20we%20need%20install%20library%20first). There is setup for the containerd [here](kind/image/node/containerd/config.toml) which will be used for our [runtimeclass](kind/runtime.yaml) that we use. One important thing as we use crun here, is to use [annotaiton](https://github.com/containers/crun/blob/main/docs/wasm-wasi-on-kubernetes.md#running-wasi-workload-natively-on-kubernetes-using-crun), in our case that is [here](kind/image/node/containerd/annotations.json).\n\nNow we have prepared continerd to use new shim in order to manages container lifecycle events for wasm workload.\n\n## Let's test it?\n\nYou can use this simple [Makefile](Makefile)\n\n```console\nUsage:\n  make [ COMMAND ]\n\nCommands:\n  all               Build cluster and run the example workload\n  node-image        Build the custom kind node image\n  cluster           Create the cluster\n  crun-workload     Build a wasm workload image and load it into kind\n  crun-test         Deploy a test job with mixed workloads and print their logs\n  clean             Delete the kind cluster\n  docker            Clear all from machine\n```\n\n\u003e To goes over complete flow use `make all`\n\n---\n\n## Documentation \u0026 Videos\n\n- [WasmEdge in Kubernetes](https://wasmedge.org/book/en/use_cases/kubernetes.html)\n- [CNCF WebAssembly](https://www.cncf.io/online-programs/cncf-live-webinar-geeking-out-with-webassembly-and-kubernetes-using-containerd-shims/)\n\n---\n\n## Blogs\n\n\u003e Check Ivan's other great explanations for containers, below is just one of the great examples!\n\n- [Ivan Velichko](https://iximiuz.com/en/)\n    - [container-runtime-shim](https://iximiuz.com/en/posts/implementing-container-runtime-shim/)\n- [Nigel Poulton](https://nigelpoulton.com/)\n    - [what-is-runwasi](https://nigelpoulton.com/what-is-runwasi/)\n    - [webassembly-on-kubernetes](https://nigelpoulton.com/webassembly-on-kubernetes-everything-you-need-to-know/)\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figor992%2Fkind-node-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figor992%2Fkind-node-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figor992%2Fkind-node-wasm/lists"}