Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

IPVS load balancer sourcing servers from a TXT record

License

NotificationsYou must be signed in to change notification settings

OJFord/ipvs-txt-lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

Create anIPVS Load Balancer from a list of 'real servers' in a TXT record.

Why?

My initial motivation is for a Kubernetes control plane - and not use an external load balancer for the API servers, which means they can stay behind a firewall and not on the public internet, and no separate load balancing server is required; they just need to be able to make a DNS query to obtain a list of peers (to whom they already have access over a private network).

In general, this could be useful in any case where:

  • you have a set of machines on a common network
  • each machine needs to talk to one of the others, but it doesn't matter which
  • you don't want a separate load balancer
  • you can query a DNS record from the machines, and keep it up to date with the machine list from outside (e.g. CI/CD)

How?

  1. Installipvsadm
  2. Putipvs-txt-lb somewhere that's in$PATH
  3. Putipvs-txt-lb.service in/etc/systemd/system/ and runsystemctl enable ipvs-txt-lb
  4. Putipvs-txt-lb.conf in/etc/ and populate it
  5. Populate yourTXT record with a;-delimited list of servers, e.g.alpha;beta
  6. Runsystemctl start ipvs-txt-lb

About

IPVS load balancer sourcing servers from a TXT record

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp