How does Argo CD know which live resources belong to an Application?
IntermediateConceptArgo CD Architecture & Internals
Answer
Through resource tracking. Argo CD 3.x defaults to annotation tracking: it writes argocd.argoproj.io/tracking-id: <app>:<group>/<kind>:<namespace>/<name> on each resource. Older versions defaulted to the app.kubernetes.io/instance label, which clashed with Helm charts that set the same label and was truncated at 63 characters. Set the method with application.resourceTrackingMethod in argocd-cm (label, annotation, annotation+label).
More on Argo CD Architecture & Internals
What are the main components of Argo CD?BeginnerWhat does the argocd-repo-server do, and what does it not do?BeginnerWhat does the application controller do on each reconcile?IntermediateWhat is stored in Redis, and what happens if Redis is lost?IntermediateWhy is the application controller a StatefulSet rather than a Deployment?AdvancedWhere does Argo CD keep its configuration?Beginner