Managed Azure Kubernetes Service
Using private github repositories
Set up access to a private GitHub repository in Argo CD for managing your applications.
On this page
Overview
This guide will help you set up access to a private GitHub repository in Argo CD for managing your applications.
Please continue to the next step if you are using a public repository - 7. Deploy your workloads
Dont have any repository but still want to test the deployment process?
You can use the following public sample repository.
Configure access to private github repository
Navigate to Argo CD UI
Open the Argo CD UI in your web browser.
Open Settings
Go to the Settings section in the left menu.
Connect to Repository
- Click on
Repositories. - Choose
Connect Repo. - Keep the default setting of
Via SSHin the connection method dropdown. - Select the
defaultproject. - Paste your Github Repository URL into the
Repository URLfield. Eg.https://github.com/fortytwoservices/sampleapps.git - In the
SSH private key datafield, paste your SSH private key. This key is generated in your GitHub repository settings.
Not sure where to find or how to create a Github SSH Key? Check out the docs: GitHub SSH Key Setup.
Conclusion
You have now configured Argo CD to access a private GitHub repository, enabling you to manage applications hosted in that repository.