mapletree/keepalived/keepalived.conf.tpl
2026-01-28 00:46:00 -07:00

39 lines
No EOL
606 B
Smarty

global_defs {
router_id 50
script_user root
enable_script_security
}
vrrp_script chk_traefik {
# CONTAINER PATH (Inside the mount)
script "/usr/bin/curl -f http://localhost:8080/"
interval 2
weight -5
fall 2
rise 1
}
vrrp_instance VI_1 {
state {{STATE}}
interface eth0
virtual_router_id 50
priority {{PRIORITY}}
advert_int 1
unicast_peer {
{{PEER}}
}
authentication {
auth_type PASS
auth_pass {{PASSWORD}}
}
virtual_ipaddress {
{{VIP}}
}
track_script {
chk_traefik
}
}