GitOps

GitOps consulting and implementation with Argo CD and Flux. GitOps with Argo CD or Flux: Git becomes the source of truth for your Kubernetes clusters, with controlled promotion between environments, drift detection, safe secrets handling and rollback by reverting a commit.

A free first call with an engineer. You leave with a scoped next step.

Kubernetes & DevOps Assessment
Usually 2-4 weeks
Implementation Project
Scoped to your roadmap
Managed DevOps & Support
Monthly

What we deliver. Built as code, handed over with runbooks.

GitOps means the desired state of your Kubernetes clusters lives in Git, and an agent inside the platform continuously pulls that state and reconciles the cluster to match it. Every change is a reviewed commit, every environment can be rebuilt from its repository, and drift from manual edits is detected and corrected. Gepton designs the repository structure, installs and configures Argo CD or Flux, sets up promotion between environments and safe secrets handling, and migrates your applications with your team.

Technologies

  • Argo CD
  • Flux
  • Kargo
  • Argo Rollouts
  • Helm
  • Kustomize
  • External Secrets Operator
  • Sealed Secrets
  • SOPS
  • HashiCorp Vault
  • Kubernetes
  • GitHub
  • GitLab
  • Kyverno
  • GitOps design: repository layout, branching and ownership model, and tool choice between Argo CD and Flux
  • Argo CD or Flux installed with high availability, SSO, RBAC and projects or tenants per team
  • Application manifests structured with Helm or Kustomize and environment overlays
  • Multi-cluster delivery using ApplicationSets or Flux Kustomizations for add-ons and applications
  • Promotion workflow between environments, with Kargo or pull-request based promotion
  • Secrets handling with External Secrets Operator, Sealed Secrets or SOPS, with no plaintext in Git
  • Drift detection, sync policies, notifications and health checks wired to your chat and alerting
  • Rollback procedure by Git revert, tested and documented
  • Migration of existing workloads from push-based deployment, service by service
  • Runbooks, architecture notes and a hands-on handover for your platform and application teams

What gets in the way. The problems teams bring to us.

Use cases. Where clients put GitOps to work.

  • Rebuilding a cluster from Git

    After adopting GitOps, a team can recreate a production cluster, including add-ons and applications, from repositories rather than from memory, which shortens disaster recovery.

  • Promoting releases from dev to production

    An image tag moves through dev, staging and production by merged pull requests or Kargo stages, with verification at each step and a clear audit trail.

  • Managing add-ons across twenty clusters

    An ApplicationSet deploys cert-manager, External Secrets, monitoring agents and policies to every cluster, with per-cluster values and staged rollouts.

  • Removing cluster credentials from CI

    A security review flags cluster-admin tokens in CI. Moving to pull-based GitOps means pipelines only push images and commits; the cluster pulls its own changes.

  • Multi-tenant clusters with team self-service

    Teams deploy their own applications through Argo CD projects limited to their namespaces, while the platform team controls shared resources.

  • Detecting and reverting manual hotfixes

    A direct kubectl edit in production is flagged as drift. The team either brings the fix into Git or lets the controller restore the declared state.

  • Edge and on-premises sites

    Clusters at remote sites pull configuration from Git or an OCI registry when connected, without inbound access from a central pipeline.

How an engagement runs. A fixed-scope plan before anything is built.

How we work
  1. 1

    Review current delivery

    We map how changes reach each cluster today, which credentials pipelines hold, how configuration differs between clusters, and where secrets live.

  2. 2

    Design repositories and promotion

    We agree the repository layout, who owns what, how environments are represented, how releases move from dev to production, and whether Argo CD or Flux fits better.

  3. 3

    Install and secure the GitOps controller

    Argo CD or Flux is deployed through its own GitOps repository with SSO, RBAC, notifications and secrets integration, first in non-production.

  4. 4

    Migrate workloads in waves

    Applications and cluster add-ons are moved into Git and handed to the controller wave by wave, with CI changed to publish artifacts rather than deploy.

  5. 5

    Test failure and hand over

    We rehearse rollback, drift correction and cluster rebuild from Git, then document everything and hand operational ownership to your team.

Who it is for. And how we work with you.

A good fit if you are

  • Teams running Kubernetes with deployments done by kubectl, ad-hoc Helm commands or push-based CI jobs
  • Platform teams managing several clusters or environments that should stay consistent
  • Organizations that need an audit trail of who changed what in production, and when
  • Security teams that want production credentials out of CI pipelines
  • Companies planning disaster recovery that depends on rebuilding clusters quickly

How we work

Design before tooling
Repository structure and promotion flow decide whether GitOps stays simple or becomes a maze. We agree those with your team before installing anything.
Argo CD or Flux on merit
Both are mature CNCF graduated projects. We explain the trade-offs for your team and clusters and implement the one that fits, with no preference for one vendor.
Secrets done properly
We keep plaintext secrets out of Git and out of manifest generation, following the Argo CD project's own guidance, using your existing secret store where possible.
Tested failure modes
Rollback, drift correction and cluster rebuild are rehearsed before handover, so the benefits of GitOps are proven rather than assumed.

A closer look at GitOps

How GitOps works

The OpenGitOps principles describe four properties: the desired state is declarative, it is versioned and immutable, it is pulled automatically by software agents, and it is continuously reconciled. In practice, CI builds and tests an image, then a commit updates the version in a configuration repository. Argo CD or Flux, running inside the platform, notices the change and applies it. If someone edits the cluster directly, the controller reports drift and, if configured, restores the declared state.

The pull model is the security benefit. CI no longer needs credentials to production clusters; it only needs permission to push images and commits. The cluster reaches out to Git, not the other way round.

Argo CD or Flux

Both are CNCF graduated projects and both are production-ready. The differences are in style:

  • Argo CD has a rich web interface showing each application's resources, health and diff, which many application teams value. ApplicationSets generate applications across many clusters. Argo CD 3.0, released in 2025, tightened defaults around RBAC and resource tracking. It pairs with Argo Rollouts for canary releases and Kargo for promotion.
  • Flux is a set of composable controllers driven entirely by Kubernetes resources, with no central interface by default. It suits teams that prefer everything as code and a lighter footprint per cluster. Flux 2.6 made OCI artifact support generally available, so configuration can be distributed through container registries as well as Git.

A common pattern is a central Argo CD managing many clusters (hub and spoke), or Flux installed in every cluster (each cluster pulls independently). Hub and spoke is easier to see and operate; per-cluster agents avoid a single control point and suit edge or regulated networks.

Repository structure and promotion

Most GitOps problems are repository problems. Decisions to make early:

  • Application code and deployment configuration in separate repositories, so a configuration change does not trigger a full build.
  • Environments as directories or overlays on one main branch, not as long-lived branches that drift apart.
  • Clear ownership: platform add-ons owned by the platform team, application configuration by the application team, enforced with CODEOWNERS.

Promotion then becomes a change to the version in the next environment's overlay. That can be a pull request opened automatically after tests pass, or a Kargo pipeline that moves a verified set of artifacts through stages with checks at each step.

Secrets in GitOps

The Argo CD documentation recommends populating secrets on the destination cluster rather than injecting them while manifests are generated. The usual options are:

  • External Secrets Operator: Git holds a reference; the operator fetches the value from AWS Secrets Manager, Azure Key Vault, Google Secret Manager or Vault. Best for most production setups.
  • Sealed Secrets: secrets encrypted with a cluster key are safe to commit. Simple, but key management and rotation need care.
  • SOPS: encrypts values in files with cloud KMS or age keys; Flux decrypts natively.

Rollback and drift

Rolling back is a Git revert: the controller applies the previous state. That covers manifests; it does not undo database migrations, so schema changes still need backward-compatible design. Drift handling should be deliberate: automatic self-heal for most resources, with explicit ignore rules for fields that other controllers legitimately change, such as replica counts managed by an autoscaler.

What good looks like

A mature GitOps setup has a few visible signs. Any engineer can answer "what is running in production?" by reading a repository. A new cluster reaches a known-good state by pointing a controller at Git. Every production change links back to a reviewed pull request. Drift alerts are rare and acted on. And the GitOps controller itself is installed, upgraded and configured through GitOps, so the platform is as reproducible as the applications on it.

Common mistakes

  • One branch per environment, which makes promotion a merge conflict.
  • Letting CI both commit and deploy, which keeps the old credential risk.
  • Hundreds of hand-written Application resources instead of generators.
  • Ignoring the GitOps controller's own upgrades and security patches.

Building and testing images is covered in DevOps Consulting & CI/CD; the clusters themselves in Kubernetes Consulting & Management.

Engagement models. Each one scoped and quoted after a first call.

How engagements work

Usually 2-4 weeks

Kubernetes & DevOps Assessment

A review of your repositories, pipelines, clusters, cloud accounts, security, monitoring and costs. You get findings ranked by risk and effort and a phased roadmap you can act on with us or on your own.

Scoped to your roadmap

Implementation Project

Our engineers build the agreed pieces: pipelines, GitOps, clusters, infrastructure as code, observability or a migration. Everything is delivered as code with runbooks and a handover to your team.

Monthly

Managed DevOps & Support

Ongoing care for your cloud and Kubernetes: monitoring and on-call, patching and upgrades, backups and recovery tests, cost reviews and a monthly report, with least-privilege, audited access.

No prices are published: you approve a written scope and quote before we build.

GitOps in depth

Rendering Helm and Kustomize: in the controller or before commit

A decision that shapes every GitOps setup is where templates become plain Kubernetes manifests. Argo CD and Flux can render Helm charts and Kustomize overlays inside the controller. The alternative, often called the rendered manifests pattern, renders them in CI and commits the final YAML to an environment branch or directory, so the controller only applies plain files.

ApproachStrengthsTrade-offs
Render in the controllerSimple repository, small diffs, standard Helm and Kustomize workflowsReviewers cannot see the final manifests in the pull request; a chart version bump can change many resources unnoticed
Render in CI and commit outputEvery pull request shows exactly what will change in the cluster; no templating inside the clusterMore files in Git, a CI step to maintain, generated files must never be edited by hand

For small estates, controller rendering is fine, especially with a CI job that posts a rendered diff on each pull request. For regulated or high-change environments, committing rendered output gives reviewers and auditors a precise record of what ran.

Bootstrapping and recovering the GitOps controller itself

GitOps manages everything except, at first, itself. We define the bootstrap explicitly so a new or rebuilt cluster can be brought to its declared state with a short, documented sequence. With Flux, flux bootstrap installs the controllers and commits their own manifests to Git so they are managed like everything else. With Argo CD, a root application (the app of apps pattern) or an ApplicationSet points at the directory holding every other application, including Argo CD's own configuration.

Ordering matters during bootstrap. Custom resource definitions must exist before the resources that use them, and operators must be running before their custom resources are applied. Argo CD sync waves and Flux Kustomization dependencies (dependsOn) express that order. We test the full bootstrap on an empty cluster as part of handover, because the day you need it is usually the day something else has already gone wrong.

Multi-tenancy: letting teams deploy without sharing the keys

When several teams share clusters, the GitOps controller becomes a powerful identity: it can usually create anything anywhere. Both tools provide ways to narrow that.

  • Argo CD AppProjects restrict which repositories an application may use, which clusters and namespaces it may deploy to, and which resource kinds it may create. Cluster-scoped resources such as namespaces or CRDs stay with the platform team.
  • Flux tenancy uses Kubernetes service account impersonation: each tenant's Kustomization or HelmRelease applies resources as a service account whose RBAC limits it to the tenant's namespaces.
  • Single sign-on and RBAC in the Argo CD interface map identity provider groups to projects, so a developer can see and sync their own applications but not change another team's.
  • Admission policies with Kyverno or OPA Gatekeeper add a second layer that applies regardless of how a resource arrived.

Operating Argo CD at scale

Argo CD works without tuning for a handful of clusters and a few hundred applications. Beyond that, a few areas need attention. The application controller can be sharded so each replica handles a subset of clusters. The repo server renders manifests and benefits from more replicas and caching when many applications share large Helm charts. Excluding high-churn resources that Argo CD does not need to track, such as some event or metrics objects, reduces load and noise. Webhooks from the Git provider replace frequent polling, so changes apply quickly without hammering the Git server.

Flux scales differently because each cluster runs its own controllers; the main levers there are reconciliation intervals, concurrency settings and the size of each Kustomization. In both cases we watch the controllers' own metrics in Prometheus: reconciliation duration, queue depth and sync failures. The GitOps multi-cluster reference architecture shows a hub and spoke layout in more detail.

Notifications, health and the developer view

Developers should not need to watch a dashboard to learn that their release is stuck. Argo CD Notifications and the Flux notification controller send sync results and health changes to Slack, Microsoft Teams or a Git commit status, so a failed rollout shows up on the pull request that caused it. Custom health checks teach the controller when a resource is truly ready, for example when a database custom resource reports that it accepts connections, not just that the object exists.

We also add commit status reporting in the other direction: the deployment record links back to the image, the pipeline run and the pull request, so the question of what is running and where it came from has one answer.

A migration sequence that avoids a big bang

Moving existing workloads under GitOps control is safest when done in reversible steps:

  1. Export current state from the cluster and clean it into declarative manifests or Helm values, removing generated fields.
  2. Commit it and point the controller at it with automatic sync disabled, so it only reports differences.
  3. Resolve every reported difference until the controller shows the application in sync without having changed anything.
  4. Enable automatic sync for non-production, then production, one group of applications at a time.
  5. Remove direct deployment credentials from CI only after the last application in a cluster has moved.

GitOps pairs naturally with CI/CD, which builds and tests artifacts, and with platform engineering, which turns the repository conventions into self-service templates.

Questions about GitOps

Something else? Send us your question and an engineer replies with next steps.

Should we choose Argo CD or Flux?

Choose Argo CD if application teams want a visual interface showing sync status, diffs and resource health, or if you plan to manage many clusters from one place. Choose Flux if your team prefers a lighter, fully declarative toolkit, per-cluster agents, or native SOPS decryption and OCI-based delivery. Both are CNCF graduated. We recommend one after reviewing your clusters, team and existing tooling.

Do we still need a CI pipeline with GitOps?

Yes. CI still builds, tests, scans and publishes images. The difference is that CI stops deploying directly: it updates a version in the configuration repository, and the GitOps controller applies it. This removes production credentials from CI.

Can GitOps manage infrastructure outside Kubernetes?

Partly. Tools such as Crossplane or the Flux Terraform controller let you declare cloud resources as Kubernetes objects reconciled by GitOps. Many teams keep cloud infrastructure in Terraform or OpenTofu with its own pipeline instead. We cover the trade-offs in Cloud Infrastructure & IaC.

How are secrets handled?

Plaintext secrets never go into Git. We usually use External Secrets Operator with your existing secret manager, or Sealed Secrets or SOPS where a cloud secret manager is not available. Access to secrets is scoped per team and namespace.

How do we roll back a bad release?

Revert the commit that changed the version, and the controller restores the previous state, usually within minutes. For faster automatic rollback on bad metrics, we add Argo Rollouts or Flagger canary analysis. Database changes need backward-compatible migrations, which we help design.

How long does a GitOps implementation take?

Installing and securing the controller with a first set of applications usually takes two to four weeks. Migrating all workloads and add-ons depends on the number of services and clusters, commonly another four to eight weeks in waves.

Will our developers need to learn Kubernetes in depth?

No. With templates and a clear repository structure, most changes are editing a version or a value and opening a pull request. Argo CD's interface also gives developers visibility without cluster access. Platform engineers need deeper knowledge, which we transfer during the project.

What access do you need?

Admin access to the target clusters to install the controller, write access to the configuration repositories, and read access to application repositories and CI. Production changes are made through pull requests your team approves.

Can you take over an existing Argo CD setup that has grown messy?

Yes. We review the existing applications, projects, RBAC and repositories, then restructure with generators, clear ownership and upgraded versions without interrupting deployments.

Should our pull requests show the fully rendered Kubernetes manifests?

For high-change or regulated environments, yes. Rendering Helm and Kustomize in CI and committing or posting the final manifests lets reviewers see exactly what will change in the cluster, which catches surprises from chart upgrades. For smaller setups, controller-side rendering with a CI job that comments a rendered diff on each pull request gives most of the benefit with less repository noise.

How do we rebuild a cluster if the GitOps controller itself is lost?

We document and test a bootstrap sequence. With Flux, the bootstrap command reinstalls the controllers from the manifests already in Git. With Argo CD, installing it and applying one root application restores everything else. Sync waves or dependencies make sure CRDs and operators come up before the resources that need them. We rehearse this on an empty cluster before handover.

Can different teams use GitOps on the same cluster safely?

Yes, with tenancy controls. Argo CD AppProjects limit each team to approved repositories, namespaces and resource kinds, and map identity provider groups to projects. Flux applies each tenant's resources through a service account whose permissions cover only that tenant's namespaces. Admission policies add a second check, so a mistaken or malicious manifest is blocked whichever route it takes.

Will developers get notified when their deployment fails to sync?

Yes. Argo CD Notifications or the Flux notification controller can post sync and health results to Slack, Microsoft Teams or as a commit status on the pull request. Custom health checks make sure a deployment is reported healthy only when the application is actually ready, so developers hear about a stuck rollout without watching a dashboard.

Related services. More from Cloud & DevOps.

See Cloud & DevOps

Jump to

↑↓ to move↵ to open