mirror of https://github.com/easzlab/kubeasz.git
fix 多lb节点配置文件格式错误 Issue #286
parent
e1e4524a97
commit
0fb1f7ddf3
|
@ -7,8 +7,9 @@ vrrp_instance VI-kube-master {
|
||||||
priority 110
|
priority 110
|
||||||
unicast_src_ip {{ inventory_hostname }}
|
unicast_src_ip {{ inventory_hostname }}
|
||||||
unicast_peer {
|
unicast_peer {
|
||||||
{% for h in groups['lb'] %}{% if h != inventory_hostname %}{{ h }}{% endif %}{% endfor %}
|
{% for h in groups['lb'] %}{% if h != inventory_hostname %}
|
||||||
|
{{ h }}
|
||||||
|
{% endif %}{% endfor %}
|
||||||
}
|
}
|
||||||
dont_track_primary
|
dont_track_primary
|
||||||
interface {{ LB_IF }}
|
interface {{ LB_IF }}
|
||||||
|
|
|
@ -13,8 +13,9 @@ vrrp_instance VI-kube-master {
|
||||||
priority 120
|
priority 120
|
||||||
unicast_src_ip {{ inventory_hostname }}
|
unicast_src_ip {{ inventory_hostname }}
|
||||||
unicast_peer {
|
unicast_peer {
|
||||||
{% for h in groups['lb'] %}{% if h != inventory_hostname %}{{ h }}{% endif %}{% endfor %}
|
{% for h in groups['lb'] %}{% if h != inventory_hostname %}
|
||||||
|
{{ h }}
|
||||||
|
{% endif %}{% endfor %}
|
||||||
}
|
}
|
||||||
dont_track_primary
|
dont_track_primary
|
||||||
interface {{ LB_IF }}
|
interface {{ LB_IF }}
|
||||||
|
|
Loading…
Reference in New Issue