voipp
voipp

Reputation: 1461

Why do i need keepalived in kubernetes?

I have got a Kubernetes cluster with nginx installed. Nginx makes K8s fault tolerant. In case of a K8s component failure, the standby one will be taken.

So what is the point of keepalived?

Upvotes: 0

Views: 120

Answers (2)

Duru Cynthia Udoka
Duru Cynthia Udoka

Reputation: 787

One thing you might need to consider is that they both are performing similar functions. Both NGINX and Keepalived provide similar functionality in terms of failover, but at different layers.

While NGINX handles application-level failover and load balancing, Keepalived manages network-level failover with a Virtual IP (VIP).

In a setup where both are used, they might overlap, but Keepalived is more focused on the availability of the IP address, while NGINX ensures smooth traffic routing at the application layer. If you're already using NGINX effectively for fault tolerance, Keepalived might be redundant unless you specifically need the network-level failover.

Together, I believe they provide both network and application-level fault tolerance.

Upvotes: 0

ralphyjade
ralphyjade

Reputation: 197

Keepalived has three components that supports active-passive high-availability setup which are:

  • The daemon for Linux servers.

  • Ensuring services remain online even in the event of server failures by implementing Virtual Router Redundancy Protocol (VRRP) wherein backup node listens for VRRP advertisement packets from the primary node, if it does not receive, the backup node takes over as primary and assigns the configured VIPs to itself.

  • Configured number of health-checks for primary node failures keepalived reassigns virtual IP address from primary node to passive node.

The main goal of this project is to provide simple and robust facilities for load balancing and high-availability Linux based infrastructures.

Upvotes: 1

Related Questions