Can automated Kubernetes remediation work alongside GitOps?

December 5, 2026 4 answers
Asked by Houseplant

Could a remediation engine safely contain production incidents alongside GitOps, or should it stick to diagnosis and pull requests? I'm thinking of read-only shadow mode first, with human approval before live actions, but I'm concerned about wrong fixes and masking deeper problems.

Answers

Good Graces

One option is to let the engine trigger only predefined, reviewed workflows rather than give it general access to change the cluster. New workflows can go through a pull request like any other change. That gives the team a much smaller set of actions to inspect and approve.

Approval doesn't make the diagnosis right, though. Scaling an application during a database bottleneck could make things worse even if the scaling workflow itself is perfectly valid. Each workflow should spell out when it applies, what to check afterward, and how to stop or reverse it if conditions deteriorate.

Cora M:

And be explicit about how any live change interacts with the GitOps reconciler. A temporary containment action may be reverted unless the workflow accounts for that.

Reply to this answer
Graham

I would start with shadow mode and compare proposed actions against incident reviews before allowing any live execution. Record what the engine saw, what it wanted to do, and whether that would actually have helped.

For recurring conditions, deterministic rules based on fixes already worked out by engineers seem more defensible than asking a model to improvise during an outage. An AI suggestion can be useful as a lead, but it shouldn't be treated as a reliable diagnosis just because it sounds plausible.

Reply to this answer
Hello There

PRs can be the remediation path too. An alert can produce a proposed configuration change for review and testing in pre-production, with rendering and schema checks in CI before anyone merges it to production.

That won't contain every fast-moving incident. It does give you an audit trail and keeps the desired configuration in Git. Watch for noisy alerts creating duplicate PRs or repeatedly increasing memory limits when the real issue is a leak.

Reply to this answer
Hankering

The band-aid concern is real. A rule that suppresses a symptom every time can make a bad design less visible, even if it buys time during an incident. Keep containment separate from the follow-up work, and review repeated activations for a root cause that needs fixing.

Cross-service effects matter here. An application autoscaler might respond to load without knowing that more replicas will add pressure to an already constrained database. That kind of action needs a wider view than one workload's metrics.

Houseplant:

That distinction helps. A containment action can be useful without being considered the permanent fix.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions