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

Option to deploy server as StatefulSet #163

Closed
wants to merge 1 commit into from

Conversation

FroznMine
Copy link

Some time ago #84 proposed to have the Minecraft servers deployed as StatefulSets. Due to possible problems with servers becoming too 'sticky' the idea was discarded. As I want to use this chart in conjunction with the auto-scale-up of mc-router, I need to deploy as a StatefulSet.

This PR adds workloadAsStatefulSet as a flag to deploy the servers (Java/Bedrock) as Deployment or StatefulSet. When deploying as a StatefulSet with persistence enabled, a PVC template is configured using the information that would have been used to create a single PVC in case of a Deployment.

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.

Thanks! It's very nice to have statefulset as an option. It'll just need the minor/middle chart version bumped for both.

Just to double check, have you tested out both enabled/disabled modes?

@danielr1996
Copy link
Contributor

Any progress on this? Is there only the version that needs to be bumped or are there more things to do?

Also I was wondering if there are reasons to choose a deployment over a statefulset, or if it would be fine to only ever use a statefulset because this would mean a lot less to maintain.

@itzg
Copy link
Owner

itzg commented Sep 23, 2023

Yes it looks like just the version bump and confirmation of testing enabled and disabled.

@danielr1996
Copy link
Contributor

I've opened a new PR #172 with the bumped version, can verify that it creates a deployment or statefulset, depending on the setting.

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.

3 participants