179
GitOps
Git is the source of what should be running. A controller makes the cluster match. A laptop deploy is drift.
What is GitOps?
GitOps means the desired state is committed, and an automated reconciler applies it. Production changes are pulls of a commit, not a push from a developer’s machine. Rollback is reverting a commit.
Why does GitOps matter when vibe coding?
Models `kubectl apply` from a workstation and leave the cluster different from the repo. Name the reconciler.
How do you do GitOps?
The pipeline commits the image tag. The cluster pulls. Humans do not have standing prod apply rights. Drift is repaired or alerted.
How do you ask a model for GitOps?
Deploy (service) via GitOps. The git repo is the desired state. A controller applies it. Do not document a manual kubectl from a laptop. Rollback is a git revert.
What goes wrong with GitOps?
GitOps plus a side script that patches the live cluster. You have two sources of truth. Delete the script.