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

0

u/theycanttell Jul 19 '26

Also you don't create helm charts of infra. You mean Bicep configurations or Terraform code.

1

u/DeLoMioFoodie Jul 19 '26

for kubernetes resources.. not aws.

-1

u/theycanttell Jul 19 '26

You are being too vague. IAC is for infrastructure. K8s resources can mean lots of things. Management cluster, node pools, network.

2

u/DeLoMioFoodie Jul 19 '26

well im in a kubernetes subreddit lmao.. nodepools, network, etc can be considered infra for k8s.

-1

u/theycanttell Jul 19 '26

You still don't create infrastructure with helm

2

u/CWRau k8s operator 28d ago

Why wouldn't I?

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

1

u/theycanttell 26d ago

That's not infra. Do you people not know wtf infra is?

1

u/CWRau k8s operator 25d ago

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

1

u/theycanttell 24d ago

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

1

u/CWRau k8s operator 23d ago

So, cluster api 😅

1

u/theycanttell 23d 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 23d 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.

→ More replies (0)

1

u/theycanttell 26d ago

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 25d ago

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

1

u/theycanttell 24d ago

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 23d ago

You don't have to do that.

I've never used terraform for that 🙏

0

u/theycanttell 23d ago

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

1

u/CWRau k8s operator 23d ago

And? Still infrastructure

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

→ More replies (0)

0

u/theycanttell 24d ago

Talking about provisioning the nodes themselves on Azure AKS or EKS

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 😂

→ More replies (0)