Skip to main content
⎈K8sCalc
networking

What is Keepalived?

A Linux tool providing high-availability via VRRP (Virtual Router Redundancy Protocol). In Kubernetes bare-metal setups, Keepalived creates a Virtual IP shared between load balancer nodes for failover.

Keepalived explained

How it works. Keepalived implements VRRP: two or more nodes agree on a master that holds a virtual IP; if the master stops sending advertisements (or a health-check script fails), a backup takes over the IP within seconds.

In practice. The classic pairing is two HAProxy nodes with Keepalived in front of a Kubernetes control plane. On clouds that don't let VRRP move IPs by itself, a notify script calls the provider's API — on Hetzner, to reassign a Floating IP to the new master.

Common pitfalls. Both nodes becoming master (split brain) when VRRP packets are blocked; health-check scripts that don't actually check HAProxy; forgetting that a cloud network may need API calls, not just ARP.

Related tool

K8s Cluster Cost

Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.

Related Calculators

Related Generators

Related Comparisons

Related Terms