aboutsummaryrefslogtreecommitdiff
path: root/cni
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2017-12-20 15:13:52 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-22 19:23:36 +0000
commit7f531263e6e41195278f205ad01274487cc1c1e0 (patch)
tree1e162ee89a8302e16e743ec8d884f62d193ef2ef /cni
parentb08ac1065ca0201cd66cf53bf6fc75470a70f398 (diff)
downloadpodman-7f531263e6e41195278f205ad01274487cc1c1e0.tar.gz
podman-7f531263e6e41195278f205ad01274487cc1c1e0.tar.bz2
podman-7f531263e6e41195278f205ad01274487cc1c1e0.zip
Add default CNI configuration
podman needs a pair of configuration files to set up its default network configuration: a bridge and loopback file. Signed-off-by: baude <bbaude@redhat.com> Closes: #161 Approved by: baude
Diffstat (limited to 'cni')
-rw-r--r--cni/97-podman-bridge.conf15
-rw-r--r--cni/98-podman-loopback.conf4
2 files changed, 19 insertions, 0 deletions
diff --git a/cni/97-podman-bridge.conf b/cni/97-podman-bridge.conf
new file mode 100644
index 000000000..27fc096c4
--- /dev/null
+++ b/cni/97-podman-bridge.conf
@@ -0,0 +1,15 @@
+{
+ "cniVersion": "0.3.0",
+ "name": "podman",
+ "type": "bridge",
+ "bridge": "cni0",
+ "isGateway": true,
+ "ipMasq": true,
+ "ipam": {
+ "type": "host-local",
+ "subnet": "10.88.0.0/16",
+ "routes": [
+ { "dst": "0.0.0.0/0" }
+ ]
+ }
+}
diff --git a/cni/98-podman-loopback.conf b/cni/98-podman-loopback.conf
new file mode 100644
index 000000000..dd6630a85
--- /dev/null
+++ b/cni/98-podman-loopback.conf
@@ -0,0 +1,4 @@
+{
+ "cniVersion": "0.2.0",
+ "type": "loopback"
+}