diff --git a/.github/workflows/vm_test.yml b/.github/workflows/vm_test.yml index 446de3723..abdae50e4 100644 --- a/.github/workflows/vm_test.yml +++ b/.github/workflows/vm_test.yml @@ -197,6 +197,37 @@ jobs: sudo mkdir -p /opt/cni/bin sudo tar Cxzvf /opt/cni/bin "cni-plugins-linux-$(dpkg --print-architecture)-v${SAFE_CNI}.tgz" rm -f "cni-plugins-linux-$(dpkg --print-architecture)-v${SAFE_CNI}.tgz" + sudo mkdir -p /etc/cni/net.d + sudo tee /etc/cni/net.d/10-containerd-net.conflist > /dev/null <<'EOF' +{ + "cniVersion": "1.0.0", + "name": "containerd-net", + "plugins": [ + { + "type": "bridge", + "bridge": "cni0", + "isGateway": true, + "ipMasq": true, + "promiscMode": true, + "ipam": { + "type": "host-local", + "ranges": [ + [{ + "subnet": "10.88.0.0/16" + }] + ], + "routes": [ + { "dst": "0.0.0.0/0" } + ] + } + }, + { + "type": "portmap", + "capabilities": {"portMappings": true} + } + ] +} +EOF - name: Install nerdctl env: