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观察步骤与权重推进
总结
分步权重与暂停控制可在真实流量中逐步验证新版本,降低上线风险。

发表评论 取消回复