Skip to content

Instantly share code, notes, and snippets.

@nctiggy
Last active October 19, 2020 18:03
Show Gist options
  • Save nctiggy/e15e07a6d520c35889e6d6e0d253038c to your computer and use it in GitHub Desktop.
Save nctiggy/e15e07a6d520c35889e6d6e0d253038c to your computer and use it in GitHub Desktop.
slave2
! /etc/keepalived/keepalived.conf
! Configuration File for keepalived
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 BACKUP
interface bond0.1
virtual_router_id 151
priority 253
authentication {
auth_type PASS
auth_pass P@##D321!
}
virtual_ipaddress {
192.168.0.10/24
}
track_script {
check_apiserver
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment