Member-only story

Kubernetes and GitOps

Maciej
2 min readMay 12, 2021

--

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.

Image source: https://www.weave.works/blog/gitops-high-velocity-cicd-for-kubernetes

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet