עברית 📰 Blog
← Back to Blog
Developer Tools

6 GitOps mistakes beginners make (and how to avoid them)

Masterphub Team
Content Engine
September 22, 2026

Share this article

6 GitOps mistakes beginners make (and how to avoid them)

GitOps looks simple once you draw it out: Git, then CI/CD, then Kubernetes, then automated reconciliation. Instead of an engineer logging into production to change things by hand, the desired state lives as code in Git and gets applied continuously by automation. That is the whole appeal.

The mistakes show up when teams adopt the tools (Argo CD, Flux, a pipeline) but keep the old habits underneath. Here are the six that cause the most damage.

1. Making manual changes in production

Running kubectl edit or hand-editing a resource feels harmless in the moment. Say a traffic spike hits and someone bumps a deployment from 3 replicas to 10 directly in the cluster. It works. But Git still says 3. The cluster says 10. That gap between desired state and actual state is configuration drift, and it started with a single manual edit. The fix is boring on purpose: change the config in Git, open a pull request, get it reviewed, let the GitOps system apply it. You get a record of who changed what, why, and when.

2. Treating Git as optional, not authoritative

GitOps only works if Git is genuinely the source of truth. If the repo says replicas: 3 and the cluster is actually running 8, that is not a minor inconsistency, it is a process failure. During an incident, an authoritative Git history is what turns "what changed and who changed it" from a guessing game into a five-minute lookup.

3. Storing secrets in Git

Passwords, API keys, tokens, and certificates do not belong in a repository, even a private one. Repos get cloned, access lists change, branches leak, backups leak. And deleting a secret from the current file does not remove it from Git history, it is usually still sitting in an old commit. Use a real secret manager, or something like Sealed Secrets or SOPS, so Git can describe configuration without becoming a password store.

4. Skipping pull requests

You can push straight to main. The question is whether you should. A PR is a control layer, not just a formality: code review, automated tests, manifest validation, policy checks, an approval step before anything deploys. The path from developer to production should run through a branch and a review, not around one. That is what makes an incident investigation possible after the fact.

5. Ignoring configuration drift

Drift rarely arrives all at once. Someone tweaks a resource, someone else changes an environment variable, a hotfix goes in under pressure. A few weeks later nobody is fully sure what is actually running. GitOps tools handle this through reconciliation: continuously comparing desired state to actual state and correcting the gap. Argo CD and Flux make this practical in Kubernetes. But reconciliation is not a substitute for stopping the manual changes that caused the drift in the first place. Without that, you get a loop of change, reconcile, override, change again.

6. Cramming everything into one commit

A commit that touches the deployment, the service, the ingress, a configmap, networking, and a security policy all at once is a commit nobody can safely review or roll back. When something breaks, you cannot tell which of the eight changes caused it. A good commit should be explainable in one sentence, something like "increase API replicas from 3 to 5." Small and focused beats "production configuration updates."

The actual test

Here is a simple check for any GitOps setup: if production breaks, do you need to log into the cluster manually to fix it? An emergency hotfix will happen sometimes, that is real life. The question is what happens after: does that fix also get represented in Git? If not, the same problem comes back.

Good GitOps does not stop mistakes from happening. It makes them visible, traceable, and reversible. The tools matter, but a team that installs Argo CD while still editing production by hand, storing secrets in the repo, and skipping review has just added a new layer of complexity on top of the old habits, not replaced them.

Want more like this? Get 50 free Honey Credits when you join Masterphub -> masterphub.io

Share this article