ApplicationSets
The ApplicationSets in argocd/appsets/ generate every Argo CD Application after bootstrap. The files carry a pointer here and a few short reasons, so this page is the reasoning behind them. Sync waves are in DFE on Kubernetes on-premises.
Layer 1 addons
layer1-addons.yaml deploys KEDA, metrics-server, Reloader and the DocumentDB operator. Chart versions must match versions.yaml. A chartDigest switches an element to Argo's OCI source at that digest, as layer2-apps.yaml does for thin charts. Envoy Gateway deploys from bootstrap/.
- cert-manager and external-secrets are bootstrap's. They have to exist before Argo does, because ESO backs the
ClusterSecretStoreand the repo credentials, and cert-manager backs the gateway certificates and the AWS Load Balancer Controller's webhook certificate. Listing them here would install a second copy beside bootstrap's (dfe-infra#4). - KEDA pushes its scaler value, active flag and error counters to the collector gateway over OTLP instead of being scraped. The port is 4318 because KEDA's exporter speaks OTLP/HTTP and posts to
/v1/metrics. The gRPC port answers with a frame it can't parse, and the URI needs its scheme.OTEL_SERVICE_NAMEis set because KEDA sets none, so the Go SDK would group every KEDA series underunknown_service:keda. - The DocumentDB operator serves HyperDX's document store, the
documentdbchart inlayer2-data.yaml. Its chart bundles CloudNativePG, installs it intocnpg-systemand needs cert-manager. It is OCI only and the chart composesrepository:tag, so each tag carries its image digest. - The CloudNativePG image is held a patch above the chart's own, for GHSA-x8c2-3p4r-v9r6, GHSA-w3gf-xc94-wvmj and CVE-2026-84304.
helm/charts/documentdbgrants the EndpointSlice read the bundled chart lacks.
DNS and AWS controllers
Three more elements sit behind cluster-label gates in layer1-addons.yaml.
- external-dns deploys only where the cluster secret declares a DNS provider. The chart's default provider is
aws, so an unconfigured install fails every minute against Route 53 and publishes nothing (#223). The gate isExistsANDNotIn, becauseNotInalone matches a secret with nodfe.hyperi.io/dns-providerlabel. - The AWS Load Balancer Controller owns every Service annotated
aws-load-balancer-type: external. Without it that Service sits at "Ensuring load balancer" forever, because the annotation also keeps the in-tree cloud provider off it. - Karpenter provisions every node pool outside the managed group, which is sized for the cluster's own controllers.
- Both sync at wave 1 and are gated on the cloud label with
ExistsANDIn. Karpenter publishes only over OCI, and its chart'scrds/apply with the release, so a new CRD field arrives with the controller that reads it. imageTagandimageDigestfor the load balancer controller areservices.aws-load-balancer-controller-imageinversions.yaml. Until a stack pins them the chart's own tag runs.
Layer 2 apps
layer2-apps.yaml creates one Application per deploy-repo values/<service>-<instance>-values.yaml, whose deploy: {service, instance} block names it. Adding an instance is an engine git write and never an appset edit.
Each Application has four sources, in this order:
- The component's thin chart, pulled over OCI from the registry its images come from, pinned by digest.
helm/charts/dfe-extras, the DFE-only objects beside it, at the target revision.- This repo as ref
infra, at the same revision, for the value files. - The deploy repo as ref
values, whose instance file is layered last.
Both helm sources read the same value files, parameters and inline values, so the engine overlay wins over every default in either. ignoreMissingValueFiles lets a chart run on its defaults until the engine publishes its overlay. Argo reads one revision per repo URL, so source 3 shares dfe-extras' revision, and a deploy repo naming the same repo at another revision fails the render.
- The chart digests are a literal map because an appset can't read
versions.yaml.scripts/check_versions_drift.py --fixwrites them. A service with no entry, or one whose chart isn't published, fails the render and its Application keeps its current spec. - Helm refuses a release name past 53 characters, so both helm sources set
releaseNameonly for a longer Application name: its first 44 characters plus 8 of its sha256. - dfe-engine syncs at wave 5 and everything else at 7. The engine applies every ClickHouse object and bootstrap topic at startup and reports converged on
/readyz, so its Application reaching Healthy is the schema being there. Wave 6, the collector, then has its otel tables. - culvert is generated by
layer2-edge.yamlwhere the edge module reaches the cluster, and excluded here so one generator owns it. A second generator covers clusters with nodfe.hyperi.io/edgekey until dfe-infra#342. It usesDoesNotExistand notNotIn, because a deployer who set the key tofalseturned the edge off on purpose. ignoreDifferencesleaves replica counts to KEDA's HPA, and/dataondfe-ingest-bearer-tokensanddfe-alert-destinationsto dfe-engine, which writes into them. The names arecommon.yaml'singestBearer.secretNameandalertDestinations.secretName, held equal bytest_ingest_bearer_secret.py.
Layer 2 app parameters
The chart pulls under the registry annotation global.registry reads, so a mirrored deployment moves its charts with its images. A missing annotation fails the render, because an empty parameter beats every values file and would send each image to Docker Hub.
gitops.repoUrlandgitops.branchcome from the annotations Argo reads, so the engine's write target can't drift from them.envcomes from the cluster annotation. At the chart'slocaldefault every deployment would report as dev, which the engine's commit policy and default-admin-password check gate on (#233).publicService.loadBalancerIPis the ingest door's address. Only dfe-receiver's contract marks a port public.clickhouse.tls.internalCA.presentsays whetherdfe-internal-caexists, from the edge label.layer2-data.yamlpasses it too, so every client dials the scheme the server serves.
Layer 2 data
layer2-data.yaml deploys ClickHouse, Kafka and the DocumentDB store at wave 4, and the OTel collector, Kafbat and the links page at wave 6. The collector needs the otel tables dfe-engine creates at wave 5. HyperDX is an app, deployed by layer2-apps.yaml.
Each Application has two sources: the base chart, then the deploy repo as ref values, layered last. A deployer's clickhouse.mode, kafka.mode and storage model therefore beat the tier defaults without editing dfe-infra. The exception is a cluster secret naming a ClickHouse bucket: the inline values then lock the bucket, its region and the resolver's storage model and cache placement. On a bundled deploy these report ComparisonError until layer2-deploy-repo.yaml's Forgejo is up.
The resolver's sizing comes from the deploy repo's sizing/, under the infra/ files, so a deployer's or the engine's edit to a sized key wins.
appNamespace is the annotation layer2-apps.yaml places the apps with, so the two can't disagree. kafka and documentdb project a credential into it. The KEDA ignoreDifferences is in Kafka autoscaling.
Scale operators
layer-scale.yaml holds three ApplicationSets.
dfe-scale-operatorsinstalls Strimzi and the ClickHouse operator on thescaleprofile.dfe-mesh-operatorsinstalls the ClickHouse operator alone onmesh, which runs a cluster and no broker. It is separate because moving an element between ApplicationSets orphans the Applications a running scale cluster owns by name.dfe-redpanda-operatorinstalls where ascalecluster also setsdfe.hyperi.io/kafka-provider: redpanda. Redpanda is BSL, so it is an explicit opt-in, the choice the kafka chart'sacceptLicensegate enforces. Strimzi is the Apache-2.0 default.
Slim and single match none: slim has no Kafka and single runs a non-operator broker. All three sync at wave 3, so the CRDs exist before layer2-data.yaml at wave 4.
- The ClickHouse operator is the official one, with
clickhouse.comCRDs. The HyperI private cloud may swap it for an internal cached operator and ClickHouse fork (see ClickHouse). The Altinity operator isn't tested with this stack. - Its namespace is upstream's own and must match
common.yamloperatorNamespaces.clickhouse, which opens the NetworkPolicy the operator needs to probe Keeper and run DDL. The scale and mesh entries carry the same pin and values, and move together. - The operator's logger is zap development mode, which is debug level.
manager.argsreplaces the chart's default flag list, so--leader-electis restated.
Edge and platform
layer2-platform.yaml generates the cluster platform charts at wave 2: network policy, the toolbox pod and, on AWS, the node pools. layer2-edge.yaml generates the gateway and the culvert tunnel (the edge module).
- The edge gate reads the secret's
dfe.hyperi.io/edgelabel, because a cluster selector matches labels only.ExistsANDInexcludes a secret written before the module, whichNotInwould match. - Until dfe-infra#342,
layer2-platform.yamlstill generatesenvoy-gateway-configfor those older secrets andlayer2-apps.yamlthe tunnel. The names are unchanged so Argo adopts the live objects. Nothing setspreserveResourcesOnDeletion, so a rename would take the Gateway, routes and certificates with it. - The gateway syncs at wave 2 so the routes exist before their workloads, and reports
SyncFaileduntil the envoy-gateway operator lands. - The node pools chart syncs at wave 3, after the Karpenter controller, because a NodePool applied before it sits unclaimed.
network-policiesreadsdfeNamespaces, notappNamespace. A NetworkPolicy aimed at an absent namespace is rejected, which fails the whole sync and leaves the cluster with no policies.appis the Application name andchartonly its directory, so a chart can move without a rename. The lookup usesindex, becausemissingkey=errorfails a field lookup on an element with no chart.- The tunnel's
culvertnamespace is labelledprivileged: the pod holdsNET_ADMIN, a hostPath tun device and a privileged init container, none of whichbaselineadmits. valuesis a string because the template is parsed as YAML before Go templating, so a conditional can't live in a structured field.