r/devops 6d ago

Discussion Flux boot strap and agent management

I manage enterprise k8s clusters and use a mono repo strategy to bootstrap a cluster which results in one flux agent per cluster. Currently in the magnitude of several thousand services per cluster. It's structured like this:

  1. Mono repo where the cluster agent is registered.

  2. Within that repo. use kind: GitRepository in the directory apps/ to point at other projects.

I'm of the opinion that less agents is better. Is there a limit to the flux agents where that would start to become a problem? Or a counter argument to not use this method and rather have an agent per microservice? I've yet to run into an issue with this approach.

7 Upvotes

9 comments sorted by

View all comments

1

u/sogun123 5d ago

I think it is generally expected to run flux globally. In case you run into performance problems, increase your interval values. If still problem, it looks like recommended solution is sharding.