Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

aapjeisbaas
Copy link
Contributor

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.

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks.

@itzg itzg merged commit 5dc576f into itzg:master Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants