Demonstrates using Argo CD manual sync mode to apply Git manifests, detect drift from live edits, and reconcile cluster resources back to Git desired state.
This guide demonstrates how to perform a manual synchronization in the Argo CD web UI. It walks through:
What happens when an application is configured with manual sync mode.
Creating cluster resources from Git via the Argo CD UI.
How Argo CD detects drift when live resources are edited directly.
Reconciling the application back to Git’s desired state.
Argo CD was configured with synchronization mode set to manual. That means Argo CD reads the manifests from the Git repository (the desired state) but will not apply changes to the cluster until you explicitly trigger a sync.
Because the application has not yet been applied to the cluster, there is no “live” manifest for these resources. To create them, use the Argo CD UI’s Synchronize action.
When you click Synchronize, choose relevant options (for example, check “Auto-create namespace” if the namespace does not exist), then confirm the sync. Argo CD will pull the manifests from Git and apply them to the cluster: creating Namespace, Deployment, Service, ReplicaSet, and Pods.
If a developer edits the live Deployment directly (for example using kubectl edit) and increases replicas to 5 and updates POD_COUNT to “5”, the live cluster will diverge from Git:
Because the live Deployment now has replicas: 5 but Git defines replicas: 1, Argo CD detects drift and marks the application OutOfSync. Argo CD shows the live and desired values for the resource and highlights the difference.
To restore the cluster to the Git-defined desired state, click Synchronize in the Argo CD UI. Argo CD will fetch manifests from Git and apply them to the cluster — scaling the Deployment back to 1 replica and updating POD_COUNT back to “1”. Extra pods created by the manual edit will be terminated.After a successful sync, the resource tree displays resources as Synced and Healthy:
You can observe pods terminating while reconciliation proceeds:
Argo CD treats Git as the source of truth. Manual edits to live cluster resources cause drift (OutOfSync). To make a permanent change, update the manifests in the Git repository and then let Argo CD apply those changes (or use Argo CD’s UI to sync Git into the cluster). Avoid modifying cluster-managed resources directly unless you intentionally want to bypass Git.