How do you structure directories for an App of Apps repo?
Short answer
A common layout has a root app pointing at an apps/ (or per-environment) directory of child Application manifests, with each child referencing its own manifests path. Separate directories per environment/cluster let one root per env manage that env's apps cleanly.
Advertisement
AModel answer
A common layout has a root app pointing at an apps/ (or per-environment) directory of child Application manifests, with each child referencing its own manifests path. Separate directories per environment/cluster let one root per env manage that env's apps cleanly.
gitops/
root-app.yaml
apps/
ingress.yaml
monitoring.yaml
service-a.yamlReal-world example
The prod root watches clusters/prod/apps/, a folder of that cluster's child Application manifests.
Likely follow-ups
- How do you separate environments? | Where do child manifests point?
Related topics