The flow of deploying an application to Kubernetes using Argo CD from a Git repository containing manifests generally follows these steps:
1. Configuration & Setup:
Argo CD Installation: Argo CD needs to be installed and running within your Kubernetes cluster.
Git Repository: Your application's Kubernetes manifests (YAML files defining deployments, services, etc.) are stored in a Git repository (e.g., GitHub, GitLab, Bitbucket).
Argo CD Application Resource: You create an Application resource in Argo CD. This resource defines:
Source: The location of your Git repository (URL, branch, path to manifests).
Destination: The Kubernetes cluster and namespace where the application should be deployed.
Sync Policy: How Argo CD should synchronize the desired state (from Git) with the live state (in Kubernetes).
2. Initial Deployment:
Application Creation: Once the Application resource is created in Argo CD, it automatically detects the manifests in the Git repository.
Synchronization: Argo CD compares the desired state (manifests) with the live state in the cluster. Since it's an initial deployment, the cluster likely has no resources matching the manifests.
Resource Creation: Argo CD deploys the resources defined in the manifests to the specified Kubernetes cluster and namespace.
3. Continuous Monitoring and Synchronization:
Git Repository Monitoring: Argo CD continuously monitors the Git repository for changes to the manifests.
Drift Detection: It compares the live state in the Kubernetes cluster with the desired state in the Git repository. If any differences (drift) are detected, Argo CD can automatically or manually synchronize the cluster to match the desired state.
4. Updates and Rollouts:
Manifest Changes: When you update the manifests in the Git repository (e.g., a new image version, configuration changes), Argo CD detects these changes.
Synchronization: Argo CD automatically (if configured) or manually (triggered by you) synchronizes the cluster with the updated manifests.
Rolling Updates: Argo CD can perform rolling updates, ensuring minimal downtime during deployments. It progressively updates pods with the new version while monitoring their health.
Declarative Management: Define your desired state in Git, and Argo CD ensures the cluster matches that state.
Automated Deployment: Changes to Git automatically trigger deployments.
Version Control: Track and manage application versions through Git commits.
Rollback Capabilities: Easily revert to previous versions if needed.
Visibility and Monitoring: Provides a clear view of the application's deployment status and health.
In summary, Argo CD acts as a bridge between your Git repository and your Kubernetes cluster, automating deployments and ensuring consistency between your desired state and the actual state of your application.
“argocd from manifest in git repository to kubernetes deployment - what is the flow.” Conversation with gemini-1.5-pro-exp-0801, from the LMArena Human Preference 100K dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m851ph9nmz09kp2vy2w244kf