Integrate rclone mount for Plex Storage?
Closed this issue ยท 7 comments
Ever thought of implementing rclone in the image?
https://rclone.org/commands/rclone_mount/
This would enable an unlimited storage backend (e.g. Google Drive)
IT would also release the need for cumbersome NFS shares.
Hi @Nornode
Thanks for creating an issue about rclone. I agree that there is a need for potentially using rclone considering there's a lot of users out there who use Cloud Storage backends for their media. I don't necessarily think it should be part of kube-plex but I think a separate rclone pod might help in this case. It could run side by side with kube-plex along with kube-plex reading the PVC directory for rclone.
I've had the idea for a while now and will look to get a PoC written soon.
My Pleasure! - Thanks for working on this!
Yeah, pod side-by-side is probably the better way to implement it.
If there's any base/draft on this I'd be happy to help improve it.
My Pleasure! - Thanks for working on this!
Yeah, pod side-by-side is probably the better way to implement it.
If there's any base/draft on this I'd be happy to help improve it.
Hey @Nornode,
I've just published my kube-rclone repository solution for Kubernetes - https://github.com/zee-ahmed/kube-rclone
It's still very fresh so there's some work to be done for it to be compatible across several services (not just Plex itself) ๐
A PR needs to be done on kube-plex side to support rclone but if you want to give it a go, you'll just need to mount the rclone remote volume into the Plex pod and then recycle the existing pod for it to take effect. I will look at getting a PR submitted soon for additionalVolumes
or similar.
Cheers.
I will look at getting a PR submitted soon for
additionalVolumes
or similar.
I just started to extend the chart to mount additional pvc to the pms container.
It could be more flexible to allow also for container volumes.
Check it out here: https://github.com/msenebald/kube-plex/tree/additional_pvc/charts/kube-plex
No PR yet for this. Stil playing around with it.
FWIW, I've had a bit of trouble getting rclone to work over nfs, but one option that did work was having rclone mount into hostPath, deployed as a DaemonSet, with a PV/PVC pointing to the same hostPath, and a postStop life cycle hook to ensure the unmount occurs.
@msenebald , I hadn't noticed this issue, but I submitted a pull request a couple days ago to support the additional volumes, hopefully it's helpful! #79
I believe this issue can be closed, thanks @drewstinnett !