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
18 lines
440 B
Django/Jinja
18 lines
440 B
Django/Jinja
[Match]
|
|
Name=mac0
|
|
|
|
[Network]
|
|
Address={{ node_pod_cidr|ipaddr('net')|ipaddr(1)|ipaddr('address') }}/{{ node_pod_cidr|ipaddr('prefix') }}
|
|
|
|
{% for host in groups['kube-node'] %}
|
|
{% if hostvars[host]['access_ip'] is defined %}
|
|
{% if hostvars[host]['node_pod_cidr'] != node_pod_cidr %}
|
|
[Route]
|
|
Gateway={{ hostvars[host]['access_ip'] }}
|
|
Destination={{ hostvars[host]['node_pod_cidr'] }}
|
|
GatewayOnlink=yes
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|