CICD Pipeline using Jenkins & ArgoCD
  • About the project
  • Overview of the application
  • Dockerizing the application
  • Configure EC2 instance to setup the CI pipeline
  • Configure Jenkins on EC2 instance
  • Create Jenkins CI pipeline
  • Setting up SonarQube server
  • Configure DockerHub and GitHub access tokens inside Jenkins
  • Add GitHub Webhook trigger
  • Execute the Jenkins Build
  • Configure EC2 instance to setup the CD pipeline
  • Install MiniKube and Kubectl
  • Install ArgoCD
  • Deploy the app to Kubernetes using ArgoCD
Powered by GitBook
On this page

Install ArgoCD

PreviousInstall MiniKube and KubectlNextDeploy the app to Kubernetes using ArgoCD

Last updated 1 year ago

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