mcpField
A
ArgoRollouts

ArgoRollouts

github.com/julianobarbosaCloud & DevOps1452 installsUpdated 2d ago
Repository

About ArgoRollouts

ArgoRollouts is a skill guide to the Kubernetes controller for progressive delivery. It helps Kubernetes operators configure and troubleshoot blue-green and canary deployments, traffic routing, and metrics-based analysis.

Key features

  1. 01Blue-green and canary strategies
  2. 02Gradual traffic shifting
  3. 03Metrics-based promotion and rollback
  4. 04AnalysisTemplate and AnalysisRun guidance
  5. 05Traffic management provider integrations
  6. 06kubectl-argo-rollouts command reference

Use cases

  1. 01Configure a canary rollout with analysis gates
  2. 02Validate a preview before blue-green promotion
  3. 03Investigate a paused rollout or failed analysis

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/julianobarbosa/claude-code-skills --skill argorollouts

After installing, type/argorolloutsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
analysis-metrics.md
cli-commands.md
deployment-strategies.md
examples.md
summary.md

Details

From the project README

Argo Rollouts Skill

Comprehensive guide for Argo Rollouts - a Kubernetes controller providing advanced deployment capabilities including blue-green, canary, and experimentation for Kubernetes.

Quick Reference

ResourceDescription
RolloutReplaces Deployment, adds progressive delivery strategies
AnalysisTemplateDefines metrics queries for automated analysis
AnalysisRunInstantiated analysis from template
ExperimentRuns ReplicaSets for A/B testing
ClusterAnalysisTemplateCluster-scoped AnalysisTemplate

Core Concepts

Rollout CRD

The Rollout resource replaces standard Kubernetes Deployment and provides:

  • Blue-Green Strategy: Instant traffic switching between versions
  • Canary Strategy: Gradual traffic shifting with analysis gates
  • Traffic Management: Integration with service meshes and ingress controllers
  • Automated Analysis: Metrics-based promotion/rollback decisions
Deployment Strategies

Blue-Green:

strategy:
  blueGreen:
    activeService: my-app-active
    previewService: my-app-preview
    autoPromotionEnabled: false

Canary:

strategy:
  canary:
    steps:
    - setWeight: 20
    - pause: {duration: 5m}
    - setWeight: 50
    - analysis:
        templates:
        - templateName: success-rate

Traffic Management Integrations

ProviderConfiguration Key
IstiotrafficRouting.istio
NGINX IngresstrafficRouting.nginx
AWS ALBtrafficRouting.alb
LinkerdtrafficRouting.linkerd
SMItrafficRouting.smi
TraefiktrafficRouting.traefik
AmbassadortrafficRouting.ambassador

CLI Commands (kubectl-argo-rollouts)

# Installation
kubectl argo rollouts version

# Rollout Management
kubectl argo rollouts get rollout <name>
kubectl argo rollouts status <name>
kubectl argo rollouts promote <name>
kubectl argo rollouts abort <name>
kubectl argo rollouts retry <name>
kubectl argo rollouts undo <name>
kubectl argo rollouts pause <name>
kubectl argo rollouts restart <name>

# Dashboard
kubectl argo rollouts dashboard

# Validation
kubectl argo rollouts lint <file>

Analysis Providers

ProviderUse Case
PrometheusMetrics queries with PromQL
DatadogDatadog metrics API
New RelicNRQL queries
WavefrontWavefront queries
KayentaCanary analysis platform
CloudWatchAWS CloudWatch metrics
WebHTTP endpoint checks
JobKubernetes Job-based analysis

Reference Documentation

Common Patterns

Canary with Automated Analysis
steps:
- setWeight: 10
- pause: {duration: 1m}
- analysis:
    templates:
    - templateName: success-rate
    args:
    - name: service-name
      value: my-service
- setWeight: 50
- pause: {duration: 2m}
Blue-Green with Pre-Promotion Analysis
strategy:
  blueGreen:
    activeService: active-svc
    previewService: preview-svc
    prePromotionAnalysis:
      templates:
      - templateName: smoke-tests
    autoPromotionEnabled: false

Troubleshooting

IssueSolution
Rollout stuck in PausedRun kubectl argo rollouts promote <name>
Analysis failingCheck AnalysisRun status and metric queries
Traffic not shiftingVerify traffic management provider config
Pods not scalingCheck HPA and resource limits

Best Practices

  1. Always use analysis gates for production canaries
  2. Set appropriate pause durations between weight increases
  3. Configure rollback thresholds in AnalysisTemplates
  4. Use preview services for blue-green validation
  5. Monitor AnalysisRuns during deployments
  6. Version your AnalysisTemplates alongside application code

Comments

Markdown supported