GitOps & ArgoCD (50 Qs)•Part 3: Enterprise Scale, Security & Edge GitOps (Senior / Staff)
Progressive Delivery with Argo Rollouts: Blue-Green vs Canary strategy and AnalysisTemplate metrics.
senior LevelCode ExampleComponentsSecurity & Auth
In Simple Words:
Standard Kubernetes Deployment only supports basic RollingUpdate without traffic splitting or metric analysis. Argo Rollouts replaces Deployment with a custom controller supporting fine-grained Canary releases integrated with Prometheus metrics.
yaml
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: billing-svc
spec:
replicas: 10
strategy:
canary:
analysis:
templates:
- templateName: success-rate
args:
- name: service-name
value: billing-svc
steps:
- setWeight: 10
- pause: { duration: 10m }
- setWeight: 50
- pause: { duration: 15m }
- AnalysisTemplate: Automatically queries Prometheus every minute. If HTTP 5xx error rate exceeds 1%, the rollout automatically aborts and rolls traffic back to 100% stable version.