liveBook · Manning

GitOps operator

As explained in Automating API Delivery

A GitOps operator is software that continuously monitors a system and synchronizes it with desired configuration from a source such as a Git repository.

A GitOps operator continuously monitors a running system and a source of desired configuration, usually a Git repository. When it detects configuration drift—whether from a repository change or a manual system change—it retrieves the desired state and applies it to the target environment. section 9.4.1

A pull-based deployment uses the following operating model:

  • Run the operator in the same environment or cluster as the deployed API gateway. section 9.4.1
  • Monitor the Git repository and the running system for differences from the desired configuration. section 9.4.1
  • Pull updated configuration and apply it to the target environment when a difference appears. section 9.4.1
  • Use tools such as Argo CD or Flux for Kubernetes-based deployments. section 9.4.1

Detecting and correcting drift

A manual configuration change in an API gateway creates a difference from the Git repository. The operator detects the drift and reapplies the repository state, restoring the declared configuration. section 9.4.1

Figure 9.7 GitOps pull-based deployment model
figure

Shows the pull-based GitOps deployment model, including the operator’s relationship to the repository, cluster, and deployed gateway. section 9.4.1

How Automating API Delivery covers it

How deep it goes
Explains monitoring, drift detection, state retrieval, application, placement, and security benefits without detailing operator implementation.
Examples
Uses manual gateway changes, decK diff, kubectl diff, Argo CD, and Flux as deployment examples.
What it assumes
Assumes familiarity with configuration repositories, running systems, API gateways, and deployment environments.
What you can do after
Operate pull-based deployments that detect configuration drift and synchronize an API gateway with Git-managed desired state.
How it connects
Connects configuration drift, Git repositories, API gateways, Kubernetes, and pull-based deployments.

Also explained in

Compare how 2 books explain GitOps operator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.