This repository holds the definition of Argocd deployed ec services. Each sub folder of the 'services' directory of an ec 'services repository' is mapped to an Argocd App which is managed by a root App.
To deploy the Argocd root App:
source environment.sh
argocd app create --file apps.yaml
By default argocd will poll Git repositories for changes to manifests every 3 minutes. In order to have your changes applied to your app more promtly one could:
- Trigger a refresh using the cli or web UI
- Configure a webhook so that their git provider can trigger refreshes immediately
For more details: https://argo-cd.readthedocs.io/en/latest/operator-manual/webhook/
- Navigate to your repo hosted in Gitlab
- Select Project -> Settings -> Webhooks
- Select "Add new webhook"
- Enter the url:
<your_argocd_server>/api/webhook
(for example: https://argocd.diamond.ac.uk/api/webhook) - Under "Trigger" tick "Push events"
- Finally select "Save changes"