{"id":17929745,"url":"https://github.com/ojford/ipvs-txt-lb","last_synced_at":"2025-03-24T04:31:06.604Z","repository":{"id":81321233,"uuid":"207373295","full_name":"OJFord/ipvs-txt-lb","owner":"OJFord","description":"IPVS load balancer sourcing servers from a TXT record","archived":false,"fork":false,"pushed_at":"2019-09-09T19:09:36.000Z","size":5,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T01:45:31.754Z","etag":null,"topics":["dns-record","ipvs","ipvsadm","load-balancer"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OJFord.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-09T18:07:49.000Z","updated_at":"2024-09-01T11:38:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d8e9244-d1ee-4f28-b782-aee8f3b752bc","html_url":"https://github.com/OJFord/ipvs-txt-lb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OJFord%2Fipvs-txt-lb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OJFord%2Fipvs-txt-lb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OJFord%2Fipvs-txt-lb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OJFord%2Fipvs-txt-lb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OJFord","download_url":"https://codeload.github.com/OJFord/ipvs-txt-lb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245210964,"owners_count":20578321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns-record","ipvs","ipvsadm","load-balancer"],"created_at":"2024-10-28T21:10:21.721Z","updated_at":"2025-03-24T04:31:06.598Z","avatar_url":"https://github.com/OJFord.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPVS-TXT-LB\n\n## What?\n\nCreate an [IPVS](https://en.wikipedia.org/wiki/IP_Virtual_Server) Load Balancer from a list of 'real servers' in a TXT record.\n\n## Why?\n\nMy 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).\n\nIn general, this could be useful in any case where:\n  * you have a set of machines on a common network\n  * each machine needs to talk to one of the others, but it doesn't matter which\n  * you don't want a separate load balancer\n  * 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)\n\n## How?\n\n1. Install `ipvsadm`\n1. Put `ipvs-txt-lb` somewhere that's in `$PATH`\n1. Put `ipvs-txt-lb.service` in `/etc/systemd/system/` and run `systemctl enable ipvs-txt-lb`\n1. Put `ipvs-txt-lb.conf` in `/etc/` and populate it\n1. Populate your `TXT` record with a `;`-delimited list of servers, e.g. `alpha;beta`\n1. Run `systemctl start ipvs-txt-lb`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojford%2Fipvs-txt-lb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fojford%2Fipvs-txt-lb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fojford%2Fipvs-txt-lb/lists"}