Last active
October 19, 2020 18:03
-
-
Save nctiggy/e15e07a6d520c35889e6d6e0d253038c to your computer and use it in GitHub Desktop.
slave2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! /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