This repository serves as a blueprint to start fast and easy with OTC GitOps
- Set up the infrastructure according to the README with this Github Template: https://github.com/iits-consulting/otc-terraform-template
- After you sourced the
shell-helper.sh
you can rungetElbPublicIp
. Please send me this IP. - I will create a DNS A Entry for you and give you the domain name
If you didn't source the shell-helper.sh
in the https://github.com/iits-consulting/otc-terraform-template project please do so by running:
source shell-helper.sh
Now you are able to execute the argo
command. Run the argo
command. This will do the following:
- Print out the Username and the Password on the first line
- The browser should open automatically and open a tab to the ArgoCD UI. If it does not open a browser, you can do it yourself by opening this url: http://localhost:8080/argocd
- You should see that ArgoCD automatically already installed:
- infrastructure-charts
- argocd-config
- traefik
- In the
stages/dev/infrastructure-charts/values.yaml
set the value inglobal.helmValues
fordns.host
to the domain name which you received before. - You need to commit this change to the git repository such that ArgoCD detects the changes and applies them.
- If you want to deploy some services you need to enter them in the
stages/dev/infrastructure-charts/values.yaml
in the same schema as the others. The charts representing these services have to be either in/apps
or in/stages/dev/infrastructure-charts/apps
- Press refresh on all the services inside the ArgoCD UI. After some times you should get some certificates, and you can access your admin domain
Now let's adjust some service.
- Please change inside
stages/dev/infrastructure-charts/values.yaml
the number of traefik replicas from 1 to 2 - Commit your changes
- Check the service in the ArgoCD UI and verify that it scaled up
Congrats!
You have now a full working Terraform, ArgoCD GitOps Setup.
If you like try to deploy some new services and play a little bit with your new setup