Member-only story
Introduction
The concept of Reconciliation loop is used for kubernetes to keep the state as defined in the manifest. Roughly speaking, observation, analysis, and execution are repeated in the form shown in the picture below.
Explanation:
Observe queries the API server to observe the what it should be defined by the applied manifest, and Analyze compares the current one with what it should have been obtained earlier. Then, Act issues a command to fill the difference if there is a difference, and keeps the cluster as it should be.
GitOps
GitOps is one of the ideas in CI/CD that manages the git repository as the only reliable state and performs operations by detecting changes in that state. Flux, ArgoCD and Jenkins-X are famous software that realizes GitOps.
Below I present an example architecture that is commonly used for CI/CD using GitOps.