mirror of https://github.com/easzlab/kubeasz.git
fix keepalived使用单播发送vrrp报文,以兼容公有云上自建LB
parent
494c810df6
commit
6afcd95814
|
@ -5,6 +5,11 @@ global_defs {
|
||||||
vrrp_instance VI-kube-master {
|
vrrp_instance VI-kube-master {
|
||||||
state BACKUP
|
state BACKUP
|
||||||
priority 110
|
priority 110
|
||||||
|
unicast_src_ip {{ inventory_hostname }}
|
||||||
|
unicast_peer {
|
||||||
|
{% for h in groups['lb'] %}{% if h != inventory_hostname %}{{ h }}{% endif %}{% endfor %}
|
||||||
|
|
||||||
|
}
|
||||||
dont_track_primary
|
dont_track_primary
|
||||||
interface {{ LB_IF }}
|
interface {{ LB_IF }}
|
||||||
virtual_router_id {{ ROUTER_ID }}
|
virtual_router_id {{ ROUTER_ID }}
|
||||||
|
|
|
@ -11,6 +11,11 @@ vrrp_script check-haproxy {
|
||||||
vrrp_instance VI-kube-master {
|
vrrp_instance VI-kube-master {
|
||||||
state MASTER
|
state MASTER
|
||||||
priority 120
|
priority 120
|
||||||
|
unicast_src_ip {{ inventory_hostname }}
|
||||||
|
unicast_peer {
|
||||||
|
{% for h in groups['lb'] %}{% if h != inventory_hostname %}{{ h }}{% endif %}{% endfor %}
|
||||||
|
|
||||||
|
}
|
||||||
dont_track_primary
|
dont_track_primary
|
||||||
interface {{ LB_IF }}
|
interface {{ LB_IF }}
|
||||||
virtual_router_id {{ ROUTER_ID }}
|
virtual_router_id {{ ROUTER_ID }}
|
||||||
|
|
Loading…
Reference in New Issue