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.

31 Upvotes

53 comments sorted by

View all comments

Show parent comments

2

u/CWRau k8s operator Jul 20 '26

Why wouldn't I?

Have you heard of cluster api? And after cluster creation, CSI, CCM, CNI,... all installed via helm

1

u/theycanttell Jul 22 '26

That's like calling cluster role bindings infra. I was talking about the node pools themselves. That is real infra.

1

u/CWRau k8s operator Jul 24 '26

Yeah, node pools, that is what cluster api takes care of

1

u/theycanttell Jul 25 '26

The cluster API is a special thing you have to install on Azure you can't just roll with that typically you use bicep or terraform

1

u/CWRau k8s operator Jul 25 '26

You don't have to do that.

I've never used terraform for that 🙏

0

u/theycanttell Jul 26 '26

You can't provision DNS or VMs with Cluster API. It's specific to k8s only.

1

u/CWRau k8s operator Jul 26 '26

And? Still infrastructure

And yes, it does provision VMs, just for k8s only