k8s-mediaserver-operator icon indicating copy to clipboard operation
k8s-mediaserver-operator copied to clipboard

[FR] Having different PV for each tool

Open InputObject2 opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. When using the current setup, all the tools are configured directly with the same persistent volume, where the media, configs and apparently sqlite databases are created. This causes issues for some storage backends that might not be well suited to run databases, such as NFS or SMB shares.

Describe the solution you'd like I'd like to add a specific PV/PVC for each tool, in addition to the main "media" PV where all the movies and shows are stored.

Describe alternatives you've considered There is already the additional PV field under spec.general.storage.volumes but this is not really helpful to set specific mounts on specific tools.

Additional context Jackett, transmission, plex and sabnzbd seem to work as they all just rely on flat files, while sonarr and radarr run sqlite instances and rely on those.

I'm opening this issue for the discussion, I'll bring the changes (or at least the way I see them) in a PR if we define a good retro-compatible way to do this.

InputObject2 avatar Jun 07 '22 16:06 InputObject2

Any progress on this? Ive been playing around and not yet sure how to accomplish this as im really noob at this. But here are couple of ideas i am trying: Set up local volume on specific node and schedule Sonarr/Raddar on this node. Longhorn StorageClass on specific node and schedule services on that node. While keeping media on NFS.

Currently my biggest knowledge cap is how to apply changes in *-resources.yml files.

For now im unable to get Sonarr/Radarr running while conf is on NFS. Manages to do it only once.

freakadell avatar Aug 13 '22 20:08 freakadell

I didn't start, in fact I completely forgot about it. I have some ideas, I'll make a PR soon-ish with the changes, should be pretty straightforward.

InputObject2 avatar Aug 14 '22 00:08 InputObject2

@kubealex any chance of reviewing/approving this?

freakadell avatar Aug 25 '22 19:08 freakadell

Thanks a lot @InputObject2! Sorry for the late reply but I didn't have the chance to test it. Expect a merge in the next hours or so 👍👍

kubealex avatar Aug 25 '22 20:08 kubealex

@InputObject2 did you have the chance to review the PR comments I made?

kubealex avatar Sep 17 '22 10:09 kubealex

Merged!

kubealex avatar Nov 26 '22 15:11 kubealex