Something went wrong ? Roll everything back !
Create a new pipeline named "Rollback"
Add new Stage
Choose stage type enable manifest.
enable manifest
You can name the stage : Enable previous version
Enable previous version
In the Enable (Manifest) Configuration:
Enable (Manifest) Configuration
Select the namespace where you deployed your application
Select ReplicaSet as Kind
Choose a Choose a target dynamically
Choose a target dynamically
Select your replicaSet in the Cluster section
Choose Second Newest as Target
Second Newest
Choose stage type disable manifest.
disable manifest
Make sure that this stage depend on Enable previous version
You can name the stage : disable newest version
disable newest version
In the Disable (Manifest) Configuration:
Disable (Manifest) Configuration
Select the namespace where did you deployed your application
Select ReplicaSet as KindChoose a Choose a target dynamically
Choose Newest as Target
Newest
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 5 years ago