fluxcd / flux2-kustomize-helm-example

A GitOps workflow example for multi-env deployments with Flux, Kustomize and Helm.
https://fluxcd.io
Apache License 2.0
991 stars 1.05k forks source link

Common layout question #32

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hey there! Thanks for providing an example of layout. I have a common question.

What's the advantage of using kustomize.toolkit.fluxcd.io/v1beta1 (kind: Kustomization), which points to the folder into root of the repo, instead of including references to the base / infrastructure folder with simple kustomization, like it was in first flux ? Having 2 production folders confuses, because we have to keep in mind that we need to jump between folder to make separates changes f.e. for apps and infrastructure (so there are 2 sources of truth (apps and infra) for one cluster).

I just learning flux v2 and just want to understand, what's the advantage of using layout in example.

Thanks in advance.

stefanprodan commented 3 years ago

What's the advantage of using kustomize.toolkit.fluxcd.io/v1beta1 (kind: Kustomization), which points to the folder into root of the repo, instead of including references to the base / infrastructure folder with simple kustomization

This allows defining dependencies between apps and infra.