kube-rclone icon indicating copy to clipboard operation
kube-rclone copied to clipboard

Issue connecting to other containers via HostPath

Open SaintNick1214 opened this issue 3 years ago • 4 comments

I'm quite confused how to successfully connect the mount to other pods in a managed Kuberentes cluster in OVH. I've tried mounting the hostpath to other pods through a PV, but to no avail.

Could you add a quick tutorial in the project description explaining how to use the rclone daemonset in other pods? It might be possible to sidecar the whole thing on other pods, but I think this is not in the spirit of the project.

SaintNick1214 avatar Jul 07 '22 21:07 SaintNick1214

I figured out what was happening. The project config is something like thisfor the hostpath mount:

        hostPath:
          path: /mnt/dir

However, when deployed, kubernetes automatically adds a line for Type: ""

      - name: media
        hostPath:
          path: /mnt/dir
          type: ""

This caused the host to never get the mount. Change default config to include type like so:

      - name: media
        hostPath:
          path: /mnt/dir
          type: DirectoryOrCreate

SaintNick1214 avatar Jul 07 '22 23:07 SaintNick1214

I am having the same challenge. @SaintNick1214 , are you able to share in which file and where you've added that to make it work?

deriknel avatar Aug 01 '22 18:08 deriknel

I am having the same challenge. @SaintNick1214 , are you able to share in which file and where you've added that to make it work?

Daemonset.yaml under templates directory.

SaintNick1214 avatar Aug 01 '22 19:08 SaintNick1214

@simplyzee Is this project Archived or No more maintained ?

If it's the case i have merged actual pull requests and add the availability to add cache on it, however this is my fork. https://github.com/CyberPoison/kube-rclone-docker-build @SaintNick1214 if you are able to explain me step by step how you have achieved the PV for rclone, i will integrate it on my fork README.md

CyberPoison avatar Mar 14 '23 21:03 CyberPoison