itzg / mc-router

Routes Minecraft client connections to backend servers based upon the requested server address
MIT License
505 stars 34 forks source link

auto scale up and down with many named backends in k8s #270

Closed aapjeisbaas closed 4 months ago

aapjeisbaas commented 4 months ago

I created a cron job to scale down empty servers. There is room for improvement but it runs stable and that's the most important thing I guess.

This YAML is an example and is not intended to be directly applied. It consists of 3 parts

  1. the mc-router with service account and service
  2. the shutdown cronjob with service account
  3. the actual minecraft server with service and storage

Part 3 is the only part you need to replicate for the number of servers you want.