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

5 lines
171 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 %}