| 1 |
# See also: https://github.com/kubernetes-sigs/kind/blob/fd64a56b0c3d5654eb6d22bce812e2a87eac5853/images/base/files/etc/containerd/config.toml |
| 2 |
|
| 3 |
# explicitly use v2 config format |
| 4 |
version = 2 |
| 5 |
|
| 6 |
# - Set default runtime handler to v2, which has a per-pod shim |
| 7 |
# - Enable to use stargz snapshotter |
| 8 |
[plugins."io.containerd.grpc.v1.cri".containerd] |
| 9 |
default_runtime_name = "runc" |
| 10 |
snapshotter = "stargz" |
| 11 |
disable_snapshot_annotations = false |
| 12 |
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] |
| 13 |
runtime_type = "io.containerd.runc.v2" |
| 14 |
|
| 15 |
# Setup a runtime with the magic name ("test-handler") used for Kubernetes |
| 16 |
# runtime class tests ... |
| 17 |
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.test-handler] |
| 18 |
runtime_type = "io.containerd.runc.v2" |
| 19 |
|
| 20 |
# Use stargz snapshotter |
| 21 |
[proxy_plugins] |
| 22 |
[proxy_plugins.stargz] |
| 23 |
type = "snapshot" |
| 24 |
address = "/run/containerd-stargz-grpc/containerd-stargz-grpc.sock" |