2021-04-29 20:20:50 +08:00
|
|
|
{% for host in groups['kube_node'] %}
|
2019-06-28 15:35:38 +08:00
|
|
|
{% 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 %}
|