flagger icon indicating copy to clipboard operation
flagger copied to clipboard

[question] Rollbacking after promotion

Open rodolfo-picoreti opened this issue 6 years ago • 4 comments

Hi, we are currently using flux in production and are considering using flagger as well.

After the canary analysis end the rollback gate is no longer considered. So what is the intended gitops flow to rollback a deployment if a problem was found after the promotion? If we simply change the container image, for instance, a new canary analysis would start, but that is not desirable since we know that this is a "safe change" and we need to change production back to a stable state asap.

Related: #453 , #468.

rodolfo-picoreti avatar Jun 10 '20 14:06 rodolfo-picoreti

A rollback can be done without an analysis by setting skipAnalysis: true.

stefanprodan avatar Jun 10 '20 14:06 stefanprodan

@stefanprodan thanks for the quick reply :heart: (and sorry for missing that on the docs, my bad).

So the current workflow for rollingback a deployment after promotion with flux and flagger would be something like:

- fluxcd.io/automated: "true"
- tag: "badimageversion"   
- skipAnalysis: "false"

+ fluxcd.io/automated: "false"
+ tag: "goodimageversion"
+ skipAnalysis: "true"

?

rodolfo-picoreti avatar Jun 10 '20 15:06 rodolfo-picoreti

Yes

stefanprodan avatar Jun 10 '20 15:06 stefanprodan

Thank you very much !

rodolfo-picoreti avatar Jun 10 '20 17:06 rodolfo-picoreti