Repository with examples
ruzickap opened this issue · 5 comments
Hello guys.
I really like the way how you described the structure of your repositories - good work.
Would it be possible to add more examples - ideally if you can include the directory structure with some examples as part of this project?
It would be interesting+inspiring to see how you are using Flux v2 with dependencies (DependsOn), overlays, variables, sops in the cluster-components
.
I can imagine some k8s components (like cert-manager, monitoring) may be on all clusters, others my be only on prod clusters (resource limits) and every customer/provider may have different requirements for components/applications.
I would be handy to see how you are dealing with these requirements on real examples...
I can find some "basic" examples of such flux repository inside the flux project (flux2-multi-tenancy, flux2-kustomize-helm-example), but these examples are really simple comparing to your directory layout.
Thank you...
the structure grows with the needs.
Applications which should be on all clusters are inside the environments. So that we can keep track of versions between them.
We tried it with a multi branch solution but this was not practical due to the huge differences between the environments. So we added some kind of layers. Each rootdir houses a separate layer.
This was the approach we initially followed
I do understand the diagram, but seeing the example as code would help...
See you
I would also be interested in some YAML examples :)
I am checking if I have some time building it up for a customer example.
We are heavily relying on the features fluxv2 is providing. (Layering of different kind: ConfigMap
)
The directory with examples is now available: https://github.com/telekom/das-schiff/tree/main/cluster-components