Variables file heritance #21137
Unanswered
marcelofabricanti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
Is there a way to accomplish the below goal in a clever/clean way?
I have one ArgoCD instance per cluster, managing only that cluster, and I have the following structure in Git:
Directory structure
Bases folder contains manifest with basic configuration (the common appliable to all clusters).
Clusters folder is the overlay layer, contains one folder per cluster, named as the cluster_name (lets use dev_cluster as example), and have the customizations above the base folder, to apply the apps to this cluster specifically, like: cpu/memory deployment constraints due cluster size, etc.
apps-in-cluster.yaml file is just a Argo Application, with directory recurse enabled, saying "Apply the manifests in apps subfolder to this cluster (https://kubernetes.default.svc)"
Problem
I got many configurations that should be at cluster level, but is the same for all apps (like: cluster_name, domain_name, region, etc). So at each application-<<app_name>>.yaml file, I need to repeat them for Kustomize.
Is it possible to make a env-file for the whole cluster, and heritage the values in all bellow apps?
Something like this:
And somehow, in all application-<<app_name>>.yaml files, I can use the cluster_name and region values to patch the "base" that will be applied in cluster?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions