this post was submitted on 08 Oct 2025
57 points (89.0% liked)

Selfhosted

52168 readers
628 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I've been kicking around the idea of running a server for games and chat woth some of my friends, but worry about everyone getting cut off when there's a disruption.

I've started looking into kubernetes out of curiosity, and it seems like we could potentially set up a cluster with master nodes at 3+ locations to hose whatever game server or chat server that we want with 100% uptime, solving my concerns.

Am I misunderstanding the kubernetes documentation, and this is just a terrible idea? Or am I on the right track?

you are viewing a single comment's thread
view the rest of the comments
[–] NowThatsWhatICallDadRock@slrpnk.net 5 points 2 days ago (1 children)

That would be a load balancer but is not integral to the working of kubernetes. I wouldn't consider kubernetes unless you have a need for autoscaling. It's a lot of overhead for such a limited use case.

You can front any three un-clustered nodes with a load balancer to the same effect

[–] mnemonicmonkeys@sh.itjust.works 1 points 2 days ago (1 children)

You can front any three un-clustered nodes with a load balancer to the same effect

Good to hear. Are there specific example you could point me to? I'd like to learn more

[–] NowThatsWhatICallDadRock@slrpnk.net 3 points 2 days ago* (last edited 2 days ago)

https://www.cloudflare.com/learning/performance/what-is-load-balancing/

https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/

I would start here. Most off the shelf proxies can do it. Once set up you'll just have your friends connect to the load balancer either via IP or dns hostname. For anything behind a residential connection I would recommend either tunneling out or setting up ddns (dynamic dns) as the IPs can change every few days. Take a look at load balancing strategies as well

For the game server you'll probably want failover instead, which most proxies can also provide. This is because a load balancer could route everyone to different instances. I would set up save syncs between the three nodes so that if your primary instance becomes unhealthy you can simply reconnect to the same address and the proxy will route you to the secondary node. Obviously requires healthchecks. When the primary node becomes healthy again new connections will be initiated there.

Both of these introduce latency because you are adding a network hop though. You could also look into dns failover (direct to each node) to avoid this