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

support init container/runtime container split for k8s deployment #3295

Open
RonnyPfannschmidt opened this issue Feb 4, 2025 · 1 comment

Comments

@RonnyPfannschmidt
Copy link

Enhancement Type

Improve an existing feature

Describe the enhancement

k8s support modes of operation for a "pod" where one container acts as init container and does prep work to then have the actual containers take over running of the service

i believe it would be really nice to have that option by enabling to run either just the mod downloader/updater or to run only the server itself

this might also be a nice starting point for a mode of operation where one wants to build a image that contains the mods/datapacks to use so that downloading/plugin updating could be part of a CD pipeline while the deployment only ever would run the server

@itzg
Copy link
Owner

itzg commented Feb 4, 2025

It's an interesting idea, but I will need to think more about the general feasibility since the final Java process invocation is derived from the setup prior to it. I'm thinking server type, selected version, entry jar file name, and even more so the dynamic nature of a modpack declaring those aspects.

In the meantime, you can always the split steps somewhat by using setup only mode for init

https://docker-minecraft-server.readthedocs.io/en/latest/configuration/misc-options/#setup-only

and then use the generated command line invocation for the server itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants