32 Commits

Author SHA1 Message Date
Gabe Rosenhouse
f15d521b2a docs: table formatting is hard 2017-02-27 07:57:00 -08:00
Gabe Rosenhouse
5124ac4759 docs: fill-out and correct version conversion table 2017-02-27 07:53:09 -08:00
Gabe Rosenhouse
2aa863dab7 docs: minor improvements to spec-upgrades 2017-02-27 07:17:37 -08:00
Casey Callendrello
1061ef1eb9 docs: add small upgrade instructions 2017-02-27 14:57:31 +01:00
Casey Callendrello
bdd70561ad docs: minor improvements to 0.3.0 upgrade guidance 2017-02-27 14:27:56 +01:00
Gabe Rosenhouse
5b6d955695 docs: Edits to v0.3.0 upgrade guidance 2017-02-26 16:53:52 -08:00
Dan Williams
f658c0b4b3 docs: CNI versioning for 0.3.0 upgrade 2017-02-26 13:26:14 -08:00
Gabe Rosenhouse
98eb0d93a1 docs: consolidate host-local documentation
- remove the README.md in the plugins/ipam/host-local (no other plugin
  has this)
- merge that info into the main Documentation/host-local.md
2017-02-15 15:20:13 -08:00
Casey Callendrello
cd16252299 ipam/host-local: add ResolvConf argument for DNS configuration
This adds the option `resolvConf` to the host-local IPAM configuration.
If specified, the plugin will try to parse the file as a resolv.conf(5)
type file and return it in the DNS response.
2017-01-11 18:48:35 +01:00
Mark St.Godard
475581873d flannel: rename stateDir to dataDir
Rename StateDir to DataDir for flannel CNI plugin
2016-11-17 15:54:29 -06:00
Mark St.Godard
ffbf708406 flannel: update flannel documentation
add optional 'stateDir' to flannel docs
2016-11-09 09:34:35 -06:00
Kuralamudhan Ramakrishnan
17b2a6d5e2 Update ipvlan.md
invalid json format
2016-10-23 23:18:44 +01:00
Dan Peterson
0ee270c769 docs/ptp: fix markdown formatting 2016-10-09 21:22:27 -03:00
Tom Denham
787d59ab5d Merge pull request #267 from rosenhouse/version-cmd
Adds VERSION command
2016-08-12 15:06:22 -07:00
Lukasz Zajaczkowski
08529639f4 documentation: add description for forceAddress parameter 2016-08-02 07:33:44 +02:00
Gabe Rosenhouse
04fbde4ce8 docs: fix tuning doc, correct the result json
it does not report the version, it never did
2016-07-21 13:06:05 -07:00
Stefan Junker
8814631f80 bridge: add isDefaultGateway field
When isDefaultGateway is true it automatically sets isGateway to true.
The default route will be added via the (bridge's) gateway IP.
If a default gateway has been configured via IPAM in the same
configuration file, the plugin will error out.
2016-05-21 00:38:42 +02:00
Stefan Junker
0bd4bafcda Merge pull request #175. 2016-05-19 12:08:41 +02:00
Minhan Xia
5de15979c6 plugins/bridge: add support to set hairpin mode 2016-05-19 12:06:37 +02:00
Stefan Junker
b34210aa1c *: appc/cni -> containernetworking/cni
The project has been moved so internally we simply rename everything.
Consumers are recommended to update their vendored version of cni.
2016-05-19 12:06:36 +02:00
Stefan Junker
680d1f6ec2 *: appc/cni -> containernetworking/cni
The project has been moved so internally we simply rename everything.
Consumers are recommended to update their vendored version of cni.
2016-05-06 16:40:27 +02:00
Alban Crequy
0b6ad716e8 new plugin: tuning
Allow users to tune net network parameters such as somaxconn.

With this patch, users can add a new network configuration:

> {
>   "name": "mytuning",
>   "type": "tuning",
>   "sysctl": {
>           "net.core.somaxconn": "500"
>   }
> }

The value /proc/sys/net/core/somaxconn will be set to 500 in the network
namespace but will remain unchanged on the host.

Only sysctl parameters that belong to the network subsystem can be
modified.

Related to: https://github.com/coreos/rkt/pull/2140
2016-02-18 15:29:12 +01:00
Stefan Junker
c7db40fb4c docs/ptp: update example and DNS description 2016-01-29 10:39:28 +01:00
Alban Crequy
cf3c027960 *: add "dns" field to the configuration
appc/cni#76 added a "dns" field in the result JSON. But before this
patch, the plugins had no way of knowing which name server to return.

There could be two ways of knowing which name server to return:
1. add it as an extra argument ("CNI_ARGS")
2. add it in the network configuration as a convenience (received via
   stdin)

I chose the second way because it is easier. In the case of rkt, it
means the user could just add the DNS name servers in
/etc/rkt/net.d/mynetwork.conf.
2016-01-26 18:54:56 +01:00
Eugene Yakubovich
dd719a43ce flannel: doc fix and check for missing subnet.env fields
- Document that flannel outputs FLANNEL_NETWORK b/c we use it
- Check and error out if expecited fields are missing in subnetEnv file

Fixes #72
2015-10-07 15:38:12 -07:00
Stefan Junker
4c57a90da6 update ptp docs to reflect changes in plugin 2015-09-24 09:43:55 +02:00
Stefan Junker
a75401a13b host-local: allow ip request via CNI_ARGS
A specific IP can now be requested via the environment variable CNI_ARGS, e.g.
`CNI_ARGS=ip=1.2.3.4`.
The plugin will try to reserve the specified IP.
If this is not successful the execution will fail.
2015-09-04 01:38:22 +02:00
Alex Chan
a41e1a699e Fix a few spelling mistakes in the docs 2015-08-20 16:41:25 +01:00
Eugene Yakubovich
77a2e9727c Merge pull request #34 from eyakubovich/document-plugins
Document the plugins
2015-07-22 09:02:39 -07:00
Eugene Yakubovich
f741bc324b Rename veth plugin to ptp and add docs.
ptp (point-to-point) better describes the nature of the plugin
as veth pairs are also used by the bridge plugin.
2015-07-21 17:20:11 -07:00
Eugene Yakubovich
507805f8c4 Document the plugins
Adds a .md file to the Documentation/ folder for each plugin.

Fixes #16
2015-07-21 17:19:18 -07:00
Eugene Yakubovich
58f6bc9c8b add flannel plugin
This introduces a notion of a "meta" plugin. A meta plugin
is one that delegates the actual work of setting up the interface
to the main plugin. The meta plugin is used to select and dynamically
configure the main plugin. The sequence of events, is as follows:

Given netconf like:

    {
	"name": "mynet",
	"type": "flannel",
	"delegate": {
	    "type": "bridge"
	}
    }

flannel fills in values like "mtu", "ipam.subnet" and delegates to
"bridge" main plugin. "bridge" plugin will operate as usual, calling
into ipam module for IP assignment.

Delegate dictionary should not contain "name" field as it will be
filled in by the flannel plugin.
2015-06-11 15:37:58 -07:00