Skip to content

Latest commit

 

History

History

ArgoCD Installation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Installing ArgoCD in the Kubernetes Cluster

Once the cluster is running, you can install ArgoCD inside the cluster. You will use ArgoCD for deploying your application.

To install ArgoCD, use these commands

  1. Firstly create a new namespace named argocd in the Kubernetes cluster for managing resources related to ArgoCD.

     kubectl create namespace argocd
  2. Now deploy ArgoCD to the argocd namespace using the installation manifest from the specified URL.

     kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
  3. ArgoCD will be installed in the argocd namespace. To get all the resources in the namespace use the below command

     kubectl get all --namespace argocd
  4. Now see the service of the argocd

    kubectl get svc -n argocd

    Here in the below screenshot you can see the main argocd-server and then you have to expose this to NodePort 👇

image

  1. No go the edit service of 'argocd-server' and replace type 'ClusterIP' to 'NodePort'
     kubectl edit svc argocd-server -n argocd
    You have to write it as written in the screenshot and then save. 👇

image

  > If you deploy it using AKS or Eks then you must have to write `LoadBalancer`.
  1. Now again run the service command for checking the exposed Port
     kubectl get svc -n argocd
    Here you will find the exposed port as seen in the screenshot below.

image

  1. Now Copy that Port and paste it via your <Public-IP:32236> & then Enter you will get ArgoCD dashboard
  2. Enter admin in username and for password use the below command-
     kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
  3. Copy that password and paste it via browser on password section.

Now enjoy your ArgoCD journey deploying using different web or anything you want. ✨