при перестороении MASTER-SLAVE не удаляет VIP с BACKUP машины
пишу конфиг keepalived:
global_defs {
router_id your_hostname
vrrp_version 2
vrrp_garp_master_delay 1
vrrp_garp_master_refresh 2
#Uncomment the next line if you'd like to use unique multicast groups
}
vrrp_instance lb-vips {
state BACKUP
interface {{INTERFACE}}
virtual_router_id {{VRID}}
priority 100
advert_int 1
nopreempt
track_script {
chk_haproxy
}
authentication {
auth_type PASS
auth_pass blahblah
}
virtual_ipaddress {
{{VIRTUAL_IP}}/{{VIRTUAL_MASK}} dev {{INTERFACE}}
}
}
docker run --net=host --cap-add=NET_ADMIN -e VIRTUAL_IP=10.0.6.17 -e VIRTUAL_MASK=24 -e VRID=199 -e INTERFACE=enp2s0 -d 55fd8d3f4139
:
: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 74:27:ea:db:bd:04 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.31/21 brd 10.0.7.255 scope global enp2s0
valid_lft forever preferred_lft forever
inet 10.0.6.17/24 scope global enp2s0
valid_lft forever preferred_lft forever
inet6 2a00:1700:0:1:7627:eaff:fedb:bd04/64 scope global mngtmpaddr dynamic
valid_lft 2591831sec preferred_lft 604631sec
inet6 fe80::7627:eaff:fedb:bd04/64 scope link
valid_lft forever preferred_lft forever
останавливаю докер:
docker stop 55fd8d3f4139
VIP на месте
docker kill -s TERM 55fd8d3f4139......
Удалять руками ну совсем не вариант)