
basefly/keepalivedquick run with containerd:
bashnerdctl run -d --name keepalived --restart always -v /etc/keepalived/keepalived.conf:/etc/keepalived/keepalived.conf --network=host --privileged basefly/keepalived
keepalived.conf example:
json## master global_defs { router_id lb-master } vrrp_script check { ## example check, please replace it script "curl -k [***]" interval 3 timeout 9 fall 2 rise 2 } vrrp_instance VI-kube-master { state MASTER priority 120 unicast_src_ip {{.Master0}} unicast_peer { {{.Master1}} } dont_track_primary interface {{.Interface}} ## no need virtual_router_id 111 advert_int 3 track_script { check } virtual_ipaddress { {{.Vip}} } } ## backup global_defs { router_id lb-backup-{{.Master1}} } vrrp_script check { script "curl -k [***]" interval 3 timeout 9 fall 2 rise 2 } vrrp_instance VI-kube-master { state BACKUP priority 105 unicast_src_ip {{.Master1}} unicast_peer { {{.Master0}} } dont_track_primary interface {{.Interface}} ## no need virtual_router_id 111 advert_int 3 track_script { check } virtual_ipaddress { {{.Vip}} } }
Dockerfile:
bashFROM alpine RUN apk --no-cache add keepalived curl CMD rm -rf /var/run/keepalived/* && \ /usr/sbin/keepalived --dont-fork --log-console -f /etc/keepalived/keepalived.conf
build image:
bashdocker buildx build -t basefly/keepalived:v2.2.4 --platform=linux/arm64,linux/amd64 . --push


manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务