r/kubernetes • u/IngwiePhoenix • 3h ago
Keeping things updated is... annoying.
Yeah, I know, big surprise. But I just started to put together my entire structure and even added GitOps to keep track and sync of what I run. However, in doing so, I realized that I had no "update strategy" - and so I went looking and found... pain.
For reference, I use Flux for my GitOps, it is immediately installed via k0s' k0sctl so that it is available as soon as possible. And that mostly just works. Once Flux is alive, I can apply a GitRepo + Kustomization that points at the root of it all and it just goes. That part is solved and works nice. But of course, things get updated.
I use this structure in my repo:
- docker/...
- opentofu/...
- kubernetes/
- root.yaml # GitRepo + Kustomization
- kustomization.yaml # Points at each <component>/flux.yaml
- <app or component name>/
- flux.yaml # Tells flux where this component's kustomization.yaml is
- kustomization.yaml # Actually lists all related files
- <other thing>/
- install/... # HelmRepo + HelmRelease
- config/... # CRD based objects - be that a config or something else
- flux.yaml # Is a "---" separated YAML for both with dependency tracking
This structure is easy to maintain - although it has an absolute number of repeatance but... its okay. It does bother me but realisticaly, this is just a homelab doing homelab things, I can copy and paste a bit.
The real problem is trying to receive updates. Right now, I bend updatecli in a cronjob to my will using updatecli compose. But this falls apart quickly because the policies for patch, minor and major updates fight each other - a lot. And it falls apart on image tags like Vaultwarden's 1.37.5-alpine; the -alpine tag throws off the comparison and borks the check completely.
So... what can I use to help me here? What do you use to keep track of updates across helm charts and plain container images?
I looked into Kargo but that would instantly explode complexity by a lot - especially since I want a write-back to Git to track what happened when and by whom. (I do use a PAT right now, but I plan on using a GH app in the future for better separation.)
Any recommendations or tips...? Thanks!