f599c2a691
* add macvlan cni to kubespray * macvlan: lint yaml files and fix sample config file * macvlan: add OWNERS file * add macvlan to README * macvlan : CI first shoot * macvlan : CI add full masquerade * delegate retrive pod cidr to master only * macvlan: add config for CI * macvlan: add netchecker deployment
15 lines
341 B
Django/Jinja
15 lines
341 B
Django/Jinja
{
|
|
"cniVersion": "0.3.0",
|
|
"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') }}"
|
|
}
|
|
}
|