Rollback pipeline
Something went wrong ? Roll everything back !
Exercice:
Enable previous stage:
Create a new pipeline named "Rollback"
Add new Stage
Choose stage type
enable manifest.You can name the stage :
Enable previous versionIn the
Enable (Manifest) Configuration:Select the namespace where you deployed your application
Select ReplicaSet as Kind
Choose a
Choose a target dynamicallySelect your replicaSet in the Cluster section
Choose
Second Newestas Target

Disable previous stage:
Add new Stage
Choose stage type
disable manifest.Make sure that this stage depend on
Enable previous versionYou can name the stage :
disable newest versionIn the
Disable (Manifest) Configuration:Select the namespace where did you deployed your application
Select ReplicaSet as KindChoose a
Choose a target dynamicallySelect your replicaSet in the Cluster section
Choose
Newestas Target

Save the pipeline
Run the pipeline
In the infrastructure section, you can see that the black version is disabled and the red one is enabled

Last updated
Was this helpful?