DEVOPS / A CONCEPT NOTE

GitOps CD

declarative GitOps continuous delivery for Kubernetes

~75 sec read

Overview · mechanism
pitfall · examples

01 / THE SHORT VERSION

The idea in a few sentences.

Your git repository is the single source of truth. A background agent constantly compares what is written in your code with what is actually running in your servers. If they differ, it pulls the changes from Git to make them match.

02 / FOLLOW THE MECHANISM

How reconciliation flows

  1. Developer

    merges a PR updating a replica count from 2 to 5 in Git.

  2. Agent

    spots the gap between the git commit (5) and the live cluster (2).

  3. Sync engine

    applies the difference by launching 3 new servers automatically.

  4. Status

    reconciles and returns to a healthy 'Synced' state.

04 / COMMAND NOTES

Read the command, then the result.

Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.

EXAMPLE 01 · REFERENCE

check synchronization status and health

argocd app get my-app

EXAMPLE 02 · REFERENCE

trigger a manual state synchronization

argocd app sync my-app

Explore command anatomy in the CLI lab