GitOps continuous deployment (خاص طور پر Kubernetes کے لیے) کا ایک طریقہ ہے جہاں Git انفراسٹرکچر اور ایپلیکیشنز کی مطلوبہ حالت کا واحد ذریعہ ہے، اور ایک خودکار ایجنٹ مسلسل reconciles کرتا ہے تاکہ حقیقی حالت Git سے مماثل ہو۔ تبدیلیاں Git کے ذریعے کی جاتی ہیں، اور نظام انہیں pull اور apply کرتا ہے۔
GitOps ماڈل
Git holds the DESIRED STATE (declarative configs: Kubernetes manifests, Helm charts, etc.):
→ an AGENT in the cluster continuously COMPARES actual state vs Git (desired state)
→ it RECONCILES: automatically applies changes to make reality match Git
→ to deploy/change: commit to Git → the agent detects and applies it (PULL-based)
→ Git = single source of truth; the system continuously converges to it.
