Explain push-based vs pull-based deployment.
BeginnerConceptGitOps Principles & Delivery Models
Answer
Push: the CI/CD pipeline holds cluster credentials and runs kubectl apply or helm upgrade at the end of a run. It acts only when the pipeline runs.
Pull: an agent inside (or next to) the cluster, such as Argo CD or Flux, watches Git and applies changes itself. CI only builds artifacts and updates Git.
Pull removes cluster-admin credentials from CI, corrects drift continuously, and works for clusters behind firewalls because the connection is outbound to Git.
More on GitOps Principles & Delivery Models
What is GitOps, in one or two sentences?BeginnerWhat are the four OpenGitOps principles?BeginnerIs "we keep our Kubernetes YAML in Git and CI runs `kubectl apply`" GitOps?BeginnerWhat are the main benefits of GitOps that you would pitch to a team?BeginnerWhat are the honest downsides or pain points of GitOps?IntermediateWhat does "drift" mean in GitOps, and how is it handled?Beginner