r/GitOps • • 20d ago

Show /r/GitOps - Forts! A cli for bootstrapping environments

Hi /r/GitOps - I've spent years building 'traditional ops' environments for telcos, and after stepping away in 2024 to do my own thing, the question of 'ops' stuck around.

Especially as the number of my solo projects grew... I found that a lot of 'toil' was entering my development workflow. Semi-automated practices around OS updates, vetting in local 'staging environments', promotion, etc

I started thinking about pairing NixOS for the host layer and FluxCD for the workload layer - both can build a configuration from a git commit, and with a little set up, both NixOS and FluxCD can continuously reconcile the declared state.

This bridges the gap between something like Talos for kubernetes and a 'pure NixOS' environment, and side-steps a lot of the machine provisioning lifecycle you may be familiar with from the Kuberenetes CAPI ecosystem. For me, it's nice to keep the k8s ecosystem for service configuration management while maintaining full control of the host OS.

Want to change something on the OS, or add a new service? Both follow the same path -> PR -> Merge -> Automatic reconciliation across the estate.

I'm recording a series of videos about Forts! as I attempt to usher the project along from simply "my infra stack" to a repeatable framework for managing these environments.

I'm enjoying operating a forts environment myself, but I'm looking to get some impressions from my peers in this domain. So if you have a few minutes, I would appreciate it if you took a look!

https://github.com/streetfortress/forts

https://youtu.be/30_MVmWbJso

4 Upvotes

2 comments sorted by

2

u/danakil74 19d ago

Interesting project! I’ve been digging into all this questions at the beginning of the year and i was searching content like your video.

In my case i ended up using CAPI + talos + fluxcd. But for a small setup your project might be more convenient.

1

u/sf1tzp 15d ago

Thanks! Yeah, at my scale I don't need kubernetes for the clustering... so forts took an interesting shape. For about 1.5y I was enjoying NOT using kubernetes actually. A nice little break from it. A few ubuntu VMs with docker compose was really easy to think about, but eventually I outgrew it. Aside from the base OS + container runtime, a forts estate looks very similar (a few VMs scattered around, connected by wireguard).

Ironically, I left my old job because I wanted to get into product development etc. Great timing on that, since everyone can do that now lol. I figured I should pivot a bit and do something I'm actually good at plus maybe others will find this to be a good pattern too.

Thanks again and a quick update to end on:

- Still working out a few things for the demo recording + new user experience. Hopefully will be ready to post next week (though I'll probably pick a different subreddit so as not to spam this one).
- The next NixOS mainline version will be tagged sometime this month and I plan to release the first 'non alpha' version around that time (Forts will follow 26.xx etc, kinda like another nixos project 'clans.lol')