DEV Community

Cover image for How to setup simple load balancing with IPVS, demo with docker.

How to setup simple load balancing with IPVS, demo with docker.

Douglas Makey Mendez Molero on April 06, 2020

A few days ago, I was reading about the Kubernetes network model, especially about services and the kube-proxy component, and I discovered that kub...
Collapse
 
scyto profile image
scyto

Hi, I am a little confused when to use this vs keepalived running in a docker.

Collapse
 
douglasmakey profile image
Douglas Makey Mendez Molero • Edited

Hi @scyto, IPVS is just a load balancer and keepalived provides loadbalancing and high-availability.

loadbalancing is achived by IPVS under the hood

high-availability is achieved by VRRP protocol "Router Redundancy" allow you to have fault tolerance.

Collapse
 
kaynaat007 profile image
Nikhil Kumar

Hi
when a node goes down, how does IPVS know ? and how does it route traffic to back to it once it comes back ?