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
6 lines
228 B
Django/Jinja
6 lines
228 B
Django/Jinja
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/bash -c "iptables -t nat -I POSTROUTING -s {{ node_pod_cidr|ipaddr('net') }} -o {{ node_default_gateway_interface }} -j MASQUERADE"
|
|
|
|
[Install]
|
|
WantedBy=sys-subsystem-net-devices-mac0.device
|