mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-11-29 00:33:02 +00:00
30 lines
578 B
Django/Jinja
30 lines
578 B
Django/Jinja
! /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 eth0
|
|
virtual_router_id 51
|
|
priority 101
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass {{ lookup('password', 'secrets/kubeadm/keepalived/auth_pass length=64') }}
|
|
}
|
|
virtual_ipaddress {
|
|
10.0.75.80/24
|
|
}
|
|
track_script {
|
|
check_apiserver
|
|
}
|
|
}
|