Interview Prep/Git & GitHub/Branching Strategies and Releases

GitOps: should app code and Kubernetes manifests live in the same repo or separate ones?

AdvancedScenarioBranching Strategies and Releases
Answer

Situation read → Different change rates and audiences argue for separation, though small teams may prefer one repo.

What I'd do →

  1. Separate config repo for environment state, so deploy history is a clean Git log and access can be tighter.
  2. CI in the app repo builds the image, then opens a PR (or commits) in the config repo to bump the image tag.
  3. Argo CD or Flux reconciles from the config repo's main.
  4. Rollback is git revert of the bump commit.

Why → Image bumps do not pollute app history, and deploy approval is just a PR review.

Interview tip → Say the trade-off honestly: two repos mean extra plumbing.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases