[npwg] Prototype for default network, addresses #2

This commit is contained in:
dougbtv
2018-03-13 11:51:48 -04:00
parent ea9e630f1b
commit dc111cbdac
2 changed files with 49 additions and 3 deletions

View File

@@ -451,6 +451,23 @@ Given the following network configuration:
EOF
```
### Further options for CNI configuration file.
One may also specify `always_use_default` as a boolean value. This option requires that you're using the CRD method (and therefore requires that you must also specify both the `kubeconfig` and the `delegates` option as well, or Multus will present an error message). In the case that `always_use_default` is true, the `delegates` network will always be applied, along with those specified in the annotations.
For example, a valid configuration using the `always_use_default` may look like:
```
{
"name": "multus-cni-network",
"type": "multus",
"delegates": [{"type": "flannel", "isDefaultGateway": true, "masterplugin": true}],
"always_use_default": true,
"kubeconfig": "/etc/kubernetes/kubelet.conf"
}
```
## Testing the Multus CNI ##
### Multiple Flannel Network
Github user [YYGCui](https://github.com/YYGCui) has used Multiple flannel network to work with Multus CNI plugin. Please refer this [closed issue](https://github.com/Intel-Corp/multus-cni/issues/7) for Multiple overlay network support with Multus CNI.