In an App of Apps, Only the Root Is Applied by Hand, So Its Sync Policy Decides What a Commit Can Delete
An Argo CD Application is itself a Kubernetes object, so an Application can deploy other Applications. In the app-of-apps pattern one "root" Application points at a folder of Application manifests; you apply the root once with kubectl, and from then on adding a workload to the cluster is adding a file to that folder and pushing. The root is small, but it is the one object whose settings decide what a bad commit can do to everything else.
The Layout I Use
k8s/argocd/root.yaml applied by hand, once
k8s/argocd/apps/argocd.yaml Argo CD manages its own chart
k8s/argocd/apps/cilium.yaml the CNI
k8s/argocd/apps/media.yaml registered, not deployed yet
The root lives one folder above apps/, so it never manages itself.
Settings That Limit the Blast Radius
| Setting | On the root | On the children | Why |
|---|---|---|---|
| Automated sync | yes, with selfHeal |
no (manual) | The root only creates and corrects Application objects, never pods. Workloads change only after someone reads argocd app diff and syncs |
prune |
false | false | With prune, deleting or moving a file in apps/ deletes that Application. A typo in a path could remove the CNI's Application |
resources-finalizer.argocd.argoproj.io |
none | none | With the finalizer, deleting an Application deletes everything it deployed. Without it, the objects stay and only the management stops |
Automated sync with prune and self-heal is the usual GitOps target, and right for ordinary apps once they run. For the components the cluster can't live without (the CNI, Argo CD itself), manual sync keeps a human between a commit and the network.
Deleting an Application Is Not Deleting a File
argocd app delete <app>cascades by default: Argo CD deletes the Application's resources too. Forciliumthat is the network of every pod. To stop managing something and leave it running:argocd app delete <app> --cascade=false.kubectl delete application <app>only cascades if the Application has the resources finalizer. Without it, the resources are left in place.- If Argo CD itself breaks, the Applications survive (the chart keeps its CRDs on uninstall), and the release can be restored with
helm upgradefrom a known-good commit.
Bootstrapping Order
Argo CD can't deploy itself before it exists, so the order is: install it once with Helm, give it read access to the repo (a read-only deploy key in a labelled Secret, never in Git), apply the root, then let the argocd Application adopt the Helm release (see Argo CD Can Adopt a Running Helm Release When It Renders the Same Chart, Values and Release Name). The manifests must be pushed first: Argo CD reads the remote branch, not a working copy.
References
- Argo CD: Cluster bootstrapping - the app-of-apps pattern.
- Argo CD: App deletion - cascading deletes,
--cascade=false, the resources finalizer (last checked 2026-11). - Argo CD: Automated sync policy -
pruneandselfHeal. - Homelab repo,
k8s/argocd/anddocs/runbooks/argocd-bootstrap.md- the files and the bootstrap of 2026-11-24. - GitOps Agents Pull the Desired State from Git and Revert Changes Made Outside It - why a Git repo drives the cluster.
- Kubernetes MOC - hub for Kubernetes notes.
Review cards
Flashcard In an app of apps, why turn off `prune` on the root Application?
With prune, deleting or moving a file in the apps folder deletes that Application. A wrong path in one commit could remove the CNI's Application.
Quiz You want Argo CD to stop managing Cilium but keep it running. Which command?
-
argocd app delete cilium -
argocd app delete cilium --cascade=false -
argocd app sync cilium --prune -
helm uninstall cilium
argocd app delete cascades by default and would delete Cilium's DaemonSet and the pod network with it.
Flashcard What does the `resources-finalizer.argocd.argoproj.io` finalizer change when an Application is deleted?
With it, deleting the Application also deletes the resources it deployed. Without it, the resources stay in the cluster and only Argo CD's management stops.
Flashcard Why does the root Application sync automatically while the CNI's Application syncs by hand?
The root only creates Application objects, never pods. The CNI carries every pod's network, so a person reads the diff before any change reaches it.