flagger

Configure Flagger canary, A/B, and blue/green progressive delivery on Kubernetes.

4|2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/Aidas-dev/k8s-agent-skills --skill flagger-aidas-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: flagger
Source: https://github.com/Aidas-dev/k8s-agent-skills/tree/main/skills/flagger
Command: npx skills add https://github.com/Aidas-dev/k8s-agent-skills --skill flagger-aidas-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Rolling out new application versions on Kubernetes without traffic shifting and automated metric analysis risks exposing all users to regressions, and manually wiring Canary CRDs, webhooks, and metric checks is error-prone. ## Core Features & Use Cases - Canary CRD Configuration: Define Canary resources with analysis strategies including weighted traffic steps, A/B header/cookie routing, and blue/green with mirroring. - Metrics and Webhooks: Configure built-in Prometheus checks (request-success-rate, request-duration), custom MetricTemplate queries, and rollout webhooks for load tests and approval gates. - Deployment Guidance: Install Flagger via Flux HelmRelease with provider-specific settings for Istio, Linkerd, NGINX, Contour, Gateway API, or plain Kubernetes CNI. - Use Case: You want to roll out a new version of a Deployment gradually, shifting 10% of traffic at a time while checking a 99% success rate in Prometheus, with automatic rollback if thresholds fail. ## Quick Start Ask the agent to create a Flagger Canary resource for your Deployment with stepwise traffic shifting and Prometheus success-rate analysis.

Frequently Asked Questions about flagger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a canary deployment with Flagger on Kubernetes?▼

Create a Canary resource targeting your Deployment with an analysis block defining interval, threshold, stepWeight, and maxWeight. Flagger creates primary and canary Deployments and services, then shifts traffic gradually while checking metrics before promoting.

What is the difference between Flagger canary, A/B testing, and blue/green strategies?▼

Canary uses stepWeight and maxWeight for gradual traffic shifting, A/B testing uses iterations plus header or cookie match conditions to route specific users, and blue/green uses iterations for an instant switch, optionally with traffic mirroring.

Does Flagger support weighted traffic shifting without a service mesh?▼

No. With the kubernetes provider (plain CNI), Flagger only supports blue/green deployments using iterations. Weighted canary requires a service mesh like Istio or Linkerd, or an ingress controller such as NGINX or Contour.

Why does my Flagger canary analysis fail immediately?▼

The most common cause is an unreachable Prometheus metricsServer, which makes the analysis loop fail at the first check. Also verify CRDs are installed, the targetRef points to a Deployment, and webhook URLs are reachable from the Flagger pod.

How do I add custom Prometheus metrics to Flagger analysis?▼

Define a MetricTemplate CRD with your Prometheus address and query using the template variables namespace, target, and interval. Reference it in the Canary analysis metrics list via templateRef with thresholdRange values.