aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-containers/k3s/k3s/cni-containerd-net.conf
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/k3s/k3s/cni-containerd-net.conf')
-rw-r--r--recipes-containers/k3s/k3s/cni-containerd-net.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-containers/k3s/k3s/cni-containerd-net.conf b/recipes-containers/k3s/k3s/cni-containerd-net.conf
new file mode 100644
index 00000000..ca434d6f
--- /dev/null
+++ b/recipes-containers/k3s/k3s/cni-containerd-net.conf
@@ -0,0 +1,24 @@
+{
+ "cniVersion": "0.4.0",
+ "name": "containerd-net",
+ "plugins": [
+ {
+ "type": "bridge",
+ "bridge": "cni0",
+ "isGateway": true,
+ "ipMasq": true,
+ "promiscMode": true,
+ "ipam": {
+ "type": "host-local",
+ "subnet": "10.88.0.0/16",
+ "routes": [
+ { "dst": "0.0.0.0/0" }
+ ]
+ }
+ },
+ {
+ "type": "portmap",
+ "capabilities": {"portMappings": true}
+ }
+ ]
+}