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
4646 mkdir -p /etc/containerd
4747 cat > " /etc/containerd/config.toml" << EOF
4848 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']
4952 [plugins."io.containerd.grpc.v1.cri"]
5053 enable_cdi = true
5154 [proxy_plugins]
Original file line number Diff line number Diff line change 1010# NAME STATUS ROLES AGE VERSION
1111# lima-k8s Ready control-plane,master 44s v1.22.3
1212
13- minimumLimaVersion : 1.1 .0
13+ minimumLimaVersion : 2.0 .0
1414
1515base : template://_images/ubuntu-lts
1616
@@ -62,11 +62,12 @@ provision:
6262 script : |
6363 #!/bin/bash
6464 set -eux -o pipefail
65- grep SystemdCgroup /etc/containerd/config. toml && exit 0
65+ [ -e /etc/containerd/conf.d/k8s. toml ] && exit 0
6666 grep "version = 2" /etc/containerd/config.toml || exit 1
67+ mkdir -p /etc/containerd/conf.d
6768 # Configuring the systemd cgroup driver
6869 # Overriding the sandbox (pause) image
69- cat <<EOF >>/etc/containerd/config .toml
70+ cat <<EOF >>/etc/containerd/conf.d/k8s .toml
7071 [plugins]
7172 [plugins."io.containerd.grpc.v1.cri"]
7273 sandbox_image = "$(kubeadm config images list | grep pause | sort -r | head -n1)"
You can’t perform that action at this time.
0 commit comments