Automation · GitOps
Pull-based Deployment
Cheat sheet · https://pcornel.dk/topic.php?topic=5487
Answer
Pull-based deployment has an agent inside the target environment, such as Argo CD or Flux, pull changes from Git and apply them, so CI never needs credentials to the cluster.
Remember
- An agent inside the cluster pulls changes from Git.
- CI never needs cluster credentials.
- It works behind firewalls.
First checks
- Agent runs inside target (Argo CD/Flux in cluster) — pull model
- No CI credentials to cluster — security
argocd repo list / flux get sources git— repo access
Commands
git rev-parse HEAD- Read-only/validation observation for exact Git commit identifier of the source tree used for automation/deployment.
kubectl apply
Verify in this order
git ← agent (pull) → apply in cluster
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5487