- Argo CD can automatically apply changes from Git to the cluster whenever it detects drift between the Git manifests and the live state.
- You enable this behavior by setting an automated sync policy on the application.
- Open the Argo CD application and go to Details.
- Scroll down to the Sync options and enable “Auto-Sync”. Argo CD will prompt for confirmation.
- Additional options such as “Self Heal” and “Prune Resources” are available but optional.

- Start from the current Deployment manifest in Git (example initial manifest):
- Edit the manifest in Git to scale to 10 replicas and update the environment variable:
- The frequency at which Argo CD checks Git for changes is controlled by reconciliation settings (often exposed via the
argocd-cmConfigMap), typically a reconciliation timeout plus jitter. - By default Argo CD uses a reconciliation timeout of 120 seconds plus up to 60 seconds of jitter, so it can take up to ~3 minutes to detect and apply changes automatically.

- If you don’t want to wait for the automatic reconciliation window, you can force Argo CD to poll Git immediately by clicking the “Refresh” button in the UI or using the CLI.
- When refreshing, Argo CD will pull the latest manifests and, if Auto-Sync is enabled, apply them right away.

- To view the argocd ConfigMap and check reconciliation-related settings run:
- To list configmaps in the argocd namespace:
- To search for the reconciliation timeout setting:
If
timeout.reconciliation is not present in argocd-cm, Argo CD uses the default value (120s) plus jitter (up to 60s), so reconciliation may take up to ~3 minutes by default.- Enable automated sync via
argocd app set <APPNAME> --sync-policy automatedor by enabling Auto-Sync in the UI. - Changes committed to Git are applied automatically by Argo CD, subject to the reconciliation polling interval.
- Use the Refresh action to force a Git poll and apply changes immediately.