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
If the above approach does not work for you, please refer to [build and install a crun binary with WasmEdge support.](https://wasmedge.org/book/en/use_cases/kubernetes/container/crun.html)
176
+
#### crun
182
177
183
-
3. **containerd**
178
+
The crun project has WasmEdge support baked in. For now, the easiest approach is just download the binary and move it to `/usr/local/bin/`
If the above approach does not work for you, please refer to [build and install a crun binary with WasmEdge support.](https://wasmedge.org/book/en/use_cases/kubernetes/container/crun.html)
184
184
185
-
Edit the configuration `/etc/containerd/config.toml`, add the following section to setup crun runtime, make sure the BinaryName equal to your crun binary path
> You can follow this [installation guide](https://github.com/containerd/containerd/blob/main/docs/getting-started.md#installing-containerd) to install containerd and
190
+
> this [setup guide](https://github.com/containerd/containerd/blob/main/docs/getting-started.md#setting-up-containerd-for-kubernetes) to setup containerd for Kubernetes.
191
+
192
+
First, edit the configuration `/etc/containerd/config.toml`, add the following section to setup crun runtime, make sure the BinaryName equal to your crun binary path
> You can follow this [installation guide](https://github.com/cri-o/cri-o/blob/main/install.md) to install CRI-O and
212
+
> this [setup guide](https://github.com/cri-o/cri-o/blob/main/tutorials/kubernetes.md#running-cri-o-on-kubernetes-cluster) to setup CRI-O for Kubernetes.
213
+
214
+
CRI-O uses the runc runtime by default and we need to configure it to use crun instead. That is done by adding to two configuration files.
215
+
216
+
First, create a `/etc/crio/crio.conf` file and add the following lines as its content. It tells CRI-O to use crun by default.
217
+
218
+
```
219
+
[crio.runtime]
220
+
default_runtime = "crun"
221
+
```
222
+
223
+
The crun runtime is in turn defined in the `/etc/crio/crio.conf.d/01-crio-runc.conf` file.
224
+
```
225
+
[crio.runtime.runtimes.runc]
226
+
runtime_path = "/usr/lib/cri-o-runc/sbin/runc"
227
+
runtime_type = "oci"
228
+
runtime_root = "/run/runc"
229
+
# The above is the original content
230
+
231
+
# Add crun runtime here
232
+
[crio.runtime.runtimes.crun]
233
+
runtime_path = "/usr/local/bin/crun"
234
+
runtime_type = "oci"
235
+
runtime_root = "/run/crun"
236
+
```
237
+
238
+
Next, restart CRI-O to apply the configuration changes.
0 commit comments