File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
pkg/cidata/cidata.TEMPLATE.d/boot Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ if [ "${LIMA_CIDATA_CONTAINERD_SYSTEM}" = 1 ]; then
46
46
mkdir -p /etc/containerd
47
47
cat > " /etc/containerd/config.toml" << EOF
48
48
version = 2
49
+ # TODO: remove imports after upgrading containerd to v2.2, as
50
+ # conf.d is set by default since v2.2.
51
+ imports = ['/etc/containerd/conf.d/*.toml']
49
52
[plugins."io.containerd.grpc.v1.cri"]
50
53
enable_cdi = true
51
54
[proxy_plugins]
Original file line number Diff line number Diff line change 10
10
# NAME STATUS ROLES AGE VERSION
11
11
# lima-k8s Ready control-plane,master 44s v1.22.3
12
12
13
- minimumLimaVersion : 1.1 .0
13
+ minimumLimaVersion : 2.0 .0
14
14
15
15
base : template://_images/ubuntu-lts
16
16
@@ -62,11 +62,12 @@ provision:
62
62
script : |
63
63
#!/bin/bash
64
64
set -eux -o pipefail
65
- grep SystemdCgroup /etc/containerd/config. toml && exit 0
65
+ [ -e /etc/containerd/conf.d/k8s. toml ] && exit 0
66
66
grep "version = 2" /etc/containerd/config.toml || exit 1
67
+ mkdir -p /etc/containerd/conf.d
67
68
# Configuring the systemd cgroup driver
68
69
# Overriding the sandbox (pause) image
69
- cat <<EOF >>/etc/containerd/config .toml
70
+ cat <<EOF >>/etc/containerd/conf.d/k8s .toml
70
71
[plugins]
71
72
[plugins."io.containerd.grpc.v1.cri"]
72
73
sandbox_image = "$(kubeadm config images list | grep pause | sort -r | head -n1)"
You can’t perform that action at this time.
0 commit comments