Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Configuring git in Argo Tool

  1. 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 Project in Argo Tool

  1. Navigate to Repositories → Projects

  2. Click New Project

  3. Enter the required details and save

  4. The saved project is reflected

Configuring Kubernetes cluster in Argo Tool

The cluster added to Argo via CLI is reflected in “Clusters” tab of Argo tool.

# 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

  1. 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 ensure the credentials are valid

6. Navigate to Application tab and Click “New Argo Application”

7. Enter the details and save

8. Navigate to git Repositories tab, click + New Argo Repositories button and provide values for the following fields:

  • Name - Provide a unique name for the new Argo repository.

  • SCM type - Select the source control management tool to configure. Choose from Bitbucket, Github or Gitlab.

  • SCM Tool - Select your configured source control management tool provided in the drop down.

  • Repository Name - Select a repository, fetched from the selected source control management tool.

9. Navigate to Projects tab, click + New Argo Project button and provide values for the following fields:

  • Name - Create a unique name for the Argo project.

  • Description

  • Sources - The drop down list will provide sources from the repository selected in the git Repositories tab.

  • Destinations - *

  • Whitelisted Cluster Resources - *

  • Blacklisted Namespaced Resources - *

  • Whitelisted Namespaced Resources - *

Click Save button to save project.

Pipeline setup and configuration:

Sample pipeline flow:

Jenkins Docker Build → ECR Push → Argo Deploy

  1. 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

  1. Login to Argo Tool and verify the application reflected and synced

  • No labels