Pregunta de Service Configuration #019e3a4f
What is the core functionality of GitOps tools like Argo CD and Flux?
They track production changes made by a human in a Git repository and generate a human-readable audit trail.
They replace human operations with an agent that tracks Git commands.
They automatically create pull requests when dependencies are outdated.
They continuously compare the desired state in Git with the actual production state and notify or act upon differences.
Explicación Oficial / Explicaciones de la Comunidad
GitOps tools like Argo CD and Flux implement a declarative approach to continuous deployment. Their core functionality is to continuously compare the desired state defined in a Git repository with the actual state running in a production environment (typically Kubernetes). When a difference is detected, they can automatically synchronize the environment to match the desired state or alert operators.
How it Works
- The desired state (e.g., Kubernetes manifests, Helm charts, Kustomize overlays) is stored in a Git repository.
- The GitOps agent runs inside the cluster and periodically polls the repository for changes.
- It compares the manifests in Git with the live cluster resources.
- If a drift is found, the agent can automatically apply the Git-defined configuration, ensuring the cluster state matches the repository.
- This creates an auditable, version-controlled pipeline where all changes are made via Git commits.
Why the Correct Answer is Right
The statement "They continuously compare the desired state in Git with the actual production state and notify or act upon differences" accurately captures the core loop of GitOps: reconciliation. This is the fundamental mechanism that ensures the system is always in the desired state.
Why the Incorrect Answers are Wrong
- "They track production changes made by a human in a Git repository and generate a human-readable audit trail" is incorrect because GitOps tools do not track human changes in production; they enforce that all changes originate from Git. Audit trails are a byproduct, not the core functionality.
- "They replace human operations with an agent that tracks Git commands" is misleading. The agent does not track Git commands; it reconciles state based on the repository contents.
- "They automatically create pull requests when dependencies are outdated" describes a feature of dependency update tools like Renovate or Dependabot, not the core reconciliation loop of GitOps tools.