jhuckaby / Cronicle

A simple, distributed task scheduler and runner with a web based UI.
http://cronicle.net
Other
3.73k stars 385 forks source link

Accessing slaves behind a NAT #323

Open alex8444 opened 4 years ago

alex8444 commented 4 years ago

Summary

Hi,

I would like to use Cronicle to manage tasks of several raspberry pi. I managed to install Cronicle on my central master server (only one master server) and would like to schedule tasks for my raspberry pi (slaves).

The problem I am facing is that I don't know what to enter in the "Add Server" modal box, since my raspberry pi are connected via 3G connections and don't have a direct IP address to connect them.

Is there a reverse connection mode I could use? I saw this but didn't manage to make it work.

Thanks for your help!

mikeTWC1984 commented 4 years ago

Can you get some more details on your architecture? Sounds like you have master and slaves on different sub-nets and you need to set up some sort of VPN / create tunnels

alex8444 commented 4 years ago

Yes exactly, they are on different networks

mikeTWC1984 commented 4 years ago

As far as I know cronicle assumes that all machines are on the same network and can ping each other. So you need to emulate this first to get it work. There should be some VPN/VLAN options for Pi. Also, if your master has static IP, maybe try to setup docker swarm cluster, afaik you can join to the cluster from slave nodes. If it works you can run cronicle on top of it