What is the difference between push-based and pull-based deployment?
Short answer
In push-based CD, an external pipeline (e.g., Jenkins) has cluster credentials and pushes changes into the cluster. In pull-based GitOps, an in-cluster agent pulls the desired state from Git and applies it.
Advertisement
AModel answer
In push-based CD, an external pipeline (e.g., Jenkins) has cluster credentials and pushes changes into the cluster. In pull-based GitOps, an in-cluster agent pulls the desired state from Git and applies it. Pull-based keeps credentials inside the cluster, reduces attack surface, and continuously reconciles rather than firing once per pipeline run.
Real-world example
Instead of the CI server holding kubeconfig secrets, ArgoCD inside the cluster pulls manifests from Git, so CI never touches the cluster.
Likely follow-ups
- Why is pull-based more secure? | Can you combine CI with GitOps CD?
Related topics