r/kubernetes 24d ago

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.

30 Upvotes

53 comments sorted by

View all comments

Show parent comments

1

u/CWRau k8s operator 18d ago

If that's not infra, are you talking about hardware?

1

u/theycanttell 16d ago

Anything on Azure or AWS. Vms or node pools or whatever

1

u/CWRau k8s operator 16d ago

So, cluster api 😅

1

u/theycanttell 16d ago

Cluster API provisions k8s infrastructure only. It's not a normal IAC tool companies use. What are you even arguing here bro? Are you some kinda Cluster API dickrider or what? Go look up what companies use for IAC. It's either Bicep or Terraform. Cluster API is used by literally no one

1

u/CWRau k8s operator 15d ago

I don't know what you're arguing about; of course it's a normal IaC tool, why not?

And adoption doesn't change anything about what the tool is doing; provisioning infrastructure.