ArgoCD › Sync & Health

How do you skip health assessment or diff for specific fields?

Intermediate

Answer

Use ignoreDifferences to exclude controller-managed fields from diffs (preventing false OutOfSync), and custom health scripts to define health for CRDs. For fields set by admission/webhooks, ignoring them or using ServerSideApply avoids perpetual drift and health noise.
spec:
  ignoreDifferences:
    - group: apps
      kind: Deployment
      jsonPointers: [ /spec/replicas ]
Real-world example Ignoring HPA-managed replicas stops the app flapping between Synced and OutOfSync every reconcile.

Common follow-ups: Which fields commonly need ignoring? | How does SSA reduce noise?