KubeGraf for Argo CD: Never Fight Your Own Reconciler

On a GitOps cluster the correct rollback is a git revert, not kubectl rollout undo — anything else gets reverted by Argo CD within minutes. How KubeGraf detects GitOps-managed clusters and proposes the right kind of change.

There is a specific failure that every team running Argo CD learns once, usually during an incident. Something is broken, somebody runs kubectl rollout undo, the service recovers, everyone exhales — and a few minutes later Argo CD reconciles the cluster back to what Git says and the outage resumes. The fix was correct and the mechanism was wrong.

Any tool that proposes changes to a GitOps-managed cluster has to understand this, or it will confidently hand you the fix that gets reverted.

What KubeGraf does about it

KubeGraf detects whether a cluster is GitOps-managed and generates the appropriate rollback for it: a git revert pull request for Argo CD and Flux environments, or a kubectl rollout undo with a dry-run for clusters that are not GitOps-managed. The detection is the point — the same incident produces a different proposal depending on how the cluster is actually governed.

Argo CD, Flux and Helm releases are visible and operable from the dashboard, and drift is detected and explained rather than silently corrected. Drift on a GitOps cluster is information: it means something changed outside the pipeline, and the useful response is usually to find out what did it, not to flatten it. For what OutOfSync and Degraded mean in Argo CD and how to fix a failed sync, see Argo CD sync failed.

Why the PR matters more than the speed

A git revert PR is slower than a kubectl command, and that is not a flaw in the design. It means the fix enters production through the path every other change takes — reviewed, recorded, and reproducible. Your Git history remains the truth about what is deployed, which is the entire reason you adopted GitOps.

The alternative — a tool that writes directly to the cluster on a GitOps estate — buys you a few minutes during the incident and costs you the property you built the pipeline for. It also creates drift that somebody has to explain in the review.

Where the change gets recorded

Every change is written to Records with its source, and GitOps is one of the sources it distinguishes — alongside AI and direct cluster changes. That distinction is what makes the record useful afterwards: you can tell whether a cluster state came from your pipeline, from an agent proposal somebody approved, or from a human with kubectl at 3am.

Undo is recorded as a new change rather than erasing the original, so the history keeps saying that something was applied and then reversed. For a GitOps team this is familiar — it is how git revert already behaves, and the record follows the same principle rather than inventing a different one.

What this is not

  • It is not a replacement for Argo CD. KubeGraf does not reconcile, does not own your manifests, and does not want to be in the delivery path.
  • It is not a policy engine. KubeGraf's Security surface scores posture and proposes fixes, then stops — enforcement stays with your admission controllers, and nothing we show blocks a deploy.
  • It does not merge the PR. The proposal is a pull request; your review process is still your review process.
  • It does not require you to change how Argo CD is configured. The detection reads the cluster as it is.

The honest caveat

If your estate is fully GitOps-managed and your team is disciplined about it, a meaningful share of what an AI SRE can usefully do shrinks to diagnosis plus a well-formed PR. That is still valuable — the diagnosis is the slow part of most incidents — but you should expect the remediation half of any AI SRE pitch to land softer on your estate than on a cluster where people still run kubectl directly. Buy it for the investigation, and treat the correctly-shaped rollback as the thing that stops the investigation being wasted.

Getting started

  1. Connect a non-production cluster that Argo CD manages, and let the agent detect it.
  2. Leave autonomy on monitor. You are checking whether it correctly identifies the cluster as GitOps-managed before you care what it proposes.
  3. Break something deliberately — a bad image tag is the classic — and check that the proposal is a revert PR rather than a kubectl command.
  4. Introduce drift on purpose, by changing a replica count directly, and confirm it is detected and explained rather than quietly reconciled away without a record.

Frequently asked questions

Why does kubectl rollout undo not work on a GitOps cluster?

Argo CD reconciles the cluster back to what git says. A change made directly against the cluster is undone at the next reconcile.

How does KubeGraf know a cluster is GitOps managed?

It detects the reconciler on the cluster and changes what it proposes accordingly. It works alongside Argo CD and Flux.

Does KubeGraf commit to my repository?

Nothing is applied without approval and the approval step is where you decide. The point of detecting GitOps is to propose the right kind of change rather than one that gets reverted.

Why is my Argo CD app OutOfSync or Degraded?

Those are two separate statuses. OutOfSync means the cluster and git differ and Degraded means a live object is failing even when the app is synced.

Last updated . Try KubeGraf Freemium.