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.
Website: argoproj.github.io
Argo CD Documentation: argoproj.github.io/argo
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 https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
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 app.kubernetes.io/name=argocd-server -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>
Print Workflow Log
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>