Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. It automates the deployment of the desired application states defined in Git repositories to Kubernetes clusters. By continuously monitoring the state of applications, Argo CD ensures that the live state of applications matches the desired state specified in Git.
One common issue encountered by users of Argo CD is Application Resource Drift. This occurs when resources in the Kubernetes cluster deviate from the desired state defined in the Git repository. Symptoms of this issue include discrepancies between the live state of resources and the state defined in Git, often visible in the Argo CD dashboard.
Resource drift is a common challenge in environments where manual changes are made directly to the Kubernetes cluster. These changes can lead to inconsistencies between the live state and the desired state specified in Git. Argo CD detects these discrepancies and flags the application as OutOfSync.
Resolving resource drift involves reconciling the live state with the desired state. Here are the steps to address this issue:
To reconcile the differences, perform a manual sync from the Argo CD dashboard:
This action will apply the desired state from Git to the Kubernetes cluster, resolving the drift.
If the drift persists, further investigation is needed:
To prevent future occurrences of resource drift, consider the following best practices:
For more information on managing application states with Argo CD, visit the official Argo CD documentation.
Let Dr. Droid create custom investigation plans for your infrastructure.
Book Demo