Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.17 KB

File metadata and controls

26 lines (20 loc) · 1.17 KB

t01 IOC Instances and Services Deployment Repository for Argo CD

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. This can be found at [https://gitlab.diamond.ac.uk/controls/containers/beamline/t01-services].

Deployment

To deploy the Argocd root App:

source environment.sh
argocd app create --file apps.yaml

Adding webhooks

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/

Instructions for internal Gitlab

  1. Navigate to your repo hosted in Gitlab
  2. Select Project -> Settings -> Webhooks
  3. Select "Add new webhook"
  4. Enter the url: <your_argocd_server>/api/webhook (for example: https://argocd.diamond.ac.uk/api/webhook)
  5. Under "Trigger" tick "Push events"
  6. Finally select "Save changes"