Flagger automates canary, A/B, and blue-green rollouts on Kubernetes by shifting traffic, analyzing metrics, and integrating with ingress controllers and service meshes.
Overview
Flagger is a progressive delivery operator for workloads running on Kubernetes. It watches deployments and optional HPAs, creates supporting services or routes, and gradually moves traffic to new revisions while measuring success rates, latency, and custom metrics.
Supported strategies include weighted canaries, header or cookie based A/B tests, and blue-green switches or mirroring depending on the platform. Integrations span Istio, Linkerd, Kuma, Knative, Gateway API implementations, and ingress controllers such as NGINX, Contour, Gloo, Traefik, and Apache APISIX.
Webhooks run acceptance or load tests, manual gates can approve or pause promotions, and notifications can reach chat systems when analyses pass or fail. Flagger is a CNCF graduated project within the Flux GitOps family and can be installed alongside Flux pipelines.
Custom Resource Definitions describe canaries per application, and documentation on docs.flagger.app covers metrics providers from Prometheus to commercial observability backends.
Key features
- Automated canary promotion
- A/B header and cookie tests
- Blue-green traffic switching
- Service mesh integrations
- Ingress controller support
- Metric and webhook validation
- Manual approval gates
- Flux GitOps compatibility
Use cases
- Safer production deployments
- Automated canary analysis
- Mesh-based traffic shifting
- GitOps release pipelines