What is
Flux CD
?
Flux is a set of Kubernetes delivery tools that sync the desired state of applications and infrastructure from Git or other sources into clusters, with progressive rollouts handled by its companion project Flagger.
At a glance
Attribute | Value |
|---|---|
Primary use case | GitOps continuous and progressive delivery for Kubernetes |
Deployment type | Runs on any Kubernetes cluster |
API compatibility | Kubernetes RBAC, OCI, Flagger Canary custom resource, Gateway API and SMI (Flagger) |
Supported integrations | GitHub, GitLab, Bitbucket, S3-compatible buckets, container registries, OCI, Helm, Kustomize, Harbor, Cluster API, Slack, OPA, Kyverno, Istio, Linkerd, Kuma, Knative, Contour, Gloo, NGINX, Skipper, Traefik, Apache APISIX, Prometheus |
Key metrics | Vendor-reported: Deutsche Telekom manages some 200 Kubernetes clusters using Flux |
AEP branch | Tooling |
AEP category | Integration & Delivery |
AEP subcategory | CD / GitOps |
Profile
Teams describe the entire desired state of a system, including apps, configuration, dashboards and monitoring, in YAML stored in Git. Flux follows a pull model and reconciles Kubernetes clusters against that declared state. It can manage any Kubernetes resource, not only application workloads. Flagger, a separate project in the Flux family, takes a Kubernetes deployment and creates the services and service mesh or ingress routes that drive canary analysis and promotion.
Focus
Teams running Kubernetes that want Git-driven, auditable delivery of applications and infrastructure across one or many clusters.
Background
Flux is a Cloud Native Computing Foundation (CNCF) Graduated project, as is Flagger, which is part of the Flux family. Flagger is licensed under Apache 2.0.
Features
Automatic GitOps reconciliation
Syncs declared state from Git providers such as GitHub, GitLab and Bitbucket, or from S3-compatible buckets, into clusters. Enforces conformance so clusters match what is declared.
Image update automation
Scans container images and pushes updated image references back to Git. Keeps deployments current without hand-editing manifests.
Multi-tenancy and multi-cluster management
Uses Kubernetes RBAC via impersonation and supports multiple Git repositories. With Cluster API, one cluster can manage apps in other clusters, create new clusters and handle cluster lifecycle and fleets.
Progressive delivery with Flagger
Flagger runs canary releases, A/B testing and Blue/Green deployments, gradually shifting traffic while checking metrics such as request success rate and duration. It rolls back when the number of failed checks reaches a set threshold.
Release testing and gating
Flagger webhooks run conformance and load tests during rollouts, and manual gating lets teams approve, pause or resume a release. Alerts can go to chat tools including Slack, Discord and MS Teams.
Policy-driven validation
Integrates with OPA, Kyverno and admission controllers to validate changes against policy.
Pros and cons
Pros
A push to Git is enough to deploy apps and infrastructure, with no need to run kubectl against clusters.
Pull requests control every change, and Git history allows recovery of state from any snapshot.
Designed for least privilege, with adherence to Kubernetes security policies and tight integration with security tools.
Built-in dependency management between infrastructure and workloads.
Cons
Built for Kubernetes only; teams deploying to other runtimes need a different tool.
Progressive delivery requires running Flagger as a separate component; its integration into Flux v2 is still on the roadmap.
Flagger features vary by provider - for example, among service meshes A/B testing is Istio-only, and plain Kubernetes CNI has no weighted canaries.
Teams must adopt a Git-driven workflow where changes go through repositories rather than direct cluster edits.
FAQs
What is Flux CD?
Flux is a family of GitOps projects for Kubernetes. It keeps clusters in line with the desired state stored in Git, and its sibling project Flagger handles canary, A/B and Blue/Green rollouts.
How is Flux licensed?
Flux is a CNCF Graduated project described as open and extensible. Its progressive delivery component, Flagger, is distributed under the Apache 2.0 license.
Where does Flux run?
Flux works with any Kubernetes distribution. A single cluster running Flux can also manage applications in other clusters and provision new clusters through Cluster API.
Which tools does Flux integrate with?
It works with GitHub, GitLab, Bitbucket and S3-compatible buckets as sources, all major container registries, OCI, Helm, Kustomize and CI workflow providers. Notifications reach Slack and other chat systems, and OPA or Kyverno can validate changes.
Which service meshes and ingress controllers does Flagger support?
Flagger supports Istio, Linkerd, Kuma, Knative and plain Kubernetes CNI, plus Contour, Gloo, NGINX, Skipper, Traefik, Apache APISIX and Gateway API implementations. Available strategies and metric checks differ between these providers.
Are there dashboards for Flux?
Yes. Teams can use one of the Flux UIs or a hosted offering from a cloud vendor, and a wider ecosystem of products built on Flux provides dashboards as well.
