Interview Prep/GitOps & Argo CD/Secrets, Controller Performance & Recovery

Someone deleted an app-of-apps parent with cascade, and dozens of child apps and workloads disappeared. How do you recover?

AdvancedTroubleshootingSecrets, Controller Performance & Recovery
Answer

Likely causes → The parent and children all had the resources-finalizer.argocd.argoproj.io finalizer, so deletion cascaded down to every workload.

Diagnose → kubectl -n argocd get events, audit logs for the delete call; confirm which namespaces lost workloads.

Fix → Re-apply the root Application from Git (kubectl apply -f bootstrap/root-app.yaml); Argo CD recreates children and workloads from Git. Restore stateful data (PVs, databases) from backups, since Git does not hold data.

Prevent → Remove the finalizer from parent apps (only children should cascade), restrict delete on Applications in RBAC, enable deletion protection with argocd.argoproj.io/sync-options: Delete=false on critical resources, and back up Argo CD state with argocd admin export.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Secrets, Controller Performance & Recovery