What happens step by step when you click "Sync" in the UI?
IntermediateConceptArgo CD Architecture & Internals
Answer
- The UI calls argocd-server, which checks RBAC (
applications, sync, project/app). - The server writes an
operationfield into the Application CR. - The controller picks up the operation, gets manifests from the repo-server for the target revision, and computes the diff.
- It runs the sync: PreSync hooks, then Sync-phase resources by wave (applying with kubectl semantics, pruning if requested), then PostSync hooks, waiting for health between waves.
- It records
status.operationState(phaseSucceeded/Failed, per-resource results) and adds an entry tostatus.history.
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