I would have a standalone Forgejo server to act as your infrastructure server. Make it separate from your production k8s/k3s environment.
If something knocks out your infrastructure Forgejo instance then your prod instance will continue to work. If something knocks out your prod, then your infrastructure instance is still there to pull on.
One of the reasons I suggest k8s/k3s if something happens k8s/k3s will try to automatically bring the broken node back online.
Zwuzelmaus@feddit.org 1 year ago
Not really.
K8s would use a “checked-out” visible representation, not the repo database itself.
marauding_gibberish142@lemmy.dbzer0.com 1 year ago
Sorry, I don’t understand. What happens when my k8s cluster goes down taking my git server with it?
Zwuzelmaus@feddit.org 1 year ago
You do not let your k8s control instance look “live” at your git server during the start (or reformation) of the whole cluster. It needs the (repo and) files checked out somewhere locally, and this local “somewhere” must exist at start time.
Later, when your git is alive, you do a regular git pull for keeping it up to date.
marauding_gibberish142@lemmy.dbzer0.com 1 year ago
Oh I get it. Auto-pull the repos to the master nodes’ local storage for if something bad happens, and when that does, use the automatically pulled (and hopefully current) code to fix what broke.
Good idea