Configuring git in Argo Tool
Login to Argo tool → Settings
2. Navigate to Repositories
3. Click “Connect repo using HTTPS” / SSH as per requirement
4. Enter the details:
Select the type as git
Enter Repo URL and credentials and connect
5. The added Repo details get reflected in Repositories
Configuring Kubernetes cluster in Argo Tool
The cluster added to Argo via CLI is reflected in “Clusters” tab of Argo tool.
Install ArgoCD CLI based on your system from https://argoproj.github.io/argo-cd/cli_installation/
Update the kubeconfig file through AWS CLI and create external clusters inside ArgoCD
# Update the kubeconfig file for auth. aws eks update-kubeconfig --region us-east-2 --name cluster-name # Login to argocd server through cli argocd login <argocd_server_url> --password <password> --username <username> # add external cluster through cli to argocd argocd cluster add <kube_context> --name <cluster-name> Note: kube_context format for EKS: arn:aws:eks:<region>:<account_id>:cluster/<cluster_name>
Registering Argo Tool
Login tohttps://portal.opsera.io -> Tool Registry -> Click “+New Tool” Button
2. Enter a name and select “Argo” as Tool Identifier
3. Click “Create” button for the tool to be registered
4. Enter connection details - URL, ID and password and save
5. “Test Connection” to be successful to ensue the credentials are valid
6. Navigate to Application tab and Click “Create Argo Application”
7. Enter the details and save
Pipeline setup and configuration:
Sample pipeline flow:
Jenkins Docker Build → ECR Push → Argo Deploy
Jenkins - Docker Build
Sample Configuration screenshot of Docker build step:
2. ECR Push configuration sample screenshot
3. Argo Tool - Argo deploy step configuration
4. Save the steps and Run the Pipeline
5. Pipeline successful run
Argo Tool Validation
Login to Argo Tool and verify the application reflected and synced