ArgoCD

Screenshot of ArgoCD Logo

ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes, revolutionizes the application deployment process. At its essence, ArgoCD enables organizations to manage and automate the deployment of applications through Git repositories, promoting a declarative approach to configuration and versioning. It continuously monitors the desired state of applications defined in Git and automatically reconciles any divergences with the current state in the Kubernetes cluster. This ensures that applications are consistently deployed and maintained across different environments. ArgoCD’s intuitive user interface provides visibility into the deployment status, allowing for easy tracking and rollbacks. With support for multiple clusters and repositories, ArgoCD empowers teams to achieve efficient, scalable, and auditable continuous delivery workflows in Kubernetes environments.

Sample ArgoCD Commands

Below is a list of common ArgoCD CLI commands for managing Kubernetes applications:

Logging in to Argo CD Server

To log in to the Argo CD server, use the following command:

 argocd login <argocd-server-url> --username <username> --password <password>

Setting the Current Context

Before executing any Argo CD CLI commands, you need to set the current context to the Argo CD server:

 argocd context <argocd-server-url>

Listing Applications

List all applications managed by Argo CD:

 argocd app list

Getting Information about an Application

Retrieve detailed information about a specific application:

 argocd app get <application-name>

Syncing an Application

Manually sync an application with its target state:

 argocd app sync <application-name>

Setting Sync Options

You can set various sync options for an application. For example:

 argocd app set <application-name> --sync-policy <policy>

Deleting an Application

Delete an application from Argo CD:

 argocd app delete <application-name>

Configuring Auto-Sync

Enable or disable auto-sync for an application:

 argocd app auto-sync <application-name> --<enable/disable>

Viewing Application Resources

List Kubernetes resources managed by an application:

 argocd app resources <application-name>

Accessing Argo CD Web UI

You can also access the Argo CD Web UI by running:

 argocd open

Logging out of Argo CD Server

To log out of the Argo CD server, run:

 argocd logout

Further Reading

  • Read argocd Official Documentation