GitOps: Example of a GitOps workflow using Argo CD
86%
Argo CD: Roll Back
Argo CD maintains a history of application revisions like a ReplicaSet does for Pods. Each time an application is synchronized, a new revision is created in the Git repository. This allows Argo CD to roll back to a previous revision if needed.
You can see the revision history of the application by using the following command:
argocd app history $APPNAME
The column REVISION shows the branch and the short ID of the commit that triggered the synchronization.
You can roll back to a previous revision using the following command:
argocd app rollback $APPNAME
However, a rollback cannot be performed on an application with automated sync enabled.
Example:
argocd app rollback $APPNAME 0
# Error output
{
"level":"fatal"Cloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
