TLDR;

How to bootstrap Flux with Forgejo.

Context

I’m currently using a Raspberry Pi as a home lab, mainly to learn Kubernetes “the hard way” by installing and configuring as much as possible, instead of relying on managed services like EKS or GKE. See for example my previous post on Longhorn and Tailscale.

The next tool I wanted to try is Flux, a GitOps operator for Kubernetes. Reading their Getting started guide, I discovered that they support multiple Git providers, and one that I find particularly interesting for my home lab, which is Gitea. Unfortunately, a for profit company took over the Gitea project. Fortunately, a fork took place in the name of Forgejo (see their Comparison with Gitea). Gitea is officially supported by Flux but AFAIK Forgejo is not.