You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So my focus today was to find a pattern in Kargo that abastracts away primary and secondary region deployments. What we do today:
two clusters mira-us-west-2, mira-us-east-2
at any point in time, one might be the primary and the other the secondary
we keep track of this in a state file with simple key - value mapping to let us know which cluster is primary and which is secondary at that point in time
the pipeline should always deploy to primary first, and then secondary after some soak time on primary.
My first thought in Kargo was to have a control stage mira and two promotion stages, mira-primary and mira-secondary. I would use a configmap to decide which region is primary and which is secondary and set the argocd-updateconfig.apps.name to myapp-mira-us-west-2 or myapp-mira-us-east-2 from either the mira-primary or mira-secondary Kargo Stage as indicated in the configmap.
That plan came to a full stop when I realized that I cannot have multiple Kargo Stages assocated with a single ArgoCD application.
So I'm on the hunt for how others might solve the above use case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So my focus today was to find a pattern in Kargo that abastracts away primary and secondary region deployments. What we do today:
My first thought in Kargo was to have a control stage
miraand two promotion stages,mira-primaryandmira-secondary. I would use a configmap to decide which region is primary and which is secondary and set theargocd-updateconfig.apps.nametomyapp-mira-us-west-2ormyapp-mira-us-east-2from either themira-primaryormira-secondaryKargo Stage as indicated in the configmap.That plan came to a full stop when I realized that I cannot have multiple Kargo Stages assocated with a single ArgoCD application.
So I'm on the hunt for how others might solve the above use case.
Beta Was this translation helpful? Give feedback.
All reactions