kubespray/roles/network_plugin/macvlan/templates/centos-postup-macvlan.cfg.j2

4 lines
170 B
Django/Jinja

{% if enable_nat_default_gateway %}
iptables -t nat -I POSTROUTING -s {{ node_pod_cidr|ipaddr('net') }} -o {{ node_default_gateway_interface }} -j MASQUERADE
{% endif %}