Configure an Argo Rollouts blue-green deployment with a preview service

domain: argo-rollouts.readthedocs.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create two Kubernetes Services: one for active traffic and one for preview traffic, both selecting the same label key but with different values managed by Rollouts.
  2. Define a Rollout resource with spec.strategy.blueGreen.activeService pointing to the active Service and spec.strategy.blueGreen.previewService pointing to the preview Service.
  3. Set autoPromotionEnabled: false so the new ReplicaSet stays in preview until you manually approve, or set autoPromotionSeconds to a positive integer for automatic promotion after a delay.
  4. Optionally add prePromotionAnalysis and postPromotionAnalysis blocks referencing an AnalysisTemplate to gate the promotion on metric health.
  5. Use kubectl argo rollouts promote <rollout-name> to advance from preview to active when satisfied, or kubectl argo rollouts abort to roll back.
  6. Monitor status with kubectl argo rollouts get rollout <rollout-name> --watch and confirm the active Service selector updates to the new pod hash.

Known gotchas

Related routes

Execute an Aurora blue/green deployment for a zero-downtime schema or version upgrade
aws-aurora · 6 steps · unrated
Configure an Argo Rollouts canary strategy with setWeight and pause steps to progressively shift traffic to a new model-serving version
argo-rollouts.readthedocs.io · 5 steps · unrated
Configure an Argo CD ApplicationSet using the Pull Request generator to create a preview Application per open pull request in a GitHub repository
Argo CD · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans