Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 87a30d9

Browse files
authored
document how to quickly get started with a local cluster (#11)
1 parent df89be9 commit 87a30d9

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ This project aims to provide containerd shim implementations that can run Wasm /
33

44
[runwasi](https://github.com/deislabs/runwasi) is a project that aims to run wasm workloads running on [Wasmtime](https://wasmtime.dev/), a fast and secure runtime for WebAssembly, which is managed by containerd.
55

6+
## Quickstart
7+
To get up and running quickly on a local k3d cluster, use [the k3d deployment described here](./deployments/k3d/README.md#how-to-run-the-example).
8+
69
## Containerd Wasm Shims
710
Each of the shims below leverage runwasi to provide the bridge between K8s and containerd.
811

deployments/k3d/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ $ tree .
1414
- **Dockerfile:** is the specification for the image run as a Kubernetes node within the k3d cluster. We add the shims to the `/bin` directory and add the containerd config in the k3s prescribed directory.
1515
- **Makefile**: has some helpful tasks to aid in execution.
1616

17-
## How to use this example
17+
## How to run the example
18+
The shell script below will create a k3d cluster locally with the Wasm shims installed and containerd configured. The script then applies the runtime classes for the shims and an example service and deployment. Finally, we curl the `/hello` and receive a response from the example workload.
19+
```shell
20+
k3d cluster create wasm-cluster --image ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:latest --api-port 6550 -p "8081:80@loadbalancer"
21+
kubectl apply -f https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.2.0/runtime.yaml
22+
kubectl apply -f https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.2.0/workload.yaml
23+
curl -v http://0.0.0.0:8081/hello
24+
```
25+
26+
To tear down the cluster, run the following.
27+
```shell
28+
k3d cluster delete wasm-cluster
29+
```
30+
31+
## How build get started from source
1832
- `make install-k3d`: will install k3d
1933
- `make up`: will build the shims and the k3d kubernetes cluster
2034
- `make deploy`: will deploy our runtime classes, services, and deployments of Wasm workloads. You can find these manifests in [the workloads directory](../workloads).

0 commit comments

Comments
 (0)