Flux

Flux is an open-source set of GitOps controllers for Kubernetes that pulls configuration from Git repositories, OCI artifacts or Helm repositories and continuously reconciles clusters to match.

Also known as: Flux CD, FluxCD, Flux v2

Related terms in this glossary

How it works

Flux, created at Weaveworks and rebuilt as Flux v2, is a group of small controllers known as the GitOps Toolkit. Each one handles a single job and is configured with Kubernetes custom resources:

  • Source controller fetches content from Git, OCI registries, Helm repositories or S3-compatible buckets.
  • Kustomize controller applies manifests and Kustomize overlays, with pruning and health checks.
  • Helm controller manages Helm releases declaratively through HelmRelease objects.
  • Notification controller sends alerts and receives webhooks.
  • Image automation controllers can update image tags in Git when new images are pushed.

Flux is normally installed in each cluster, so every cluster pulls its own configuration. It relies on Kubernetes RBAC and has no built-in web UI, though third-party dashboards exist. Flux graduated from the CNCF in November 2022 and continues under community maintenance after Weaveworks closed in 2024.

Why it matters

Flux suits teams that want GitOps to feel like native Kubernetes: everything is a custom resource, it is light on resources and it works well in a per-cluster, pull-only model with no central hub holding credentials. Its strong OCI artifact and Helm support fit platform teams that package configuration like software. Teams that want a rich UI often prefer Argo CD. Gepton's GitOps service helps teams choose and set up either.

Flux in depth

Example: bootstrapping a fleet with Flux

Example: a hypothetical company runs staging and production clusters in two regions. An engineer runs flux bootstrap against the configuration repository for each cluster. Bootstrap installs the Flux controllers and commits their manifests to a cluster-specific path, so Flux then manages its own upgrades through Git. Each cluster path contains Kustomizations: one for infrastructure (ingress, cert-manager, monitoring), one for application workloads that dependsOn the infrastructure Kustomization, so applications wait until their dependencies are healthy. Cluster-specific values such as region and domain are injected through post-build variable substitution from a ConfigMap. Secrets are stored in Git encrypted with SOPS and decrypted by the kustomize-controller using a key from the cloud key management service.

Key building blocks

  • GitRepository, OCIRepository, HelmRepository, Bucket: sources that Flux fetches and verifies, including signature verification for Git commits and OCI artifacts signed with Cosign.
  • Kustomization: applies a path from a source on an interval, with prune, health checks, timeouts and dependencies.
  • HelmRelease: declares a Helm chart, version and values; the helm-controller installs, upgrades, tests and can remediate failed releases.
  • ImageRepository, ImagePolicy, ImageUpdateAutomation: scan registries and commit new image tags to Git according to a policy such as semantic version ranges.
  • Alerts and Providers: send reconciliation events to Slack, Teams, Git commit statuses and other targets.

Multi-tenancy and security

Flux supports tenant isolation by having each tenant's Kustomizations and HelmReleases run under a specific Kubernetes service account in the tenant's namespace, so a tenant can only create what that service account's RBAC allows. Platform teams keep cluster-wide resources in a separate path that tenants cannot modify. Because each cluster pulls its own state, no central system needs credentials to every cluster, which narrows the blast radius if one environment is compromised.

Operating and measuring Flux

The flux CLI shows reconciliation status (flux get), forces a sync (flux reconcile), pauses automation during incidents (flux suspend) and previews changes (flux diff kustomization). Flux controllers expose Prometheus metrics and Kubernetes events, so you can alert on Kustomizations or HelmReleases that are not Ready, and on reconciliation duration. Track time from merge to Ready as part of change lead time in DORA metrics. For progressive delivery, Flagger, a sibling Flux project, automates canary and blue-green rollouts.

Common mistakes

  • One giant Kustomization for the whole cluster, so one broken manifest blocks everything.
  • No dependsOn ordering, causing applications to fail while custom resource definitions are still installing.
  • Suspending reconciliation during an incident and forgetting to resume it.
  • Very short intervals on many objects, which adds load on Git hosts and the API server; use webhooks for fast feedback instead.

Flux implements GitOps using Kustomize and Helm; Argo CD is the main alternative. We help teams choose, set up and migrate in our GitOps service.

Questions about Flux

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

Can Flux and Argo CD be used together?

They can run in the same cluster, but they should not manage the same resources, or they will fight over the desired state. Some organizations use Flux to install cluster infrastructure and Argo CD for application teams who want its UI, or run different tools in different business units. It adds operational overhead, so most teams pick one as the standard. If you are migrating from one to the other, move ownership path by path and make sure each resource has exactly one controller at any time.

Is Flux still maintained after Weaveworks closed?

Yes. Flux is a CNCF graduated project with maintainers from several companies, and development and releases continued after Weaveworks shut down in 2024. As with any open-source dependency, check the project's recent release history, maintainers and roadmap on its official site and repository before adopting it, and keep your installation within the supported versions. Commercial support for Flux is available from several vendors for teams that want it.

Articles that mention Flux

All articles

Jump to

↑↓ to move↵ to open