Filters
Zo zoek je
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • "twee woorden" vindt precies die zin.
  • --naam of -x vindt een optie.
  • #woord zoekt alleen in commando's.
  • @grep vindt lessen en labs die grep gebruiken.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Zet ! voor een woord om het weg te laten. OR tussen woorden betekent één ervan.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken

Hoofdstuk 1Naam in de cursus: GitOps principles

Understand GitOps

GitOps means: the wanted state of the cluster lives in Git, and an agent inside the cluster pulls it and keeps the cluster equal to it. Nobody runs kubectl apply against production by hand; every change is a commit, reviewed in a pull request.

  • 4 Lessen
  • 1 Commando's

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

1.1

Know the four principles

The OpenGitOps project defines GitOps in four rules.

PrincipleMeaning
DeclarativeThe whole system is described as wanted state (YAML, Helm, Kustomize)
Versioned and immutableThat state is stored in Git, with full history
Pulled automaticallyAn agent pulls the state from Git; no push from outside
Continuously reconciledThe agent checks again and again, and fixes drift

1.2

Compare push and pull deployments

Classic CI/CD pushes into the cluster from outside. GitOps pulls from inside.

Push (CI runs kubectl/helm)Pull (GitOps agent)
Cluster credentialsStored in CIStay in the cluster
Drift (manual changes)Not noticedFound and fixed
Audit trailCI logsGit history = every change
RollbackRe-run an old pipelinegit revert

Onthoud

In GitOps, CI still builds and tests the image; it only updates the image tag in the config repository. The agent does the deployment.

Commando's in deze les

1.3

Know the main tools

Two CNCF graduated projects lead GitOps on Kubernetes.

ToolStrengths
Argo CDWeb UI, Application objects, app-of-apps, ApplicationSets, SSO and RBAC
FluxSmall, CLI-first, Kustomize and Helm controllers, image automation

Both reconcile Git (or OCI artifacts, Helm repositories) into clusters. Pick one per platform.

1.4

See the benefits for security

GitOps is also a security control.

  • No admin credentials in CI or on laptops — fewer keys to steal.
  • Every change is reviewed (branch protection) and signed (signed commits).
  • Drift is reverted: a manual "quick fix" or an attacker's change does not survive.
  • Disaster recovery: point a new cluster at the repository, and it rebuilds itself.

Alle commando's in dit hoofdstuk