Best practice for directory structure of GitOps repository #386
-
I'm testing around the optimal directory structure of the GitOps repo for my current project. My application is fairly simple consisting out of two containers (frontend and backend) which gets built and pushed to a registry by Jenkings CI. The frontend depends on the backend. The app needs to get deployed to 3 clusters: dev, test, prod. By now I think it's the easiest way to put everything into one GitOps repository with the following structure.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
This kind of structure is what I had in mind when I wrote the bootstrap procedure. It works great when you have tens of services all managed by a single team. For multi-teams with hundreds of services you may want to create a repo per team and delegate the reconciliation to those repos, so each team can managed its own manifests. Another option is to place the manifests in each app repo and reference them in the main gitops repo. |
Beta Was this translation helpful? Give feedback.
-
I have a general question about the management of sources + releases, compared to a kustomized 'install' Given the above example, how would you manage git/helm sources + releases of aforementioned sources? I'm trying to achieve as much of a single source of truth for a cluster as possible. It is unclear to me where, for example, a |
Beta Was this translation helpful? Give feedback.
-
Here is an example on how to organise a gitops repository for multi-env deployments https://github.com/fluxcd/flux2-kustomize-helm-example |
Beta Was this translation helpful? Give feedback.
Here is an example on how to organise a gitops repository for multi-env deployments https://github.com/fluxcd/flux2-kustomize-helm-example