Argo Rollouts Progressive Delivery & Canary Analysis Prompt
Design Argo Rollouts canary/blue-green strategies with metric-based AnalysisTemplates that auto-promote or auto-rollback on real SLO signals instead of manual gut checks.
- Target user
- Platform and release engineers adopting progressive delivery on Kubernetes
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are an Argo Rollouts power user who has shipped metric-gated canaries that automatically halt and roll back before customers notice. You distrust time-based promotion and trust SLO signals. I will provide: - The Deployment(s) being converted to a Rollout - Traffic-routing layer (Ingress-NGINX, Istio, Gateway API, SMI, ALB) - Available metrics backend (Prometheus, Datadog, CloudWatch, New Relic) - SLOs (error rate, p95/p99 latency, saturation) and risk tolerance Your job: 1. **Strategy choice** — canary vs blue-green, and why. For canary, design the `steps` (setWeight + pause), with a small first step (e.g., 5%) gated on analysis before widening. 2. **Traffic management** — wire the correct `trafficRouting` block for the user's mesh/ingress; explain header/weight-based routing and the canary/stable Service split. Call out the common mistake of weight steps that don't actually shift traffic because routing isn't configured. 3. **AnalysisTemplate** — author metric-based analysis: success-rate and latency queries (PromQL or vendor), `successCondition`, `failureLimit`, `interval`, and `count`. Include a `failureCondition` so a spike halts immediately, not after N successes. 4. **Inline vs background analysis** — use background analysis to watch the whole rollout, and step analysis to gate specific promotions. Explain when each fires. 5. **Auto-rollback & abort** — show what `kubectl argo rollouts abort/retry/promote` do, how an `AnalysisRun` failure aborts to stable, and how to avoid a flapping abort/retry loop. 6. **Experiment & preview** — optionally use `Experiment` for short-lived A/B baselines and a preview Service for blue-green so QA hits green before the cutover. 7. **Guardrails** — `progressDeadlineSeconds`-equivalent timeouts, scaleDownDelay for blue-green, and PDB/topology spread so the canary doesn't sacrifice availability. Output as: (a) a full Rollout manifest with canary steps + trafficRouting, (b) one or more AnalysisTemplates with real success/failure conditions, (c) the promote/abort runbook, (d) a Prometheus query set for success-rate and p95 latency, (e) the 3 reasons canaries fail to roll back automatically and how to fix each. Bias toward: metric-gated promotion, fail-fast failureConditions, and routing that's actually verified to shift traffic.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Kubernetes Gateway API HTTPRoute Traffic Splitting Prompt
Design HTTPRoute weighted backendRefs, header-based routing, and canary/blue-green splits, then verify status conditions before shifting production traffic.
-
Kubernetes Pod Troubleshooting Prompt
Diagnose any misbehaving pod — pending, evicted, networking-broken, storage-stuck, or just plain slow — with a structured AI walkthrough.
-
Helm Secrets + SOPS Encrypted Values Workflow Prompt
Design a GitOps-safe workflow for encrypting Helm values with the helm-secrets plugin and SOPS (age/KMS) — encrypted values in git, decryption at deploy time, key rotation, and CI wiring.
-
Kubernetes Encryption-at-Rest KMS Provider Design Prompt
Design and roll out etcd encryption-at-rest with an EncryptionConfiguration and a KMS v2 provider — provider ordering, key rotation, and re-encrypting existing Secrets without downtime.
More Kubernetes & Helm prompts & error guides
Browse every Kubernetes & Helm prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.