How do you pass per-cluster values from cluster Secrets to apps?
IntermediateConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer
Put labels or annotations on the cluster Secret (region: eu-west-1, ingress-class: alb) and reference them in the ApplicationSet template through the cluster generator, for example {{ index .metadata.labels "region" }} in a Helm valuesObject or value file path (values-{{ .metadata.labels.region }}.yaml). This keeps per-cluster facts in one place and avoids per-cluster ApplicationSets.
More on ApplicationSets, App-of-Apps & Multi-Cluster
What problem does an ApplicationSet solve?BeginnerList the ApplicationSet generators.BeginnerShow a list generator example.BeginnerHow does the cluster generator work?IntermediateCompare the git directory and git files generators.IntermediateWhat is a matrix generator and what are its limits?Intermediate