Skip to content

Instantly share code, notes, and snippets.

@tychota
Created April 18, 2018 17:49
Show Gist options
  • Save tychota/74ed43c71922d129ae0e379fa4cea412 to your computer and use it in GitHub Desktop.
Save tychota/74ed43c71922d129ae0e379fa4cea412 to your computer and use it in GitHub Desktop.
Keepalived
! Configuration File for keepalived
global_defs {
router_id LVS_DEVEL
}
vrrp_script check_apiserver {
// ...
}
vrrp_instance VI_1 {
state MASTER
interface wg0
virtual_router_id 51
priority 101
authentication {
auth_type PASS
auth_pass redacted
}
virtual_ipaddress {
78.47.redacted dev eth0
10.0.1.100 dev wg0
}
}
! Configuration File for keepalived
global_defs {
router_id LVS_DEVEL
}
vrrp_script check_apiserver {
// ...
}
vrrp_instance VI_1 {
state MASTER
interface wg0
virtual_router_id 51
priority 101
authentication {
auth_type PASS
auth_pass redacted
}
unicast_src_ip 10.0.1.1
unicast_peer {
10.0.1.2
10.0.1.3
}
virtual_ipaddress {
78.47.redacted dev eth0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment