summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-containers/containerd/containerd/cni-containerd-net.conf24
-rw-r--r--recipes-containers/containerd/containerd_git.bb5
2 files changed, 29 insertions, 0 deletions
diff --git a/recipes-containers/containerd/containerd/cni-containerd-net.conf b/recipes-containers/containerd/containerd/cni-containerd-net.conf
new file mode 100644
index 00000000..ca434d6f
--- /dev/null
+++ b/recipes-containers/containerd/containerd/cni-containerd-net.conf
@@ -0,0 +1,24 @@
1{
2 "cniVersion": "0.4.0",
3 "name": "containerd-net",
4 "plugins": [
5 {
6 "type": "bridge",
7 "bridge": "cni0",
8 "isGateway": true,
9 "ipMasq": true,
10 "promiscMode": true,
11 "ipam": {
12 "type": "host-local",
13 "subnet": "10.88.0.0/16",
14 "routes": [
15 { "dst": "0.0.0.0/0" }
16 ]
17 }
18 },
19 {
20 "type": "portmap",
21 "capabilities": {"portMappings": true}
22 }
23 ]
24}
diff --git a/recipes-containers/containerd/containerd_git.bb b/recipes-containers/containerd/containerd_git.bb
index f30d05a4..5f106a67 100644
--- a/recipes-containers/containerd/containerd_git.bb
+++ b/recipes-containers/containerd/containerd_git.bb
@@ -9,6 +9,7 @@ SRCREV = "19430264c19b8bd9f940101ec71d52ab2d2e54d5"
9SRC_URI = "git://github.com/containerd/containerd;branch=main;protocol=https;destsuffix=git/src/github.com/containerd/containerd/v2 \ 9SRC_URI = "git://github.com/containerd/containerd;branch=main;protocol=https;destsuffix=git/src/github.com/containerd/containerd/v2 \
10 file://0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch \ 10 file://0001-Makefile-allow-GO_BUILD_FLAGS-to-be-externally-speci.patch \
11 file://0001-build-don-t-use-gcflags-to-define-trimpath.patch \ 11 file://0001-build-don-t-use-gcflags-to-define-trimpath.patch \
12 file://cni-containerd-net.conf \
12 " 13 "
13 14
14# Apache-2.0 for containerd 15# Apache-2.0 for containerd
@@ -98,3 +99,7 @@ COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
98 99
99RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}" 100RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
100 101
102## This may need to be made conditional on K3S or similar being
103## configured in the distro, since we may have collisions.
104CNI_NETWORKING_FILES ?= "${UNPACKDIR}/cni-containerd-net.conf"
105inherit cni_networking