Progressive delivery Kubernetes operator (Canary, A/B Testing and Blue/Green deployments)
open sourceApache-2.0self-hostablefree
Flagger is a Kubernetes operator that automates releases by shifting traffic to a new version step by step while it checks metrics and runs tests, and rolls back when they fail. A Canary custom resource points at a Deployment (and optionally its HPA); Flagger creates the primary and canary objects and the routing for the chosen provider: Istio, Linkerd, Kuma, Knative, Contour, Gloo, NGINX, Skipper, Traefik, Apache APISIX or any Gateway API implementation. It supports canary, A/B testing and blue/green strategies, metric checks against Prometheus, Datadog, CloudWatch, New Relic and others, webhooks for load tests and manual gates, and Slack, Teams, Rocket and Discord alerts. It's part of the Flux family, a CNCF graduated project under Apache-2.0.
Ways to install
On Kubernetes
Problems it solves
- roll out a new version to a small share of users first and roll back automatically if errors go up
- promote a Kubernetes deployment only when its request success rate and latency stay within limits
- run load tests and acceptance tests against the new version before it gets real traffic
- route beta users to a new version by header or cookie for an A/B test
- do blue/green deployments on Kubernetes without a service mesh
- require a manual approval in Slack or a webhook before a release gets full traffic
- use Datadog or CloudWatch metrics to decide whether a release is healthy
- canary releases with my existing ingress controller instead of adopting a mesh
- mirror live traffic to the new version before shifting any users to it
- get notified in Slack or Teams when a rollout advances, succeeds or rolls back
- trigger a canary analysis when a ConfigMap or Secret a deployment uses changes
Features
- Canary custom resource targeting a Deployment and optional HPA
- canary (weighted traffic), A/B testing (header and cookie routing) and blue/green (traffic switch or mirroring)
- providers: Istio, Linkerd, Kuma, Knative, Contour, Gloo, NGINX, Skipper, Traefik, Apache APISIX, Gateway API and SMI
- built-in request success rate and request duration checks
- custom metric checks with Prometheus, Datadog, CloudWatch, New Relic, Graphite, Google Cloud Monitoring, InfluxDB, Dynatrace, Keptn and Splunk
- webhooks for confirm-rollout, pre-rollout, rollout, confirm-traffic-increase, confirm-promotion, post-rollout, rollback and events
- load tester for generating traffic during analysis (hey, ghz, k6, Helm and kubectl tests)
- alerts to Slack, Microsoft Teams, Rocket and Discord
- tracks ConfigMaps and Secrets referenced by a Deployment
- Helm chart and Flux installation
Limitations
- No A/B testing on Linkerd, Kuma or Knative: header and cookie routing works with Istio, Contour, Gloo, NGINX and the Gateway API2
Capabilities
| Has an API | plan not known |
|---|---|
| Sends webhooks | plan not known |
Alternatives
The same job
These do what Flagger does.
- Argo Rollouts Progressive Delivery for Kubernetes
