Sync and Manage ArgoCD Applications
Sync ArgoCD Applications
Section titled “Sync ArgoCD Applications”Use this guide to force a sync, refresh status, or recover from drift. Auto-sync is enabled by default in the ApplicationSets, but manual sync is useful for troubleshooting.
Step 1: Check application status
Section titled “Step 1: Check application status”kubectl get apps -n argocdStep 2: Refresh app status
Section titled “Step 2: Refresh app status”argocd app get <app-name> --refreshStep 3: Trigger a sync
Section titled “Step 3: Trigger a sync”argocd app sync <app-name>argocd app wait <app-name> --healthStep 4: Sync an entire ApplicationSet
Section titled “Step 4: Sync an entire ApplicationSet”argocd app sync -l app.kubernetes.io/instance=appsargocd app sync -l app.kubernetes.io/instance=infrastructureStep 5: Reconcile drift
Section titled “Step 5: Reconcile drift”If the app keeps drifting, inspect the diff and fix the source manifest in Git.
argocd app diff <app-name>