Links
Comment on page

GitOps

Devtron uses GitOps to store Kubernetes configuration files of the applications. For storing the configuration files and desired state of the applications, Git credentials must be provided at Global Configurations > GitOps within the Devtron dashboard.
Below are the Git providers which are available in Devtron. Select one of the Git providers (e.g., GitHub) to configure GitOps:
Note: The Git provider you select for configuring GitOps will impact the following sections:

GitHub

If you select GitHuB as your git provider, please provide the information in the following fields to configure GitOps:
Fields
Description
Git Host
This field shows the URL of the selected Git provider. As an example: https://github.com/ for GitHub.
GitHub Organisation Name
Enter the GitHub organization name. If you do not have one, create using how to create organization in Github.
GitHub Username
Provide the username of your GitHub account.
Personal Access Token
Provide your personal access token (PAT). It is used as an alternate password to authenticate your GitHub account. If you do not have one, create a GitHub PAT here.

How to create organization in GitHub

Note: We do NOT recommend using GitHub organization which contains your source code.
  1. 1.
    Create a new account on GitHub (if you do not have one).
  2. 2.
    On the upper-right corner of your GitHub page, click your profile photo, then click Settings.
  3. 3.
    On the Access section, click Organizations.
  4. 4.
    On the Organizations section, click New organization.
  5. 5.
    Pick a plan for your organization. You have the option to select create free organization also.
  6. 6.
    On the Set up your organization page,
    • Enter the organization account name, contact email.
    • Select the option your organization belongs to.
    • Verify your account and click Next.
    • Your GitHub organization name will be created.
  7. 7.
    Go to your profile and click Your organizations to view all the organizations you created.
For more information about the plans available for your team, see GitHub's products. You can also refer GitHub organization official doc page for more detail.
Note:
  • repo - Full control of private repositories (able to access commit status, deployment status and public repositories).
  • admin:org - Full control of organizations and teams (Read and write access).
  • delete_repo - Grants delete repo access on private repositories.

GitLab

If you select GitLab as your git provider, please provide the information in the following fields to configure GitOps:
Fields
Description
Git Host
This field shows the URL of the selected Git provider. As an example: https://gitlab.com/ for GitLab.
GitLab Group ID
Enter the GitLab group ID. If you do not have one, create using GitLab Group ID.
GitLab Username
Provide the username of your GitLab account.
Personal Access Token
Provide your personal access token (PAT). It is used as an alternate password to authenticate your GitLab account. If you do not have one, create a GitLab PAT here.

How to create organization in GitLab

  1. 1.
    Create a new account on GitLab (if you do not have one).
  2. 2.
    You can create a group by going to the 'Groups' tab on the GitLab dashboard and click New group.
  3. 3.
    Select Create group.
  4. 4.
    Enter the group name (required) and select the optional descriptions, if require and click Create group.
  5. 5.
    Your group will be created and your group name will be assigned with a new Group ID (e.g. 61512475).
Note:
  • api - Grants complete read/write access to the scoped project API.
  • write_repository - Allows read/write access (pull, push) to the repository.

Azure

If you select GitAzureLab as your git provider, please provide the information in the following fields to configure GitOps:
Fields
Description
Azure DevOps Organisation Url*
This field displays the URL of the chosen Git provider. For Azure, the format would be https://dev.azure.com/<org-name>, where <org-name> represents the organization name As an example, consider https://dev.azure.com/devtron-test, where "devtron-test" is the organization name.
Azure DevOps Project Name
Enter the Azure DevOps project name. If you do not have one, create using Azure DevOps Project Name.
Azure DevOps Username*
Provide the username of your Azure DevOps account.
Azure DevOps Access Token*
Provide your Azure DevOps access token. It is used as an alternate password to authenticate your Azure DevOps account. If you do not have one, create a Azure DevOps access token here.

How to create Azure DevOps project name

Note: You need an organization before you can create a project. If you have not created an organization yet, create one by following the instructions in Sign up, sign in to Azure DevOps, which also creates a project. Or see Create an organization or project collection.
  1. 1.
    Go to Azure DevOps and navigate to Projects.
  2. 2.
    Select your organization and click New project.
  3. 3.
    On the Create new project page,
    • Enter the project name and description of the project.
    • Select the visibility option (private or public), initial source control type, and work item process.
    • Click Create.
    • Azure DevOps displays the project welcome page with the project name.
You can also refer Azure DevOps Project Name official doc page for more detail.
Note:

Bitbucket Cloud

If you select Bitbucket Cloud as your git provider, please provide the information in the following fields to configure GitOps:
Fields
Description
Bitbucket Host
This field shows the URL of the selected Git provider. As an example: https://bitbucket.org/ for Bitbucket.
Bitbucket Workspace ID
Enter the Bitbucker workspace ID. If you do not have one, create using Bitbucket Workspace Id.
Bitbucket Project Key
Enter the Bitbucket project key. If you do not have one, create using Bitbucket Project Key. Note: This field is not mandatory. If the project is not provided, the repository is automatically assigned to the oldest project in the workspace.
Bitbucket Username*
Provide the username of your Bitbucket account.
Personal Access Token
Provide your personal access token (PAT). It is used as an alternate password to authenticate your Bitbucket Cloud account. If you do not have one, create a Bitbucket Cloud PAT here.

How to create Bitbucket workspace ID

  1. 1.
    Create a new individual account on Bitbucket (if you do not have one).
  2. 2.
    Select your profile and settings avatar on the upper-right corner of the top navigation bar.
  3. 3.
    Select All workspaces from the dropdown menu.
  4. 4.
    Select the Create workspace on the upper-right corner of the Workspaces page.
  5. 5.
    On the Create a Workspace page:
  • Enter a Workspace name.
  • Enter a Workspace ID. Your ID cannot have any spaces or special characters, but numbers and capital letters are fine. This ID becomes part of the URL for the workspace and anywhere else where there is a label that identifies the team (API's, permission groups, OAuth, etc.).
  • Click Create.
  1. 6.
    Your Workspace name and Workspace ID will be created.
You can also refer Bitbucket Workspace Id official doc page for more detail.
Note:
  • repo - Full control of repositories (Read, Write, Admin, Delete) access.
Click Save to save your GitOps configuration details.
Note : A Green tick will appear on the active GitOp provider.
Last modified 6d ago