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

Integrate rclone mount for Plex Storage? #60

Closed
Nornode opened this issue Jun 18, 2019 · 7 comments
Closed

Integrate rclone mount for Plex Storage? #60

Nornode opened this issue Jun 18, 2019 · 7 comments

Comments

@Nornode
Copy link

Nornode commented Jun 18, 2019

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.

@simplyzee
Copy link
Collaborator

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.

@Nornode
Copy link
Author

Nornode commented Jun 25, 2019

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.

@simplyzee
Copy link
Collaborator

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.

@msenebald
Copy link
Contributor

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.

@putty182
Copy link

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.

@drewstinnett
Copy link
Contributor

@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

@onedr0p
Copy link
Contributor

onedr0p commented Feb 13, 2020

I believe this issue can be closed, thanks @drewstinnett !

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

No branches or pull requests

6 participants