Best Practices

GitOps on Kubernetes: Argo CD vs Flux

October 25, 2026 Kubezilla Team 9 min read
Terminal-style graphic reading GitOps on Kubernetes: Argo CD vs Flux

If you deploy to Kubernetes with a script that runs kubectl apply from a CI job, you already know the pain points: nobody is quite sure what is running in the cluster, manual hotfixes drift away from the repository, and rolling back means digging through old pipeline runs. GitOps fixes this by making a Git repository the single source of truth and letting an agent inside the cluster keep the live state in line with it.

Two CNCF projects lead this space: Argo CD and Flux. Both reached CNCF Graduated status within a week of each other at the end of 2022 (Flux on November 30, Argo on December 6), and both are mature, widely used and actively maintained. This guide explains how each one works, where they really differ, and how to decide which one fits your team. If you want the wider picture of mature CNCF projects first, see our list of top CNCF graduated projects every platform engineer should know.

What GitOps actually means

The OpenGitOps project defines a shared set of GitOps principles. It describes four ideas that any GitOps tool should follow:

  • Declarative: you describe the outcome you want, not the steps to get there.
  • Versioned and immutable: the desired state is stored in a way that keeps a full, traceable history, such as Git.
  • Pulled automatically: software agents fetch the desired state from the source on their own.
  • Continuously reconciled: agents keep comparing the actual state with the desired state and correct any difference.

The key shift is from push to pull. Instead of CI pushing changes into the cluster with admin credentials, a controller running in the cluster pulls from Git and applies what it finds. Argo CD and Flux both follow this model. They differ in how they package it, how people interact with it, and how they scale across many clusters.

Argo CD at a glance

Argo CD is the GitOps engine of the Argo project, which CNCF describes as Kubernetes native tools to run workflows, manage clusters and do GitOps. Argo CD runs as a controller that continuously compares the live state of each application with the target state in Git. When the two differ, the application is marked OutOfSync. You can see the difference in the UI and sync it either manually or automatically.

The main building blocks are:

  • Application: a custom resource that links a source (a Git repository, path and revision) to a destination (a cluster and namespace).
  • Project: a grouping that every Application belongs to, used to set limits and permissions. The examples in the docs use the project named default.
  • ApplicationSet: a controller bundled with Argo CD since v2.3 that generates many Applications from one template, using generators such as List, Cluster, Git and Matrix. This is the usual way to handle many clusters or a large monorepo.

Argo CD is known for its web UI, which gives a real time view of each application, including health and sync status. It also ships a CLI, single sign on (OIDC, OAuth2, LDAP, SAML 2.0 and providers such as GitHub and GitLab), its own RBAC policies for multi tenant use, PreSync, Sync and PostSync hooks for more complex rollouts, and rollback to any configuration committed to Git. Manifests can come from Kustomize, Helm, Jsonnet, plain YAML or custom plugins. For a deeper walkthrough, read ArgoCD Explained: GitOps-Based Continuous Delivery for Kubernetes.

Flux at a glance

Flux takes a toolkit approach. Instead of one central application, it is a set of focused controllers, called the GitOps Toolkit, and every piece of configuration is a Kubernetes custom resource. The main components are:

  • Source controllers: fetch desired state from GitRepository, OCIRepository, HelmRepository and Bucket sources on an interval, and produce artifacts for other controllers.
  • Kustomize controller: reconciles a Kustomization, which is a set of manifests to apply. Manual changes made with kubectl are reverted unless you suspend reconciliation or commit the change.
  • Helm controller: manages Helm releases through the HelmRelease resource.
  • Notification controller: sends alerts and receives webhooks through Provider, Alert and Receiver resources.
  • Image automation controllers: watch container registries and can write new image tags back to Git using ImageRepository, ImagePolicy and ImageUpdateAutomation.

Flux is installed with flux bootstrap, which commits Flux’s own manifests to your repository so that Flux then manages itself. It also supports what the project calls gitless GitOps, where the cluster pulls from an OCI registry while people still work in Git. Progressive delivery, such as canary releases, comes from Flux’s Flagger controller.

The core Flux controllers do not include a web UI. The Flux ecosystem page lists several options instead, including the Flux Operator Web UI (built by Flux core maintainers at ControlPlane), Headlamp and Backstage plugins, and terminal UIs such as flux9s. Our Flux CD GitOps Toolkit deep dive covers the controllers in more detail.

Argo CD vs Flux: the real differences

Both tools do the core job well: they watch Git, apply manifests, detect drift and correct it. The differences are about workflow and operating model.

  • User interface: Argo CD ships a full web UI and CLI out of the box. Flux is driven by the flux CLI and custom resources, with UIs coming from the wider ecosystem.
  • Unit of deployment: in Argo CD you think in Applications and ApplicationSets. In Flux you combine a source with a Kustomization or HelmRelease, and one source can feed several consumers.
  • Multi cluster model: Argo CD can deploy to and manage many clusters from one instance, which gives a single place to see everything. The Flux getting started guide bootstraps Flux into a cluster, with each cluster reading its own path in a fleet repository such as ./clusters/my-cluster.
  • Access for people: Argo CD has its own SSO and RBAC layer for users of its UI and API. With core Flux, people work through Git commits and the Kubernetes API, so access follows your Git host and cluster permissions.
  • Helm: Argo CD supports Helm charts as one manifest source with value overrides stored in Git. Flux has a dedicated Helm controller and a HelmRelease resource for each release.
  • Image updates: Flux includes image automation controllers that can write new image tags back to Git as part of the project.
  • Progressive delivery: Argo CD offers sync hooks that support blue/green and canary patterns. Flux pairs with Flagger.

Hands-on: try both on a test cluster

Prerequisites: a disposable test cluster (kind works well), kubectl with a working kubeconfig, and CoreDNS running in the cluster. For Flux you also need the flux CLI and a GitHub personal access token with repo permissions. The commands below come from the official getting started guides. Do not run them against a production cluster.

Argo CD

Create the namespace and install the stable manifests. The Argo CD docs recommend pinning a specific version for production instead of stable.

kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Reach the API server and UI with a port forward, then get the initial admin password. After you log in and change the password, delete the argocd-initial-admin-secret secret, because it stores the initial password in clear text.

kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd admin initial-password -n argocd
argocd login <ARGOCD_SERVER>

You can create the sample guestbook application from the CLI, or declare it in Git as an Application resource, which is the GitOps way:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: guestbook
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/argoproj/argocd-example-apps.git
    targetRevision: HEAD
    path: guestbook
  destination:
    server: https://kubernetes.default.svc
    namespace: guestbook

The Application must live in the same namespace as your Argo CD instance, usually argocd. To deploy the CLI version of the app, run argocd app sync guestbook.

Flux

Export GITHUB_TOKEN and GITHUB_USER, check that the cluster meets Flux’s requirements, then bootstrap Flux into a new fleet-infra repository:

flux check --pre
flux bootstrap github \
  --owner=$GITHUB_USER \
  --repository=fleet-infra \
  --branch=main \
  --path=./clusters/my-cluster \
  --personal

Next, clone fleet-infra and, from inside it, generate a source and a Kustomization for the podinfo sample app. The --export flag writes YAML files instead of changing the cluster directly. You commit and push them, and Flux applies them.

flux create source git podinfo \
  --url=https://github.com/stefanprodan/podinfo \
  --branch=master \
  --interval=1m \
  --export > ./clusters/my-cluster/podinfo-source.yaml

flux create kustomization podinfo \
  --target-namespace=default \
  --source=podinfo \
  --path="./kustomize" \
  --prune=true \
  --wait=true \
  --interval=30m \
  --retry-interval=2m \
  --health-check-timeout=3m \
  --export > ./clusters/my-cluster/podinfo-kustomization.yaml

Running both flows side by side on a test cluster is the fastest way to feel the difference: Argo CD puts an application dashboard in front of you, while Flux keeps everything in Git and custom resources.

How to choose

There is no wrong answer between two graduated projects. A few practical questions usually settle it:

  • Do developers need a visual view of their apps? If many teams want to log in, see sync status and trigger syncs themselves, Argo CD’s built in UI, SSO and RBAC save a lot of work.
  • Do you want one control point for many clusters? A central Argo CD with ApplicationSets is a common pattern. If you prefer each cluster to be self managing and bootstrapped from its own path in Git, Flux fits that model naturally.
  • Is your platform built around Helm and OCI artifacts? Flux’s HelmRelease, OCIRepository and image automation controllers cover these cases without extra tools.
  • How much do you want to compose? Flux’s separate controllers are easy to combine and extend. Argo CD gives you a more complete product in one install.

Whichever you pick, the bigger win comes from the practices around it: clear repository layout, environment promotion through pull requests, and policy checks before merge. Our guide on GitOps from dev to prod automation walks through a promotion flow you can apply with either tool.

Key takeaways

  • GitOps means desired state in Git, pulled and continuously reconciled by an agent in the cluster.
  • Argo CD and Flux are both CNCF Graduated projects (Argo in December 2022, Flux in November 2022).
  • Argo CD is application centric, with a built in web UI, SSO, RBAC and ApplicationSets for many clusters.
  • Flux is a toolkit of controllers configured through custom resources, with built in Helm, OCI and image automation support.
  • Flux core has no UI, but the ecosystem offers options such as the Flux Operator Web UI and Headlamp and Backstage plugins.
  • Try both on a test cluster with the official getting started commands before you commit.

Sources

OpenGitOps principles; CNCF project page: Argo; CNCF project page: Flux; Argo CD documentation; Argo CD getting started; Argo CD declarative setup; Argo CD ApplicationSet; Flux core concepts; Flux components; Flux getting started; Flux ecosystem; Flux Operator Web UI; Argo CD releases on GitHub; Flux releases on GitHub.

One thought on “GitOps on Kubernetes: Argo CD vs Flux”

Leave a comment