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

improvements for kubernetes #394

Open
jrodan opened this issue Oct 28, 2022 · 3 comments
Open

improvements for kubernetes #394

jrodan opened this issue Oct 28, 2022 · 3 comments
Assignees

Comments

@jrodan
Copy link

jrodan commented Oct 28, 2022

Hey,

i am running gphotos-sync now in kubernetes. The tools downloads all photos to a nfs storage on my NAS and will be called as cronJob every 6 hours directly from kubernetes.

With this config you can do the same on your setup:

https://gist.github.com/jrodan/8ffc234fbf857606a216bbb4f968d2fa

Now the ideas:

  • create an empty config file and token file to create the mounts whenever the mounts are empty / can not be read. also this is a good test case if the mounting is working. I had a hard time to create the shared folders due to permissions issues whenever I created them manually.
  • optionally send mails whenever the job is executed with some summary

What I really like is that the job writes it's state and can recover from API limits / broken internet / general job interruptions!

good job! :)

@gilesknap
Copy link
Owner

Thanks for this! I have a K8S cluster and keep meaning to move gphotos-sync to it.

Will give this a go and let you know how I get on.

@gilesknap
Copy link
Owner

Sorry for the long delay.

I'm still interested in this and am going to give it a go real soon.

@gilesknap gilesknap self-assigned this Mar 11, 2023
@gilesknap
Copy link
Owner

OK I admit I forgot about this. My cluster needs some work after a NAS failure, not sure when I will get to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants