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 15 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. Locate Argo tool and click ‘Select Tool’ to open Create New Tool form.

Enter Tool Name and any other tool details.

3. Click ‘Create’ button for the tool to be registered

4. In ‘Connections’ tab, enter connection details: URL, ID and password and save

5. ‘Click Test Connection’ to ensure the credentials are valid and the connection succeeds.

6. Navigate to Clusters tab and click ‘+ New Argo Clusters' button.

7. Provide selections for dropdowns and click ‘Create’ button. Once a cluster has been created it will become available in ‘Applications’ tab for selection.

6. Navigate to Application tab and Click ‘+New Argo Application’ button.

7. Select values from fields. The cluster added in ‘Clusters’ tab will be available in the ‘Cluster’ dropdown.

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

Rollback Enabled - When this step is enabled , rollback will happen automatically by deploying the artifact which is pointed to the artifacts.
Repository Tag - Select the repository or run to rollback to.

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