Skip to content

Instantly share code, notes, and snippets.

@nctiggy
Created October 19, 2020 17:24
Show Gist options
  • Save nctiggy/8140a95db69a04a8e2f0b4ef587edcba to your computer and use it in GitHub Desktop.
Save nctiggy/8140a95db69a04a8e2f0b4ef587edcba to your computer and use it in GitHub Desktop.
Master Node
! /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 MASTER
interface bond0.1
virtual_router_id 151
priority 255
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