Once the cluster is running, you can install ArgoCD inside the cluster. You will use ArgoCD for deploying your application.
-
Firstly create a new namespace named
argocd
in the Kubernetes cluster for managing resources related to ArgoCD.kubectl create namespace argocd
-
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
-
ArgoCD will be installed in the
argocd
namespace. To get all the resources in the namespace use the below commandkubectl get all --namespace argocd
-
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
👇
- No go the edit service of 'argocd-server' and replace type 'ClusterIP' to 'NodePort'
You have to write it as written in the screenshot and then save. 👇
kubectl edit svc argocd-server -n argocd
> If you deploy it using AKS or Eks then you must have to write `LoadBalancer`.
- Now again run the service command for checking the exposed Port
Here you will find the exposed port as seen in the screenshot below.
kubectl get svc -n argocd
- Now Copy that Port and paste it via your
<Public-IP:32236>
& then Enter you will get ArgoCD dashboard - 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
- Copy that password and paste it via browser on
password
section.
Now enjoy your ArgoCD journey deploying using different web or anything you want. ✨