about summary refs log tree commit diff
path: root/users/fcuny/exp/containerd-to-vm/hack
diff options
context:
space:
mode:
Diffstat (limited to 'users/fcuny/exp/containerd-to-vm/hack')
-rw-r--r--users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist26
1 files changed, 26 insertions, 0 deletions
diff --git a/users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist b/users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist
new file mode 100644
index 0000000..9321e54
--- /dev/null
+++ b/users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist
@@ -0,0 +1,26 @@
+{
+  "name": "c2vm",
+  "cniVersion": "0.4.0",
+  "plugins": [
+    {
+      "type": "bridge",
+      "bridge": "c2vm-br",
+      "isDefaultGateway": true,
+      "forceAddress": false,
+      "ipMasq": true,
+      "hairpinMode": true,
+      "mtu": 1500,
+      "ipam": {
+        "type": "host-local",
+        "subnet": "192.168.128.0/24",
+        "resolvConf": "/etc/resolv.conf"
+      }
+    },
+    {
+      "type": "firewall"
+    },
+    {
+      "type": "tc-redirect-tap"
+    }
+  ]
+}