Creating GitHub Repos for GitOps
April 8, 2019 ยท View on GitHub
Setup
1. Create HLD Repository
If you have not already, create your own high level definition repository. (We provide a sample GitHub repo that you can fork and modify for your own application.)
Also, make sure you have an azure-pipelines.yml file at the root of your repository, as we will use this later to setup the build rules in Azure Devops.
2. Create Manifest Repository
You will also need a destination repository on GitHub where the Kubernetes resource manifests will be pushed to. Create this as well if you haven't already.
Next, generate a deploy key for your new repository on GitHub. Keep the contents of yor public SSH key and local path to your private SSH key handy for the next step.
3. Create a Flux enabled AKS Cluster
Use the content of your public SSH key and path to your private SSH key for configuring your cluster deployment.
3. Create a Personal Access Token
In order to access the destination respository we need appropriate authentication.
Create a GitHub Personal Access Token if you don't already have one following these instructions.
IMPORTANT: Make sure your personal access token has read/write access to private repositories.
