Maven / GitOps Interview Questions
How does Argo CD's sync process work — desired state vs live state?
Argo CD's sync process is a six-step reconciliation cycle executed by the Application Controller on every polling interval (default: 3 minutes) or on webhook notification.
- Clone and render: The Repository Server clones (or updates from cache) the Git source at the specified
targetRevision. It runs the appropriate tool —kustomize build,helm template, or reads plain YAML — to produce a set of Kubernetes resource manifests. - Fetch live state: The Application Controller calls the Kubernetes API to list the current state of all resources in the Application's destination namespace that are labeled as managed by this Application.
- Compute diff: Argo CD performs a three-way diff between (a) the last-applied configuration, (b) the current live state, and (c) the desired state from Git. Resources present in Git but not in the cluster are marked as missing. Resources in the cluster but not in Git are marked as extra (candidates for pruning).
- Sync decision: If any resource differs, the Application status is set to
OutOfSync. IfsyncPolicy.automatedis configured, the sync proceeds immediately. Otherwise, a human must trigger it via UI, CLI, or webhook. - Apply: Argo CD applies the desired manifests using server-side apply. Pre-sync and sync hooks execute in their designated phases.
- Update status: Application sync status becomes
SyncedorSyncFailed. Health status (Healthy / Degraded / Progressing / Missing) is evaluated by checking the readiness conditions of the deployed resources.
# Example: Application status after a partial sync failure
status:
sync:
status: OutOfSync
revision: "abc1234def5678"
health:
status: Degraded
conditions:
- type: SyncError
message: "Failed to apply deployment.apps/frontend: field is immutable"
lastTransitionTime: "2026-04-22T10:00:00Z"
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
