Skip to main content

Argo CD

Argo CD applies dfe-infra's charts and the deploy repo to your cluster, and it is how every other part of the DFE suite gets there.

Repodfe-infra: argocd/appsets/, argocd/values/, bootstrap/
Chartupstream argo/argo-cd, release argocd in namespace argocd, pinned at bootstrap.argocd in each stack of versions.yaml
Config referenceApplicationSets, the values cascade
Endpointsargocd.<domain>, an infra route behind edge OIDC (edge exposure)
Healtheach Application's sync and health status, kubectl -n argocd get applications

Bootstrap starts Argo CD once. From then on every change reaches the cluster through git.

Figure 1. L3 Components -- Argo CD. Up: L2 Services -- DFE suite. Down: L4 Detail -- Deployment layers, L4 Detail -- The deploy repo.

How it works​

  1. bootstrap/bootstrap.sh checks for a StorageClass, cert-manager, External Secrets and Argo CD. It adopts a healthy one it finds and installs the rest. An Argo CD it installed is upgraded on every re-run, and an adopted one is never reconfigured.
  2. Argo CD reads three sources: this repo's charts and ApplicationSets, the deploy repo dfe-engine writes, and each DFE app's thin chart over OCI, pinned by digest.
  3. Layer 1 and the platform sync first. KEDA, external-dns and the cloud controllers come up at waves 1-3, beside the network policies, the gateway, and Strimzi and the ClickHouse operator on scale.
  4. Layer 2 data brings ClickHouse, Kafka and the DocumentDB store up at wave 4. dfe-engine syncs at wave 5 and creates every table and topic. The OTel collector waits for its tables at wave 6, and every other app syncs at wave 7.

Interfaces​

Layer 2 apps make one Application per values/<service>-<instance>-values.yaml in the deploy repo. Add a file and the app appears. Remove it and the app goes. dfe-engine turns the dials and this repo decides which dials exist, so every dial has to be a chart value.

Each app's Application layers four sources, last one winning:

  • the app's thin chart over OCI, pinned by chart-digests in versions.yaml
  • helm/charts/dfe-extras, its DFE objects
  • this repo as ref infra, for the value files
  • the deploy repo as ref values, the app's overlay file

An Application is named <service>-<instance>-<cluster>, and that is its Helm release and its app.kubernetes.io/instance label. Helm rejects a release name over 53 characters, so a longer one installs as its first 44 characters, a -, and 8 hex characters of its sha256.

The cluster secret is the other input. Its dfe.hyperi.io/profile label picks the tier, and its annotations name the deploy repo, the registry and the environment. Argo CD doesn't reconcile that secret, so a change to what writes it reaches the cluster only when bootstrap runs again.

Scaling and failure​

  • On a bundled deploy the git host is itself an Application. Everything that reads the deploy repo shows ComparisonError until it's up, then converges.
  • Each app pod runs a wait-for-engine init container that polls dfe-engine's /readyz. A pod held there is waiting for the schema, not broken.
  • A chart that isn't published, or has no digest entry, fails its render, and the Application keeps its current spec.
  • KEDA owns replica counts, so Argo ignores them and never fights the autoscaler.
  • Synced isn't health. An Application can be Synced and Degraded with every pod failing its image pull. Read the pods.

Key metrics​

Each Application's sync and health status in Argo CD is the signal. bootstrap/smoke-test-integration.sh checks dfe-engine's schema readiness before it looks at any pipeline, and dfe-engine's GET /api/v1/system/schema lists each object it applied.