To use Multus with a single primary CNI plugin (the default network), use the clusterNetwork option. This option is mutually exclusive with delegates.
Configuration Requirements:
- You must set
clusterNetwork if you are not using delegates. - You can optionally set
defaultNetworks to specify additional NetworkAttachmentDefinition names that should be automatically attached to every pod.
Resolving clusterNetwork and defaultNetworks values:
Multus resolves the strings provided in these fields in the following order:
- A
NetworkAttachmentDefinition custom resource name in the namespace defined by multusNamespace. - The
name key within a CNI JSON configuration file located in the confDir. - An absolute file path to a CNI configuration file.
- A path to a directory containing CNI JSON files (the alphabetically first file is used).
If no match is found, Multus will raise an error.
{
"cniVersion": "0.3.1",
"name": "node-cni-network",
"type": "multus",
"kubeconfig": "/etc/kubernetes/node-kubeconfig.yaml",
"confDir": "/etc/cni/multus/net.d",
"cniDir": "/var/lib/cni/multus",
"binDir": "/opt/cni/bin",
"logFile": "/var/log/multus.log",
"logLevel": "debug",
"logOptions": {
"maxAge": 5,
"maxSize": 100,
"maxBackups": 5,
"compress": true
},
"capabilities": {
"portMappings": true
},
"namespaceIsolation": false,
"clusterNetwork": "/etc/cni/net.d/99-flannel.conf",
"defaultNetworks": ["sidecarCRD", "exampleNetwork"],
"systemNamespaces": ["kube-system", "admin"],
"multusNamespace": "kube-system",
"auxiliaryCNIChainName": "cni-chain-config",
"retryDeleteOnError": false
}