Interview Prep/GitOps & Argo CD/Environments, ApplicationSets & Multi-Cluster

A cluster is being decommissioned. How do you remove it from Argo CD without breaking anything else?

IntermediateScenarioEnvironments, ApplicationSets & Multi-Cluster
Answer

Situation read → Generated apps target this cluster; cascade delete may try to delete workloads in a cluster that is going away.

What I'd do →

  1. Remove the cluster's labels (or Secret) in Git so generators drop its Applications.
  2. If the cluster is already unreachable, set preserveResourcesOnDeletion: true temporarily or remove finalizers so deletion does not hang trying to reach it.
  3. Delete hand-made Applications targeting it, then argocd cluster rm.
  4. Check argocd app list for any app still referencing the server.

Why → Finalizers on apps for an unreachable cluster block deletion forever.

Interview tip → Mention apps stuck in Terminating as the classic symptom.

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

More on Environments, ApplicationSets & Multi-Cluster