2016-12-24 00:13:11 +00:00
|
|
|
## `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
|
2017-08-15 02:48:39 +00:00
|
|
|
basis for your own configurations (distributions should package these files in
|
2016-12-24 00:13:11 +00:00
|
|
|
example directories).
|
|
|
|
|
|
|
|
To use these configurations, place them in `/etc/cni/net.d` (or the directory
|
2017-05-12 13:36:15 +00:00
|
|
|
specified by `crio.network.network_dir` in your `crio.conf`).
|
2016-12-24 00:13:11 +00:00
|
|
|
|
|
|
|
In addition, you need to install the [CNI plugins][cni] necessary into
|
2017-05-12 13:36:15 +00:00
|
|
|
`/opt/cni/bin` (or the directory specified by `crio.network.plugin_dir`). The
|
2016-12-24 00:13:11 +00:00
|
|
|
two plugins necessary for the example CNI configurations are `loopback` and
|
|
|
|
`bridge`.
|
|
|
|
|
2017-06-12 21:14:35 +00:00
|
|
|
[cni]: https://github.com/containernetworking/plugins
|