Incorporate jellonek's comments.

This commit is contained in:
Tomofumi Hayashi 2018-07-06 13:17:22 +09:00
parent 6da1cb7876
commit 3b3622db67

View File

@ -38,16 +38,17 @@ static IPAM is very simple IPAM plugin that assigns IPv4 and IPv6 addresses stat
## Network configuration reference ## Network configuration reference
* `type` (string, required): "static" * `type` (string, required): "static"
* `addresses` (array, optional): an array of arrays of ip address objects: * `addresses` (array, optional): an array of ip address objects:
* `address` (string, required): CIDR notation IP address. * `address` (string, required): CIDR notation IP address.
* `gateway` (string, optional): IP inside of "subnet" to designate as the gateway. * `gateway` (string, optional): IP inside of "subnet" to designate as the gateway.
* `routes` (string, optional): list of routes add to the container namespace. Each route is a dictionary with "dst" and optional "gw" fields. If "gw" is omitted, value of "gateway" will be used. * `routes` (string, optional): list of routes add to the container namespace. Each route is a dictionary with "dst" and optional "gw" fields. If "gw" is omitted, value of "gateway" will be used.
* `dns` (string, optional): the dictionary with "nameservers", "domain" and "search". * `dns` (string, optional): the dictionary with "nameservers", "domain" and "search".
## Supported arguments ## Supported arguments
The following [CNI_ARGS](https://github.com/containernetworking/cni/blob/master/SPEC.md#parameters) are supported: The following [CNI_ARGS](https://github.com/containernetworking/cni/blob/master/SPEC.md#parameters) are supported:
* `IP`: request a specific IP address from a subnet * `IP`: request a specific IP address
* `SUBNET`: request a specific subnet * `SUBNET`: request a specific subnet
* `GATEWAY`: request a specific gateway address * `GATEWAY`: request a specific gateway address