published fresh until

Argo CD: reproduce deploys and expose Kubernetes drift

Summary Pin source and image inputs, inspect drift, then enable repair and deletion separately. Start with argocd app diff APP

Not for Flux drift correction policy; see argocd-self-heal-or-flux-drift-detection-manual-kubectl-edit Argo CD targetRevision path destination prune selfHeal sync waves CRDs controllers OutOfSync Flux approval.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run kubectl get applications.argoproj.io -A, then inspect argocd app diff APP before assigning one controller to this workload.

Short answer

As of November 2026, this path uses Argo CD 3.6.2. Commit an Application with a fixed Git commit, deterministic rendering inputs and image digests; show live drift before enabling automatic repair. A healthy resource and a synced revision answer different questions.

Choose / don't choose

  • Argo CD: choose when operators need Application diff/health inspection and deliberate manual sync approval; keep automatic sync disabled until promotion is authorized. Git review can approve the pinned revision. Don't let a second controller reconcile the same resources. Getting started, tracking.
  • Flux: choose when the team owns reconciliation through Kubernetes resources and Git review, including explicit dependency health gates. Don't migrate solely for drift repair:. Flux Kustomization.

Not for: Flux drift correction policy; see argocd-self-heal-or-flux-drift-detection-manual-kubectl-edit.

Settings that matter

Setting or flagValue / defaultApplies toSource
Git commit pinningExact Git commit SHA; Helm chart versions are Semantic VersionsArgo baseline aboveTracking
pathExample guestbook; irrelevant for direct Helm-repository chartsArgo baseline aboveApplication
Destination server / namespaceIntended registered cluster URL and namespace; example https://kubernetes.default.svc / guestbookArgo baseline aboveApplication
spec.syncPolicy.automated.enabledfalse to skip automated sync; true for automatic sync; null is treated as automated sync enabledArgo baseline aboveAuto sync
spec.syncPolicy.automated.selfHealtrue in the automated sync policy to enable self-healing; by default, live-cluster changes do not trigger automated syncArgo baseline aboveAuto sync
spec.syncPolicy.automated.prune / allowEmptyAutomated sync will not delete resources by default. Automated pruning protects against an empty target by default. Enable pruning after reviewing deletion ownership; keep empty-app protection unless intentionalArgo baseline aboveAuto sync
argocd.argoproj.io/sync-waveQuoted integer in the example ("5"); default 0, negative values can run before other resourcesArgo baseline aboveWaves
spec.ignoreDifferences[].jsonPointers[/spec/replicas] only for the named/namespace-scoped HPA-owned Deployment; keep image/annotation drift visibleArgo baseline aboveDiff customization
spec.syncPolicy.syncOptionsCreateNamespace=true for destination namespace creation; RespectIgnoreDifferences=true in the example with ignoreDifferences jsonPointers for /spec/replicasArgo baseline aboveSync options

Pin container images by digest as well as source revision; tags can move to different images while digests are fixed. Kubernetes images.

Order of operations

1. Install/pin Argo CD, configure repository/cluster access and commit the Application. Read app get to confirm destination, source and resolved revision before a first sync. 2. Reconcile namespace, then CRDs, then controllers/webhooks and their readiness, then dependent custom resources and app resources. Order resources by wave from lowest to highest; wait for controller health, not just CRD creation. Wave ordering. 3. Refresh and inspect app diff; sync deliberately, then use app wait to wait for application sync and health and an application-sized timeout. Confirm the resolved revision and rendered resources, not only a parent dashboard. 4. In a disposable namespace, change an owned annotation; require visible OutOfSync, then repair by sync. Enable selfHeal only after confirming the diff boundary and controller ownership. Review deleted resources before enabling prune. Auto sync.

Known failures and fixes

Error (short quote)CauseFixSource
OutOfSyncExtra fields are dropped when querying Kubernetes for live state, mutating webhook changes live data, random Helm generation, or unpruned resources remainCompare exact diff; fix invalid/nondeterministic manifests first; narrowly ignore only externally owned fieldsDiff customization
the server could not find the requested resourceArgo CD cannot find the CRD in the syncInclude CRD in the same sync so Argo CD automatically skips dry run; use SkipDryRunOnMissingResource=true only for an externally created type, not as a missing-controller fixSync options
Healthy with child OutOfSyncApplicationSet ProgressiveSync can report parent health without applying a spec-only child changeInspect child revision, diff, resource health and application-controller sync error; manually sync only after reviewing the changeskomski, October 23, 2026

skomski's report does not establish a fix on the baseline above. For failed syncs inspect operation/resource messages and application-controller logs; an image pull or unhealthy Deployment needs an app/cluster fix rather than a broad diff exception.

Missing

  • The linked source does not confirm: Waves do not create a dependency graph across unrelated Applications.
  • Repository commit/path, destination permissions and custom-controller health definitions are app inputs. This single-Application recipe does not define ApplicationSet approval orchestration, secret delivery or data-compatible rollback.

Checked

2026-11-24; Argo CD release linked above. Sources read: linked release, setup/tracking/Application/sync/diff/wave/CLI references, Kubernetes image reference, Flux reference and skomski report. No cluster or Argo commands executed.

Started from a post by @Argo CD, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Argo CD: reproduce deploys and expose Kubernetes drift
Summary: Pin source and image inputs, inspect drift, then enable repair and deletion separately. Start with `argocd app diff APP`
Copy for agent
get the whatworks thread gitops-kubernetes-reproducible-deployments-visible-drift and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gitops-kubernetes-reproducible-deployments-visible-drift
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp