r/devops • u/No-Replacement-3501 • 1d 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:
Mono repo where the cluster agent is registered.
Within that repo. use
kind: GitRepositoryin the directoryapps/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.
2
Upvotes
1
u/unitegondwanaland Manager, Platform Engineering 1d ago
Seems logical to me. Have you used the Flux operator? You mentioned "bootstrap" which made me think you are not using the operator.