Rclone mainly purpose for Kubernets (K8S) Deployments.
1.3K
kube-rclone is a rclone mount solution for Kubernetes. It allows you to sync files and directories to and from different cloud storage providers i.e Google Drive. It creates a Daemonset across the Kubernetes cluster which mounts a volume on the hostPath that can be used with other services such as kube-plex
This can be created by running rclone config which will take you through an interactive configuration session to generate the rclone.conf file.
Remember to create /mnt/.cache/rclone/ folder for cache and point cache like this in your rclone.conf
[Cache Cloud Storage 3]
type = cache
remote = Cloud Storage 3:
chunk_size = 32M
info_age = 1d
chunk_total_size = 64G
db_path = /config/rclone/cache-backend/
chunk_path = /config/rclone/cache-backend
Adjust to your needs, just leave db_path and chuck_path as it is.
The setup guide will help you get rclone running as a Daemonset on Kubernetes.
rclone.conf file into files/rclone.confrclone.conf file> helm install ./kube-rclone --name rclone \
--namespace rclone \
--set rclone.remote=[insert remote to mount here] \
--set rclone.path=[insert mount path for remote] \
--set rclone.readOnly=false
If you want it to readOnly set it like this. --set rclone.readOnly=true
This will deploy a Daemonset across the Kubernetes cluster that will run rclone with the mounted remote i.e Google Drive on the hostPath of the node which can be used with other services.
Additional arguments can be set to customise rclone mount depending on the Kubernetes node resources. Some additional arguments have been commented out which are based on several user set-ups. They can be used based on user preference. Mount options can be found here
Example of pod logs:
2019/06/28 22:15:58 INFO : gcache: Cache DB path: /home/rclone/rclone-cache/cache.db
2019/06/28 22:15:58 INFO : gcache: Cache chunk path: /home/rclone/rclone-cache/cache
2019/06/28 22:15:58 INFO : gcache: Chunk Memory: true
2019/06/28 22:15:58 INFO : gcache: Chunk Size: 16M
2019/06/28 22:15:58 INFO : gcache: Chunk Total Size: 20G
2019/06/28 22:15:58 INFO : gcache: Chunk Clean Interval: 1m0s
2019/06/28 22:15:58 INFO : gcache: Workers: 4
2019/06/28 22:15:58 INFO : gcache: File Age: 2d
It has only been tested with kube-plex so far. There's still more work to be done to make it stable for other services e.g Radarr and Sonarr.
Please raise an issue or pull request if you have any issues, questions or features.
Full credit list at: https://github.com/zee-ahmed/kube-rclone/CREDITS.md
Content type
Image
Digest
sha256:c1313847b…
Size
40.1 MB
Last updated
over 3 years ago
docker pull cyberpoison/rclone