Update KPAVD-VM-1.conf

This commit is contained in:
YuruC3 2024-01-27 19:03:25 +01:00 committed by GitHub
parent afba96d7d3
commit 76fe30e7c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {