Interview Prep/GitOps & Argo CD/ApplicationSets, Rollouts & Image Updater

A git outage made the git generator return nothing, and the ApplicationSet deleted all its Applications and their workloads.

AdvancedTroubleshootingApplicationSets, Rollouts & Image Updater
Answer

Likely causes → The default policy is sync, which deletes Applications that disappear from generator output; the Applications have the resources finalizer, so workloads were pruned too.

Diagnose → ApplicationSet controller logs around the outage: kubectl -n argocd logs deploy/argocd-applicationset-controller.

Fix → Restore Git access and let the set re-create apps. Then harden:

spec:
  syncPolicy:
    applicationsSync: create-update     # never delete
    preserveResourcesOnDeletion: true   # keep workloads if an app is deleted

Prevent → Use create-update (or --policy on the controller) for production sets and require manual cleanup.

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

More on ApplicationSets, Rollouts & Image Updater