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

4 lines
170 B
Django/Jinja

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