Coder Social home page Coder Social logo

kube-rclone's Introduction

kube-rclone

Introduction

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

Prerequisites

  • rclone config that has the cloud storage drive defined

This can be created by running rclone config which will take you through an interactive configuration session to generate the rclone.conf file.

Setup

The setup guide will help you get rclone running as a Daemonset on Kubernetes.

  1. Add the contents of the rclone.conf file into files/rclone.conf
  2. Deploy the kube-rclone chart with the correct remote and path defined from the rclone.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=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

Constraints

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.

Contributing

Please raise an issue or pull request if you have any issues, questions or features.

Credits

Full credit list at: https://github.com/zee-ahmed/kube-rclone/CREDITS.md

kube-rclone's People

Contributors

adamzachyang avatar chetangehlot avatar djerfy avatar simplyzee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.