Skip to content

Commit 8d10611

Browse files
committed
README: show how to configure containerd 2 to use the spin runtime plugin
1 parent 2b765b1 commit 8d10611

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,16 @@ To carry out the installation step-by-step, do the following:
6060

6161
Install a [release of the shim](https://github.com/spinkube/containerd-shim-spin/releases) on the `PATH` of your Kubernetes worker nodes. For example, copy `containerd-shim-spin-v2` to `/bin`. Shims are additive, so once the `containerd-shim-spin` is installed on a Node, it can support Spin WebAssembly apps alongside Linux containers.
6262

63-
2. Add the following to the containerd config.toml that maps the runtime type to the shim binary from step 1.
63+
2. Add the following to the containerd `config.toml` that maps the runtime type to the shim binary from step 1.
64+
65+
If you are using containerd 2 or later, add:
66+
67+
```toml
68+
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.spin]
69+
runtime_type = "io.containerd.spin.v2"
70+
```
71+
72+
Otherwise, add:
6473

6574
```toml
6675
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.spin]

0 commit comments

Comments
 (0)