Interview Prep/GitOps & Argo CD/Argo CD Architecture & Internals

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).

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Argo CD Architecture & Internals