2019-06-28 15:35:38 +08:00
|
|
|
{
|
2020-05-07 02:13:09 +08:00
|
|
|
"cniVersion": "0.4.0",
|
2019-06-28 15:35:38 +08:00
|
|
|
"name": "mynet",
|
|
|
|
"type": "macvlan",
|
|
|
|
"master": "{{ macvlan_interface }}",
|
|
|
|
"hairpinMode": true,
|
|
|
|
"ipam": {
|
|
|
|
"type": "host-local",
|
|
|
|
"subnet": "{{ node_pod_cidr }}",
|
|
|
|
"routes": [
|
|
|
|
{ "dst": "0.0.0.0/0" }
|
|
|
|
],
|
|
|
|
"gateway": "{{ node_pod_cidr|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
|
|
|
|
}
|
|
|
|
}
|