# Part 5: Set up ArgoCD 

*   ### Go to the Jenkins-master node and add our own EKS cluster to ArgoCD for application deployment using the CLI
    
*   Login to `argoCD` from CLI
    

```plaintext
argocd login 65.2.186.181:31797 --username admin
```

> \[Note\] 65.2.186.181:31797 --> This should be your argocd url and after login enter your password

*   **Check how many clusters are available in** `argocd`
    

```plaintext
argocd cluster list
```

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/c73a5596-1a65-46d6-bdaf-ceddee66497b.png align="center")

*   **Get your cluster name**
    

```plaintext
kubectl config get-contexts
```

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/710d5f7a-606f-4491-b930-1481d1f2332f.png align="center")

*   **Prepare the command to add your cluster to** `argocd` **and Enter**
    

```plaintext
argocd cluster add iam-root-account@wanderlust.ap-southeast-1.eksctl.io --name wanderlust-eks-cluster
```

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/725d879e-81cb-4e74-b87e-4663b16bf7da.png align="center")

> Note: Unknown possible due to sync issues, miss config or may takes some time, troubleshoot accordingly, continue to next and try later by readding again after connecting to repo in next step

**Go to Settings --> Repositories and click on Connect your forked** [**repo**](https://github.com/abhinandan-chougule/fullstack-gitops-project)

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/7d8e5dc1-f5fa-4cc0-b552-265a70b969f2.png align="center")

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/a163f7c8-9354-42e7-9350-dbf358f2ba74.png align="center")

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/e89afcab-7e71-47ec-8f53-a2dfe1d6b2cd.png align="center")

> ***\[Note\] Connection should be <mark class="bg-yellow-200 dark:bg-yellow-500/30">successful</mark>***

*   **Now, go to Applications and click on New App**
    

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/62c55bdb-b269-4ea1-9ff4-e8ee93e5d690.png align="center")

> ***\[Important\] Make sure to click on the Auto-Create Namespace option while creating argocd application***

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/1e3fc38c-3df4-4a2f-9b6a-af7988cca829.png align="center")

<mark class="bg-yellow-200 dark:bg-yellow-500/30">Congratulations, your application is deployed on the AWS EKS Cluster</mark>

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/9fc70c84-dd14-484e-a427-7a310f578f39.png align="center")

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/126e1a89-199e-497c-a9f0-657a7c01d17f.png align="center")

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/e81e4a81-2386-4d08-ade5-869b25338270.png align="center")

*   **Open ports 31000 and 31100 on the nodes of the EKS Cluster, and access it on a browser**
    

```plaintext
<worker-public-ip>:31000
```

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/3f3ebb9e-1176-4011-a5dd-798a6b18f5cf.png align="center")

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/16c9c7bc-f2a9-4cc0-8409-a36e99ad9990.png align="center")

**Email Notification**

![](https://cdn.hashnode.com/uploads/covers/6997142f587b14d25b5231b7/5598964f-bb9a-4f1b-bd90-fd61f2e88c95.png align="center")

Next...

* * *

<div data-node-type="callout">
<div data-node-type="callout-emoji">💡</div>
<div data-node-type="callout-text"><a target="_blank" rel="noopener noreferrer nofollow" class="text-primary underline underline-offset-2 hover:text-primary/80 cursor-pointer" href="https://hashnode.com/edit/cmmbxcd9q009s2eoa8z5vbnsj" style="pointer-events: none;">Part 6: Observability stack setup to monitor</a></div>
</div>
