How To - Argo CD

Subscribe to my newsletter and never miss my upcoming articles


Argo CD

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Argo CD CLI let you manage Argo CD from a remote machine.


Argo CD Documentation:

Installing Argo CD CLI

brew install argo

Verify Installed Argo CD CLI Version

argo version

Getting Help

argo help

Create Namespace

kubectl create namespace argo

Deploy Argo CD

kubectl apply -n argo -f

Verify Argo CD Install

Check all the pods are running

kubectl get all -n argocd

Enable Port Forwarding

kubectl port-forward svc/argocd-server -n argo 8080:443

Login to Argo CD

Username is admin and password (by default) is pod name of argocd-server. This can be found by running

kubectl -n argo get pods -l -o name | cut -d’/’ -f 2
argocd login localhost:8080

Change the Default Password

argocd account update-password

List Workflows

argocd list

Get Workflow Details

argocd get <workflow name>
argocd logs <workflow name>

Stop a Workflow

argo stop <workflow name>

Terminate a Workflow

argo terminate <workflow name>

Delete a Workflow

argo delete <workflow name>

Get Application Details

argocd app get <Application Name>

Deploy the Application

argocd app sync <Application Name>
Share this