---
title: Argo Rollouts 灰度发布与步骤控制实战
keywords:
- Argo Rollouts
- Canary
- setWeight
- pause
- 分步发布
description: 使用 Argo Rollouts 进行 Canary 灰度发布,示例展示 setWeight 与 pause 步骤控制,保障低风险上线。
categories:
- 文章资讯
- 技术教程
---
Argo Rollouts 灰度发布与步骤控制实战
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: web
spec:
replicas: 4
selector:
matchLabels:
app: web
strategy:
canary:
steps:
- setWeight: 25
- pause: { duration: 300 }
- setWeight: 50
- pause: { duration: 300 }
- setWeight: 100
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: example/web:latest
验证
- 通过
kubectl argo rollouts get rollout web观察步骤与权重推进
总结
分步权重与暂停控制可在真实流量中逐步验证新版本,降低上线风险。

发表评论 取消回复