Update KPAVD-VM-1.conf
This commit is contained in:
parent
afba96d7d3
commit
76fe30e7c3
@ -1,20 +1,20 @@
|
|||||||
vrrp_script track_npm {
|
vrrp_script track_npm {
|
||||||
script "/etc/keepalived/check_docker_container.sh <name_of_your_container>"
|
script "/path/to/check_docker_container.sh <name_of_your_container>"
|
||||||
interval 5
|
interval 5
|
||||||
fall 1
|
fall 1
|
||||||
rise 30
|
rise 30
|
||||||
}
|
}
|
||||||
|
|
||||||
vrrp_instance NPM-V1 {
|
vrrp_instance <YOUR_MASTER_INSTANCE> {
|
||||||
state MASTER
|
state MASTER
|
||||||
interface eth0
|
interface eth0
|
||||||
virtual_router_id 40
|
virtual_router_id 40
|
||||||
priority 100
|
priority 100
|
||||||
advert_int 1
|
advert_int 1
|
||||||
|
|
||||||
unicast_src_ip <NODE_IP>
|
unicast_src_ip <MASTER_NODE_IP>
|
||||||
unicast_peer {
|
unicast_peer {
|
||||||
<PEER_IP>
|
<>
|
||||||
}
|
}
|
||||||
|
|
||||||
authentication {
|
authentication {
|
||||||
@ -23,7 +23,7 @@ vrrp_instance NPM-V1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual_ipaddress {
|
virtual_ipaddress {
|
||||||
<VIRTUAL_IP>/<SUBNETMASK>
|
<VIP>/<MASK>
|
||||||
}
|
}
|
||||||
|
|
||||||
track_script {
|
track_script {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user