Skip to content

Instantly share code, notes, and snippets.

@eddienko
Created July 22, 2021 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddienko/040d47ae6bb94d3e063c9b52caf598cc to your computer and use it in GitHub Desktop.
Save eddienko/040d47ae6bb94d3e063c9b52caf598cc to your computer and use it in GitHub Desktop.
global_defs {
router_id LVS_DEVEL
}
vrrp_script check_apiserver {
script "/etc/keepalived/check_apiserver.sh"
interval 3
weight -2
fall 10
rise 2
}
vrrp_instance VI_1 {
state MASTER
interface em1
virtual_router_id 51
priority 255
authentication {
auth_type PASS
auth_pass 42
}
virtual_ipaddress {
xxx.xxx.xx.xx/24
}
track_script {
check_apiserver
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment