From a031b83a09a8628435317a03f199cdc18b78262f Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 1 Nov 2017 11:24:59 -0400 Subject: Initial checkin from CRI-O repo Signed-off-by: Matthew Heon --- contrib/cni/10-crio-bridge.conf | 15 +++++++++++++++ contrib/cni/99-loopback.conf | 4 ++++ contrib/cni/README.md | 16 ++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 contrib/cni/10-crio-bridge.conf create mode 100644 contrib/cni/99-loopback.conf create mode 100644 contrib/cni/README.md (limited to 'contrib/cni') 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 -- cgit v1.2.3-54-g00ecf