Interview Prep/CI/CD/Deployment Strategies and GitOps

You have to choose between push-based CD (pipeline runs kubectl) and pull-based GitOps.

IntermediateScenarioDeployment Strategies and GitOps
Answer

Situation read → Trade-offs.

What I'd do →

  1. Pull-based (Argo CD/Flux): the cluster credentials stay inside the cluster, drift is corrected, Git is the audit trail.
  2. Push-based: simpler for small setups, but CI holds cluster credentials and cannot detect drift.
  3. I choose pull for production Kubernetes and push for simple VMs or serverless.

Why → Reducing credential exposure and continuous reconciliation are the big wins.

Interview tip → State the trade-off, then pick.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps