Interview Prep/GitOps & Argo CD/Operations, Scale, Upgrades & DR

The argocd namespace was accidentally deleted. Workloads are still running. How do you recover?

AdvancedScenarioOperations, Scale, Upgrades & DR
Answer

Situation read → Control plane gone; data plane fine (unless finalizers cascaded).

What I'd do →

  1. Check whether Applications were deleted with finalizers (workloads might be deleting); if namespace termination is stuck on Application finalizers, remove those finalizers to stop cascades.
  2. Reinstall Argo CD with the same version and values.
  3. Restore repo credentials, cluster Secrets and settings from backup (argocd admin import) or from Git plus External Secrets.
  4. Restore Sealed Secrets keys if the controller lived there.
  5. Apply the root app; Applications adopt existing resources without restarts.

Why → Argo CD is rebuildable from Git; the risk is cascade deletion during the incident.

Interview tip → Lead with "stop the cascade", then rebuild.

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

More on Operations, Scale, Upgrades & DR