Pcornel
Automation · Kubernetes Automation

GitOps

Cheat sheet · https://pcornel.dk/topic.php?topic=5803

Back to the Topic

Answer

GitOps for Kubernetes stores manifests or Helm values in Git and uses Argo CD or Flux in the cluster to sync them automatically and show drift.

Remember

  • Argo CD or Flux sync manifests from Git.
  • Auto-sync and self-heal keep the cluster in line.
  • Drift is shown as OutOfSync.

First checks

  • argocd app list — sync status
  • flux get kustomizations -A — Flux
  • Repo per environment structure — organisation

Commands

kubectl apply
kubectl edit

Verify in this order

git → agent → cluster

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5803

Confirmation

Confirm action

Continue?