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 →
- Pull-based (Argo CD/Flux): the cluster credentials stay inside the cluster, drift is corrected, Git is the audit trail.
- Push-based: simpler for small setups, but CI holds cluster credentials and cannot detect drift.
- 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.