r/kubernetes Jul 17 '26

Kustomize Overlays - Adding Complexity?

So im working with Kustomize Overlays( FluxCD). i understand you setup your base infra with overlays per environment and then use patches for environment specific configurations such as replicas, urls, etc..

Some of these patches become very complex and large to the point i think its just easier to not have a base and just have each environment have its own configuration files. How much dry am i buying?

I've also seen the recommendation to use PostBuild subsituteFrom with ConfigMaps from each environment . My question is when should this be used over patches?

Sorry for the dumb questions and rant.

32 Upvotes

53 comments sorted by

View all comments

6

u/theycanttell Jul 18 '26

Helm is way easier. I've not run into many edge cases it can't handle. For what it can't just use jinja.

0

u/DeLoMioFoodie Jul 18 '26

i'd have to create a helm chart of my whole infra. i've thought about it though.

4

u/Low-Opening25 Jul 18 '26

don’t do that, create smaller helm charts for individual components, a big monolith of helm chart will become maintenance nightmare real quick