# Traefik Canary Deployments This guide shows you how to use the [Traefik](https://doc.traefik.io/traefik/) and Flagger to automate canary deployments. ![Flagger Traefik Overview](https://raw.githubusercontent.com/fluxcd/flagger/main/docs/diagrams/flagger-traefik-overview.png) ## Prerequisites Flagger requires a Kubernetes cluster **v1.16** or newer and Traefik **v2.3** or newer. Install Traefik with Helm v3: ```bash helm repo add traefik https://helm.traefik.io/traefik kubectl create ns traefik cat < 5 Halt podinfo.test advancement 404s percentage 6.45 > 5 Halt podinfo.test advancement 404s percentage 7.60 > 5 Halt podinfo.test advancement 404s percentage 8.69 > 5 Halt podinfo.test advancement 404s percentage 9.70 > 5 Rolling back podinfo.test failed checks threshold reached 5 Canary failed! Scaling down podinfo.test ``` If you have [alerting](../usage/alerting.md) configured, Flagger will send a notification with the reason why the canary failed. For an in-depth look at the analysis process read the [usage docs](../usage/how-it-works.md).