How do you migrate an existing Deployment to a Rollout with no downtime?
AdvancedConceptProgressive Delivery, Image Updater & Notifications
Answer
Use workloadRef so the Rollout references the existing Deployment's pod template instead of copying it:
spec:
replicas: 5
workloadRef:
apiVersion: apps/v1
kind: Deployment
name: web
scaleDown: progressively # or onsuccess / never
Rollouts creates its own ReplicaSet from the template and scales the Deployment down as Rollout pods become ready. Once complete, remove the Deployment or keep it at zero replicas, and set the Deployment's replicas out of Argo CD's control to avoid a fight.
More on Progressive Delivery, Image Updater & Notifications
What is Argo Rollouts and how does it relate to Argo CD?BeginnerHow does a canary Rollout work without a service mesh or ingress integration?IntermediateWhich traffic routers does Argo Rollouts support?IntermediateDescribe the main canary step types.BeginnerWhat is an AnalysisTemplate, and what providers can it use?IntermediateWhat do `failureLimit`, `inconclusiveLimit` and `consecutiveErrorLimit` mean?Advanced