c12s-kubespray/roles/network_plugin/macvlan/templates/centos-routes-macvlan.cfg.j2

8 lines
259 B
Text
Raw Normal View History

{% for host in groups['kube-node'] %}
{% if hostvars[host]['access_ip'] is defined %}
{% if hostvars[host]['node_pod_cidr'] != node_pod_cidr %}
{{ hostvars[host]['node_pod_cidr'] }} via {{ hostvars[host]['access_ip'] }}
{% endif %}
{% endif %}
{% endfor %}