- Clone GitOps Infrastructure Template and refer to the following
README.mdfor customizing project. - Or, click
Use this templatebutton on the top right to create a new repository from this template. - Please be certain that it is a private repository. CD_ACCESS_KEY is only enabled when the repository is private.
- Install
kubectl. - Create ECR Repository for application.
- Set Secrets
INFRA_REPO.
- Register "Actions secrets" as below.
ECR_REPOSITORY_NAME: Amazon ECR Repository name.AWS_ACCESS_KEY_ID: AWS IAM Access Key ID.AWS_SECRET_ACCESS_KEY: AWS IAM Secret Access Key.
- Edit the name of infrastructure repository. (Line 60)
- Edit the name of kustomize image name. (Line 84)
- If you want to utilize
prodstage, duplicate from line 82~85.
- Source of your application should be here.
- If you want to locate to other directory,
.github/workflows/ci.ymlshould be changed. (Line 41)
To finish configuring the infra repository, you must modify every single file in the ./k8s directory except ./base/kustomization.yml.
Modify the placeholder in the angle bracket to a value appropriate for your project, just like any other file in the ./argo directory.
NOTE: Do not apply the ./k8s directory to the K8s cluster directly. That is exactly what ArgoCD will do for you.
If you have any questions or want to improve GitOps flow, don't hesitate to let us know on #team-infra-sre channel! Any contributions you make are greatly appreciated.
