How many flux kustomizations are too many kustomizations? Using multiple flux kustomizations in the same repo. #2118
-
First of all thank you for Flux !! Its an amazing tool !!! We have a gitops repository for a tenant (product team) which contains helmreleases for multiple users working in the same team (each user has a kustomization sub directory in the repo). Initially I had setup the repo by creating a flux kustomization that pointed to the top level kustomization in the repo, thus recursively working on each users kustomization. The problem here was that if any user pushed a bad yaml, that would stop the overall reconciliation for the entire repo affecting other users. To solve this, I created multiple flux kustomization objects that would point to the user's subdirectory, instead of pointing to the top level kustomization. So that a user's broken kustomization wouldn't affect overall repo's kustomization. My question is, would this have an adverse affect on the reconciliation time/performance and also would it start increasing resource requirements? We have around 10 tenants on the cluster with max 30 users in each tenant repo. (max 3 helmreleases for each user) Any suggestions on better tackling this problem would also be much appreciated. [repo structure] PS. We can't have a separate repo for each user inside a team due to IT management limitations. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Flux was designed in this way, each tenant/team/app should be reconciled by its own Kustomization. I see no issues running hundreds of Kustomization per cluster. If you get to thousands of Flux objects then you’ll need to increase the memory limits and the max parallel processing settings of kustomize-controller. |
Beta Was this translation helpful? Give feedback.
Flux was designed in this way, each tenant/team/app should be reconciled by its own Kustomization. I see no issues running hundreds of Kustomization per cluster. If you get to thousands of Flux objects then you’ll need to increase the memory limits and the max parallel processing settings of kustomize-controller.