aboutsummaryrefslogtreecommitdiff
path: root/contrib/cni
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-01 11:24:59 -0400
committerMatthew Heon <matthew.heon@gmail.com>2017-11-01 11:24:59 -0400
commita031b83a09a8628435317a03f199cdc18b78262f (patch)
treebc017a96769ce6de33745b8b0b1304ccf38e9df0 /contrib/cni
parent2b74391cd5281f6fdf391ff8ad50fd1490f6bf89 (diff)
downloadpodman-a031b83a09a8628435317a03f199cdc18b78262f.tar.gz
podman-a031b83a09a8628435317a03f199cdc18b78262f.tar.bz2
podman-a031b83a09a8628435317a03f199cdc18b78262f.zip
Initial checkin from CRI-O repo
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'contrib/cni')
-rw-r--r--contrib/cni/10-crio-bridge.conf15
-rw-r--r--contrib/cni/99-loopback.conf4
-rw-r--r--contrib/cni/README.md16
3 files changed, 35 insertions, 0 deletions
diff --git a/contrib/cni/10-crio-bridge.conf b/contrib/cni/10-crio-bridge.conf
new file mode 100644
index 000000000..27f0ddfec
--- /dev/null
+++ b/contrib/cni/10-crio-bridge.conf
@@ -0,0 +1,15 @@
+{
+ "cniVersion": "0.2.0",
+ "name": "crio-bridge",
+ "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/contrib/cni/99-loopback.conf b/contrib/cni/99-loopback.conf
new file mode 100644
index 000000000..dd6630a85
--- /dev/null
+++ b/contrib/cni/99-loopback.conf
@@ -0,0 +1,4 @@
+{
+ "cniVersion": "0.2.0",
+ "type": "loopback"
+}
diff --git a/contrib/cni/README.md b/contrib/cni/README.md
new file mode 100644
index 000000000..78e22fd36
--- /dev/null
+++ b/contrib/cni/README.md
@@ -0,0 +1,16 @@
+## `contrib/cni` ##
+
+There are a wide variety of different [CNI][cni] network configurations. This
+directory just contains some example configurations that can be used as the
+basis for your own configurations (distributions should package these files in
+example directories).
+
+To use these configurations, place them in `/etc/cni/net.d` (or the directory
+specified by `crio.network.network_dir` in your `crio.conf`).
+
+In addition, you need to install the [CNI plugins][cni] necessary into
+`/opt/cni/bin` (or the directory specified by `crio.network.plugin_dir`). The
+two plugins necessary for the example CNI configurations are `loopback` and
+`bridge`.
+
+[cni]: https://github.com/containernetworking/plugins