Interview Prep/CI/CD/Deployment Strategies and GitOps

You adopt Argo CD. How do you structure repositories and environments?

IntermediateScenarioDeployment Strategies and GitOps
Answer

Situation read → GitOps layout.

What I'd do →

  1. Separate the app source repo from a config repo holding manifests (Helm values or Kustomize overlays) per environment: apps/payments/overlays/{dev,staging,prod}.
  2. CI builds the image, then updates the image tag in the config repo via PR (or Argo CD Image Updater).
  3. Use an ApplicationSet to generate one Application per env/cluster.

Why → Config changes get separate history, access control and promotion flow.

Interview tip → Do not store manifests in the same repo if you want prod promotion to be gated separately.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps