GitOps Configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
The 'GitOps Configuration' page appears only if the super-admin has enabled 'Allow changing git repository for application' in .
This configuration is an extension of the settings present in of Devtron. Therefore, make sure you read it before making any changes to your app configuration.
The application-level GitOps configuration offers the flexibility to add a custom Git repo (as opposed to Devtron auto-creating a repo for your application).
Users need to have or above (along with access to the environment and application) to configure user-defined Git repo.
Go to Applications → Devtron Apps (tab) → (choose your app) → App Configuration (tab) → GitOps Configuration.
Assuming a GitOps repo was not added to your application earlier, you get 2 options:
Auto-create repository - Select this option if you wish to proceed with the default behavior. It will create a repository automatically, named after your application with a prefix. Thus saving you the trouble of creating one manually.
Commit manifests to a desired repository - Select this option if you wish to add a custom repo that is already created with your . Enter its link in the Git Repo URL
field.
GitOps repositories, whether auto-created by Devtron or added manually, are immutable. This means they cannot be modified after creation. The same is true if you have an existing CD pipeline that uses/used GitOps for deployment.
Click Save.
Click Configure & Deploy.
After you enter the App Name
, Project
, and Environment
; an option to choose the deployment approach (i.e., Helm or GitOps) would appear.
Select GitOps.
Auto-create repository
Commit manifests to a desired repository
Enter your custom Git Repo URL, and click Save.
Next, you may proceed to deploy the chart.
Once you deploy a helm app with GitOps, you cannot change its GitOps repo.
Note: In case you skipped the GitOps configuration for your application and proceeded towards the (that uses GitOps), you will be prompted to configure GitOps as shown below:
You can using either Helm or GitOps. Let's assume you wish to deploy airflow
chart.
Select the helm chart from the .
A modal window will appear for you to enter a Git repository. Just like (step 2), you get two options: