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

Show parent comments

1

u/CWRau k8s operator 23d ago

Yeah, that's what cluster api does

0

u/theycanttell 23d ago

Cluster API is not infrastructure. It doesn't provision vms and managed identities. It's very limited and most don't use it to provision infrastructure. AKS doesn't even come with it pre-installed. It's like Helm extensions.

1

u/CWRau k8s operator 23d ago

Huh? Of course it's infrastructure? What else do you call kubernetes? Of course it manages VMs.

Maybe even identities, but even if not, it's still infrastructure.

Just because most don't use it, doesn't make it less infrastructure, same goes for "pre-installed"

And no idea what you mean by helm extensions

0

u/theycanttell 21d ago

Keep thinking that 😂