Install ArgoCD

To install ArgoCD and ArgoCD CLI, use the following list of commands

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

# Install ArgoCD CLI
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
rm argocd-linux-amd64

To verify whether ArgoCD is up and running

kubectl get pods -n argocd

To expose the ArgoCD server, edit the service manifest of argo-cd server and change the ClusterIP to NodePort. To get a list of ArgoCD services:

kubectl get svc -n argocd

To edit the argocd-server service manifest

kubectl edit svc argocd-server -n argocd

Change the type from ClusterIP to NodePort

Expose the service

minikube service argocd-server -n argocd

In order to use ArgoCD CLI, a password is required so to extract the password from the secret file and decode

kubectl edit secret argocd-initial-admin-secret -n argocd
echo <password> | base64 --decode

Login using the ArgoCD CLI

argocd login <ip address of argocd server>:<port>
# Username: admin
# Password: Password extracted from argocd-initial-admin-secret file

Last updated