GitOps is one idea applied ruthlessly: git holds your desired state, an in-cluster controller pulls it and reconciles continuously, and nobody deploys by pushing manifests from a laptop or a CI job. Everything else in this domain (Argo CD, Flux, promotion, drift handling) is just machinery built around that one idea.

needsmake core

Orientation

competency 2.1 · domain 2 is 25% of the exam

Domain 2 is the biggest slice of the exam and the most mechanical. You'll get tasks like "make this change reach the cluster through git", "this app is OutOfSync, fix it", or "pause reconciliation while I operate". Every one of them assumes the mental model on this page is already second nature.

The four OpenGitOps principles, quotable
  1. Declarative: the system's desired state is expressed declaratively.
  2. Versioned and immutable: desired state is stored in a way that enforces immutability and versioning, and retains a complete version history.
  3. Pulled automatically: software agents pull the desired state declarations from the source.
  4. Continuously reconciled: agents continuously observe actual state and attempt to apply the desired state.

Graders love these exact phrases. Memorize the four anchors (declarative, versioned/immutable, pulled, reconciled) and you can reconstruct the full definitions on the spot.

The concepts questions hang off

reconciliation · drift · push vs pull

Reconciliation is a loop, not an event

The controller compares live cluster state against git on a timer and whenever a webhook fires. That means a manual kubectl edit doesn't fail; it either gets reverted on the next loop (if self-heal is on) or gets flagged as drift (if it's off). "Why did my manual fix disappear?" is the symptom you'll run into most, and OutOfSync is how the controller tells you about it. The upside of a continuous loop is that recovery comes almost for free: wipe an entire namespace and the next reconcile rebuilds it. That's the disaster-recovery case for GitOps.

   ┌──────────── git (desired) ────────────┐
   │  demo-app/overlays/staging/…          │
   └────────────────┬──────────────────────┘
                    │ poll (~3 min) or webhook
                    ▼
        controller in the cluster  ── compares ──▶     diff
                    │                                   │
       automated?   │ yes → apply            selfHeal?  │ live drift → revert
                    │ no  → report OutOfSync    prune?  │ removed from git → delete live
                    ▼
   ┌──────────── cluster (live) ───────────┐
   └───────────────────────────────────────┘

Try poking the loop yourself. Commit a change, drift the cluster by hand, delete a manifest from git, then reconcile and watch what each setting actually does:

Push vs pull

A CI job pushing manifests needs cluster credentials sitting outside the cluster, and it only knows the cluster's state at the moment it deploys. A pull-based agent keeps credentials inside the cluster, never exposes them outward, and never stops comparing. That second part, continuous comparison, is why GitOps isn't just "CI that runs kubectl".

Where the boundary actually sits

CI builds and tests artifacts and, at most, opens a pull request to bump an image tag. CD is the in-cluster agent reconciling git. If a scenario describes a Jenkins job running kubectl apply against production, hit all four expected critiques: cluster credentials live outside the cluster, there's no drift detection, there's no continuous reconciliation, and there's no single source of truth.

Repo design

directories, not branches

This lab seeds two Gitea repos that model the standard split: platform (cluster-level config like policies, tenants, and the app-of-apps) and demo-app (a single workload). Separating them matters because they have different reviewers, different blast radii, and different release cadences.

ChoiceCommon formWhy
App source vs configSeparate reposA config tweak shouldn't rebuild an image, and merging app code shouldn't deploy by accident.
EnvironmentsDirectories, not branchesLong-lived environment branches drift and fight during merges. Directories diff cleanly and promote with a straightforward copy or PR.
Many appsMonorepo with per-app paths, or one repo per app plus a platform repoMonorepos make atomic cross-app changes easy; separate repos make ownership and access control cleaner.
PromotionChanges flow staging → prod via a PR that bumps an image tag or patchThe git diff is the change record, so reviews and approvals attach to it naturally.
Rendered manifestsCI renders Kustomize/Helm output to a branch the agent watchesReviewers see the exact final YAML instead of template intent, at the cost of running a rendering pipeline.

In this lab, environments are directories (demo-app/overlays/staging and overlays/prod inside the platform repo), and promotion means moving a change from one directory to the next, usually as an image tag bump or a Kustomize patch. You'll still see branch-per-environment setups in the wild, and the exam expects you to know why they're an anti-pattern.

Templating, both flavors

Kustomize layers patches onto a base without a templating language, using resources, patches (strategic-merge or JSON 6902), images, namePrefix, labels (the v5 replacement for the deprecated commonLabels), and configMapGenerator. It's YAML all the way down, and kustomize build shows you the exact manifests that will land in the cluster. Helm renders Go templates from values files, trading away that plain-YAML clarity ("the manifest doesn't exist until something renders it") in exchange for conditionals and loops. Both Argo CD and Flux consume both, and both let you post-render one with the other.

Helm is also a release manager, not just a template renderer, and an exam task can test that side directly. Keep these commands handy: helm list -A (releases and revisions), helm upgrade --install --atomic --wait (roll back automatically if it never becomes ready), helm history and helm rollback <rel> <rev>, helm get values --revision, and helm diff if the plugin is installed. Release state lives in Secrets of type helm.sh/release.v1 in the release namespace. That's how you see what a previous operator deployed, and why a Flux HelmRelease can end up adopting or fighting an existing release.

Command reflex

Never push an overlay you haven't rendered locally first. kustomize build <dir> (or kubectl kustomize) and helm template turn "I think this renders right" into "I know". Better yet, both work completely offline in the exam terminal.

Secrets

Plain Secrets don't belong in git; base64 is encoding, not encryption. The three sanctioned patterns are Sealed Secrets (encrypt for git so only the in-cluster controller can decrypt), External Secrets Operator (git holds references while an external store holds the truth), and SOPS (encrypted values in git, decrypted by the agent, with native support in Flux). Section 5.1 covers the mechanics. Here, remember that "how do secrets work in GitOps?" has real architectural answers, and "commit it base64-encoded" isn't one of them.

Failure modes to recognize on sight

a preview of section 2.6
  • Two controllers, one resource. Pointing both Argo CD and Flux at the same manifest kicks off an infinite reconcile war. In this lab they deliberately own different paths, and keeping that boundary sharp is half the lesson.
  • Manual fix disappears. Self-heal just did its job. The fix belongs in git; if you genuinely need an emergency live change, suspend reconciliation first (Flux) or disable auto-sync (Argo CD), do the surgery, then land the fix in git and turn reconciliation back on.
  • Prune surprises. Rename a resource in git with pruning off and the old copy lingers forever. Turn pruning on and deleting a file deletes production. Know which setting is active before you push.
  • Immutable fields. Changing a Service's clusterIP, selector labels, or shrinking a PVC causes apply to fail with an API server rejection naming the field. The GitOps fix is delete-and-recreate or a replace-style sync option, not editing the live object.
  • Stale but green. A suspended reconciler, a dropped webhook, or a long poll interval leaves everything green while nothing is current. Always check when an app last synced before you trust a green dashboard.

Repos, promotion and rendered manifests

layouts by team structure · promotion as a diff · hydration · OCI as a source · Kustomize vs Helm

The OpenGitOps principles are versioned (v1.0.0), and their accompanying glossary defines desired state, state store, reconciliation, and continuous (specifically "continues to happen", not instantaneous). Everything in this panel turns those principles into concrete repository layouts and promotion flows.

Three layouts the Flux guide names, and when each wins

LayoutTreeChoose it whenCost
Monorepoapps/{base,staging,production} · infrastructure/{base,staging,production} · clusters/{staging,production}You have one platform team, few tenants, and want atomic cross-cutting changes.Everyone can read production config, and large PRs can bury production changes.
Repo per environmentSame tree, with production split into its own repositoryProduction access needs to be strictly narrower than staging access.Promotion requires a cross-repo PR, and infrastructure changes take two commits.
Repo per teamPlatform repo with teams/, infrastructure/, clusters/; each dev team owns an apps repo registered as a sourceTenants own their own delivery while the platform team owns onboarding and cluster addons.You have to reconcile tenant repos under a locked-down identity (Flux serviceAccountName in 2.3, Argo AppProject in 2.2).

Across all three layouts, clusters/<name> is the controller's entry point, and that's where you wire up ordering: infrastructure (CRDs, controllers, ingress) comes before apps, using Flux dependsOn or Argo CD sync waves in an app-of-apps.

Promotion patterns

  • Tag bump by PR: CI (or Flux image automation) writes the new image tag into the staging overlay, and a human or bot promotes that same change into production. The PR doubles as the change record, with approvals right on the diff.
  • Pin to a SHA or tag: Production Applications and Kustomizations track an immutable ref, so promotion means advancing the pin. Nothing hits production just because a branch moved.
  • Environment gates: Use Argo CD sync windows, Flux suspend, or a promotion controller like Kargo in front of those pins. The exam won't ask for Kargo by name, but it does expect you to know that promotion is a git operation, not a button click in a UI.
  • Anti-pattern: One branch per environment. Merges pile up conflicts, cherry-picks obscure history, and environments gradually drift apart structurally.

Rendered manifests

Templating hides the exact YAML that hits the cluster. The rendered manifests pattern solves that by rendering templates in a pipeline and committing the plain YAML to a branch or directory the agent watches. Reviewers inspect final manifests, and the diff between staging and production becomes a real diff. Argo CD builds this in as the Source Hydrator (beta since 3.5): spec.sourceHydrator.drySource points at the templated input, syncSource.targetBranch and path specify where hydrated output gets pushed and synced from, and write credentials live in a repo Secret labeled argocd.argoproj.io/secret-type: repository-write. Flux achieves the same thing by having CI run flux push artifact and pointing an OCIRepository at the result.

OCI artifacts as a source

  • Argo CD (3.1+): Set repoURL: oci://registry/org/config, targetRevision to a tag or digest, and path: .. Helm charts in OCI registries work the same way, using standard chart fields.
  • Flux: Run flux push artifact oci://registry/org/config:tag --path ./deploy --source ... --revision ... to publish an artifact with Flux media types. An OCIRepository consumes it via ref.tag, ref.semver, or ref.digest, with optional verify.provider: cosign or notation verification, and a Kustomization uses it just like a GitRepository.
  • Why bother? Your registries already hold container images, so config and images can share signing, retention, and promotion (retagging), and air-gapped clusters without git access can still pull.

Kustomize vs Helm, decided

QuestionKustomizeHelm
You own the manifests and want per-env deltasBases and overlays, patches, images, replacements, componentsPossible via values files, though heavier
You consume third-party softwarePossible by vendoring or remote bases (Flux can forbid remote bases)The chart is the product: pin version and override values
Conditionals, loops, generated namesNone by designFull Go templates
ReviewPlain YAML; kubectl kustomize shows the exact outputhelm template or the Source Hydrator
LifecycleThe GitOps agent is the entire lifecycleRelease history, hooks, tests, and rollback (Flux HelmRelease exposes these; Argo CD only renders and applies with no Helm release object)

Both engines let you combine the two by post-rendering: Flux uses HelmRelease.spec.postRenderers[].kustomize, while Argo CD combines spec.source.kustomize with a Helm chart through multiple sources or a config management plugin. One surprise that catches people often: Argo CD doesn't create Helm release Secrets, so helm list comes up empty for an Argo-managed chart.

How this gets tested

"Promote the staging image to production" means finding where production pins the image (overlay images:, HelmRelease values, or Application targetRevision), updating it in git, and verifying the rendered output with kubectl kustomize overlays/production before the controller syncs. Editing the live Deployment scores zero even if the pods end up identical.

Secrets and engine choice

Sealed Secrets vs SOPS vs ESO · Argo CD vs Flux · bootstrapping

The three secret answers, field by field

QuestionSealed SecretsSOPSExternal Secrets Operator
What lives in gitA SealedSecret CR holding ciphertext encrypted to the controller's public keyThe Secret manifest with data/stringData encrypted in place, plus a sops metadata blockAn ExternalSecret naming keys in an external store, with zero secret material
Who decryptsOnly the in-cluster controllerThe GitOps agent (Flux kustomize-controller natively via spec.decryption.provider: sops and a secretRef to the age or PGP key; Argo CD needs the KSOPS plugin) or a human holding the keyThe operator, reading the store using a SecretStore or ClusterSecretStore credential
Scope and rotation--scope strict (default: name and namespace baked in), namespace-wide, or cluster-wide; sealing keys renew every 30 days while old keys are kept.sops.yaml creation_rules with encrypted_regex: ^(data|stringData)$ so metadata stays readable; age is preferred over PGP, plus KMS backendsrefreshInterval (or refreshPolicy: CreatedOnce), templating, and PushSecret to write back
Weak pointLosing the controller's private key loses everything; tightly cluster-boundDistributing decryption keys to every agent; rotating a secret requires a commitThe cluster depends on the external store; an outage halts rotation, though existing Secrets keep working

Argo CD vs Flux, when the task lets you choose

AspectArgo CD 3.xFlux 2.x
UnitApplication (single or multi-source) and ApplicationSetGitRepository/OCIRepository paired with Kustomization or HelmRelease
UI and RBACBuilt in: web UI, SSO, project roles, and policy.csvNo built-in UI; uses Kubernetes RBAC via impersonation (serviceAccountName)
HelmRenders the chart and applies plain manifests; no Helm release historyReal Helm releases with tests, remediation, and rollback
DriftselfHeal is opt-in; OutOfSync is still reported in manual modeRe-applies on every interval, so drift correction is implicit
Image write-backNot built in (Argo CD Image Updater is a separate project)Built-in image-reflector and image-automation controllers
Fan-outApplicationSet generatorsOne Kustomization per cluster directory (plus Flux Operator ResourceSets in the wider ecosystem)
Footprintapi-server, repo-server, application-controller, redis, dex, applicationset, notificationsFour to six small, focused controllers
Multi-tenant lockdownAppProject source and destination allow-lists--no-cross-namespace-refs, --no-remote-bases, and --default-service-account

When a task doesn't specify which engine to use, the grader checks the resulting cluster state and git commit, so either engine gets you there. Pick whichever CLI you can drive from muscle memory without checking the docs.

Bootstrapping, both ways

  • Flux: Run flux bootstrap github --owner ORG --repository fleet --branch main --path clusters/prod --personal --token-auth (also supports gitlab, gitea, bitbucket-server, and generic git). Bootstrap installs the controllers, commits gotk-components.yaml and gotk-sync.yaml under that path, and creates the flux-system GitRepository and Kustomization so Flux manages itself from then on. Pass --components-extra image-reflector-controller,image-automation-controller for image automation, verify with flux check, and run flux migrate before upgrades to move objects to current API versions (Flux 2.9 removed the v1beta2 image and notification APIs).
  • Argo CD: Apply the install manifest, then create a root Application pointing at your platform repo's argocd/ or clusters/ directory containing Argo CD's own config plus every child Application (the app-of-apps pattern). From there, Argo CD manages its own argocd-cm, argocd-rbac-cm, and Applications. Don't forget to rotate and delete the initial admin password in argocd-initial-admin-secret.
Two controllers, same path

If both engines run on the same cluster, make ownership crystal clear in the repo layout: let Flux reconcile clusters/ and infrastructure/ while Argo CD owns apps/ (or vice versa), and never point both at the same directory. If the split isn't spotless, Argo CD's FailOnSharedResource=true and Flux's kustomize.toolkit.fluxcd.io/ssa: Ignore annotation are your safety rails.

Exercises

tick the dot when its check passes

Never push an overlay you haven't built locally:

kustomize build examples/demo-app/overlays/staging
kustomize build examples/demo-app/overlays/prod | grep -E 'replicas|name:'
outputcaptured 2026-08-26
$ kustomize build examples/demo-app/overlays/staging
apiVersion: v1
kind: Service
metadata:
  labels:
    app.kubernetes.io/part-of: demo-app
  name: staging-demo
  namespace: team-a
spec:
  ports:
  - name: http
    port: 80
    targetPort: http
  selector:
    app: demo
    app.kubernetes.io/part-of: demo-app
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: demo
    app.kubernetes.io/part-of: demo-app
  name: staging-demo
  namespace: team-a
spec:
  replicas: 1
  selector:
    matchLabels:
      app: demo
      app.kubernetes.io/part-of: demo-app
  template:
    metadata:
      labels:
        app: demo
        app.kubernetes.io/part-of: demo-app
    spec:
      containers:
      - image: ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine
        name: web
        ports:
        - containerPort: 8080
          name: http
        readinessProbe:
          httpGet:
            path: /
            port: http
          initialDelaySeconds: 2
        resources:
          limits:
            cpu: 200m
            memory: 128Mi
          requests:
            cpu: 25m
            memory: 32Mi
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          readOnlyRootFilesystem: true
        volumeMounts:
        - mountPath: /tmp
          name: cache
      securityContext:
        runAsNonRoot: true
        seccompProfile:
          type: RuntimeDefault
      topologySpreadConstraints:
      - labelSelector:
          matchLabels:
            app: demo
            app.kubernetes.io/part-of: demo-app
        maxSkew: 1
        topologyKey: topology.kubernetes.io/zone
        whenUnsatisfiable: ScheduleAnyway
      volumes:
      - emptyDir: {}
        name: cache
$ kustomize build examples/demo-app/overlays/prod | grep -E 'replicas|name:'
  name: prod-demo
  - name: http
  name: prod-demo
  replicas: 3
        name: web
          name: http
          name: cache
        name: cache
verify: you can list every difference between the two overlays from the rendered output alone, without opening the overlay files.

The platform repo in Gitea carries a copy of examples/. Clone it, bump the staging replica count, and push:

source lab.env   # for GITEA_PASS; anonymous clone works, push needs credentials
git clone "http://lab:${GITEA_PASS}@gitea.lab:3000/lab/platform.git" /tmp/platform && cd /tmp/platform
# edit demo-app/overlays/staging/kustomization.yaml: set replicas, or add a patch
git commit -am "staging: 3 replicas" && git push
outputcaptured 2026-11-18
$ source lab.env   # for GITEA_PASS; anonymous clone works, push needs credentials
$ git clone "http://lab:${GITEA_PASS}@gitea.lab:3000/lab/platform.git" /tmp/platform && cd /tmp/platform
Cloning into '/tmp/platform'...
warning: redirecting to http://gitea.lab:3000/lab/platform.git/
# edit demo-app/overlays/staging/kustomization.yaml: set replicas, or add a patch
$ git commit -am "staging: 3 replicas" && git push
[main 55f63ae] staging: 3 replicas
 1 file changed, 1 insertion(+), 1 deletion(-)
warning: redirecting to http://gitea.lab:3000/lab/platform.git/
To http://gitea.lab:3000/lab/platform.git
   0c7031e..55f63ae  main -> main
verify: nothing deploys yet, and that's the point: a repo only becomes desired state once a controller watches the path. Section 2.2 wires this exact commit to a live Application, so hang on to the clone.

Both controllers are already wired up to Gitea:

kubectl -n argocd get secret gitea-repo -o jsonpath='{.data.url}' | base64 -d; echo
flux get sources git
outputcaptured 2026-08-26
$ kubectl -n argocd get secret gitea-repo -o jsonpath='{.data.url}' | base64 -d; echo
http://gitea.lab:3000/lab/platform.git
$ flux get sources git
NAME    	REVISION          	SUSPENDED	READY	MESSAGE                                           
platform	main@sha1:c7cb9a1e	False    	True 	stored artifact for revision 'main@sha1:c7cb9a1e'	
verify: both point at gitea.lab, and the Flux GitRepository shows Ready True with a commit SHA. Both engines are pulling from the repo you just pushed to.

With nothing managing demo-app yet, apply it by hand (run kubectl create ns team-a if needed, then kubectl apply -k examples/demo-app/overlays/staging; the overlay pins its own namespace, so skip -n). Scale it manually. Nobody notices, because nothing is reconciling it yet.

verify: hold that thought for the drift-revert exercise in 2.2, where that exact same edit gets snapped back within seconds.

Git is the default source, not the only one. Flux treats an OCI artifact as a first-class source, which lets teams ship a pinned, signed bundle instead of tracking a moving branch. The lab registry is enough to run the whole loop.

flux push artifact oci://localhost:5001/platform-config:$(git rev-parse --short HEAD) \
  --path ./examples/demo-app/base \
  --source $(git remote get-url origin) \
  --revision main@sha1:$(git rev-parse HEAD)
flux create source oci demo-oci \
  --url oci://kind-registry:5000/platform-config \
  --tag $(git rev-parse --short HEAD) \
  --insecure
flux get sources oci demo-oci
kubectl -n flux-system get ocirepository demo-oci -o jsonpath='{.status.artifact.revision}{"\n"}'
outputcaptured 2026-09-12
$ flux push artifact oci://localhost:5001/platform-config:$(git rev-parse --short HEAD) \
  --path ./examples/demo-app/base \
  --source $(git remote get-url origin) \
  --revision main@sha1:$(git rev-parse HEAD)
► pushing artifact to localhost:5001/platform-config:13403b5
✔ artifact successfully pushed to localhost:5001/platform-config@sha256:9e73f795cf5ea00d6f8120f2a75ecc210d6aea9d70d9148d190428fea3eef73d
$ flux create source oci demo-oci \
  --url oci://kind-registry:5000/platform-config \
  --tag $(git rev-parse --short HEAD) \
  --insecure
► applying OCIRepository
✔ OCIRepository created
◎ waiting for OCIRepository reconciliation
✔ OCIRepository reconciliation completed
✔ fetched revision: 13403b5@sha256:9e73f795cf5ea00d6f8120f2a75ecc210d6aea9d70d9148d190428fea3eef73d
$ flux get sources oci demo-oci
NAME    	REVISION               	SUSPENDED	READY	MESSAGE                                              
demo-oci	13403b5@sha256:9e73f795	False    	True 	stored artifact for digest '13403b5@sha256:9e73f795'	
$ kubectl -n flux-system get ocirepository demo-oci -o jsonpath='{.status.artifact.revision}{"\n"}'
13403b5@sha256:9e73f795cf5ea00d6f8120f2a75ecc210d6aea9d70d9148d190428fea3eef73d
verify: the OCI source reports Ready with an artifact revision carrying the git SHA you pushed.

Before you debug either engine, check what it's actually pointed at. The two engines store that answer in completely different places: a labeled Secret for Argo CD, and a set of source CRs for Flux.

kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=repository -o name
kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=repository -o jsonpath='{range .items[*]}{.data.url}{"\n"}{end}' | base64 -d
flux get sources all -A
outputcaptured 2026-09-12
$ kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=repository -o name
secret/gitea-repo
$ kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=repository -o jsonpath='{range .items[*]}{.data.url}{"\n"}{end}' | base64 -d
http://gitea.lab:3000/lab/platform.git
$ flux get sources all -A
NAMESPACE  	NAME                  	REVISION          	SUSPENDED	READY	MESSAGE                                           
flux-system	gitrepository/platform	main@sha1:0cc7cba2	False    	True 	stored artifact for revision 'main@sha1:0cc7cba2'	

NAMESPACE  	NAME                  	REVISION       	SUSPENDED	READY	MESSAGE                                     
flux-system	helmrepository/podinfo	sha256:e7dc68a4	False    	True 	stored artifact: revision 'sha256:e7dc68a4'	

NAMESPACE  	NAME                       	REVISION	SUSPENDED	READY	MESSAGE                                      
flux-system	helmchart/flux-demo-podinfo	6.15.0  	False    	True 	pulled 'podinfo' chart with version '6.15.0'	
verify: both lists show the same Gitea repo, reached through two different mechanisms. When a task says "the engine can't see the repo", start right here.

Argo CD renders a chart and applies plain manifests, leaving no Helm release object behind. Flux's HelmRelease runs Helm for real and leaves a release Secret in the namespace. That single difference decides whether helm rollback is even on the table.

helm list -A
kubectl get secret -A -l owner=helm -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name | head -20
kubectl -n flux-demo get helmrelease 2>/dev/null || echo 'no HelmRelease yet: do the 2.3 HelmRelease exercise first'
outputcaptured 2026-11-18
$ helm list -A
NAME                  	NAMESPACE                    	REVISION	UPDATED                                	STATUS  	CHART                         	APP VERSION
alloy                 	monitoring                   	1       	2026-11-17 23:05:42.952633695 -0500 EST	deployed	alloy-1.16.0                  	v1.22.0    
argo-rollouts         	argo-rollouts                	1       	2026-11-17 22:51:37.292407368 -0500 EST	deployed	argo-rollouts-2.43.12         	v1.10.2    
argo-workflows        	argo                         	1       	2026-11-17 22:52:05.969038912 -0500 EST	deployed	argo-workflows-2.0.18         	v4.1.6     
argocd                	argocd                       	1       	2026-11-17 22:50:36.972619031 -0500 EST	deployed	argo-cd-10.18.0               	v3.6.1     
cilium                	kube-system                  	2       	2026-11-17 23:59:55.767529253 -0500 EST	deployed	cilium-1.20.5                 	1.20.5     
cnpg                  	cnpg-system                  	1       	2026-11-17 22:57:00.172233737 -0500 EST	deployed	cloudnative-pg-0.29.2         	1.30.2     
crossplane            	crossplane-system            	1       	2026-11-17 22:55:05.262752507 -0500 EST	deployed	crossplane-2.4.3              	2.4.3      
external-secrets      	external-secrets             	1       	2026-11-17 23:10:11.695518453 -0500 EST	deployed	external-secrets-2.15.0       	v2.15.0    
gatekeeper            	gatekeeper-system            	1       	2026-11-17 23:08:45.483494451 -0500 EST	deployed	gatekeeper-3.23.1             	v3.23.1    
kro                   	kro                          	1       	2026-11-17 22:57:37.276075848 -0500 EST	deployed	kro-0.4.1                     	0.4.1      
kyverno               	kyverno                      	1       	2026-11-17 23:07:38.672466729 -0500 EST	deployed	kyverno-3.10.0                	v1.20.0    
loki                  	monitoring                   	1       	2026-11-17 23:04:18.86335179 -0500 EST 	deployed	loki-7.6.0                    	3.6.18     
metrics-server        	kube-system                  	2       	2026-11-18 00:07:42.004088178 -0500 EST	deployed	metrics-server-3.14.0         	0.9.0      
opencost              	opencost                     	1       	2026-11-17 23:06:24.788324341 -0500 EST	deployed	opencost-2.5.34               	1.121.4    
opentelemetry-operator	opentelemetry-operator-system	1       	2026-11-17 23:03:48.501492031 -0500 EST	deployed	opentelemetry-operator-0.129.1	0.162.0    
podinfo               	flux-demo                    	1       	2026-11-18 06:01:08.429373281 +0000 UTC	deployed	podinfo-6.17.0                	6.17.0     
prometheus            	monitoring                   	1       	2026-11-17 22:58:33.342540369 -0500 EST	deployed	kube-prometheus-stack-93.4.0  	v0.95.2    
sealed-secrets        	kube-system                  	1       	2026-11-17 23:09:50.187583963 -0500 EST	deployed	sealed-secrets-2.22.0         	0.41.2     
spire                 	spire                        	1       	2026-11-17 23:11:48.994741947 -0500 EST	deployed	spire-0.31.0                  	1.16.0     
spire-crds            	spire                        	1       	2026-11-17 23:11:46.881305731 -0500 EST	deployed	spire-crds-0.6.1              	0.0.1      
trivy-operator        	trivy-system                 	1       	2026-11-17 22:54:41.848378968 -0500 EST	deployed	trivy-operator-0.38.1         	0.36.1     
vpa                   	vpa                          	2       	2026-11-18 00:07:47.303526798 -0500 EST	deployed	vpa-5.2.0                     	1.7.1      
$ kubectl get secret -A -l owner=helm -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name | head -20
NS                              NAME
argo-rollouts                   sh.helm.release.v1.argo-rollouts.v1
argo                            sh.helm.release.v1.argo-workflows.v1
argocd                          sh.helm.release.v1.argocd.v1
cnpg-system                     sh.helm.release.v1.cnpg.v1
crossplane-system               sh.helm.release.v1.crossplane.v1
external-secrets                sh.helm.release.v1.external-secrets.v1
flux-demo                       sh.helm.release.v1.podinfo.v1
gatekeeper-system               sh.helm.release.v1.gatekeeper.v1
kro                             sh.helm.release.v1.kro.v1
kube-system                     sh.helm.release.v1.cilium.v1
kube-system                     sh.helm.release.v1.cilium.v2
kube-system                     sh.helm.release.v1.metrics-server.v1
kube-system                     sh.helm.release.v1.metrics-server.v2
kube-system                     sh.helm.release.v1.sealed-secrets.v1
kyverno                         sh.helm.release.v1.kyverno.v1
monitoring                      sh.helm.release.v1.alloy.v1
monitoring                      sh.helm.release.v1.loki.v1
monitoring                      sh.helm.release.v1.prometheus.v1
opencost                        sh.helm.release.v1.opencost.v1
$ kubectl -n flux-demo get helmrelease 2>/dev/null || echo 'no HelmRelease yet: do the 2.3 HelmRelease exercise first'
NAME      AGE   READY   STATUS
podinfo   47s   True    Helm install succeeded for release flux-demo/podinfo.v1 with chart podinfo@6.17.0
verify: the charts Argo CD deployed don't show up in helm list, while anything Flux installed through a HelmRelease does. Be ready to name what you'd use instead of helm rollback on the Argo CD side.

Argo CD has to tell its own objects apart on a cluster full of other people's resources. Since 3.x it tracks ownership with an annotation instead of a label, which matters the moment you copy a manifest between applications and they start fighting over it.

kubectl -n argocd get cm argocd-cm -o jsonpath='{.data.application\.resourceTrackingMethod}' | grep . || echo 'unset, so the 3.x default is in force'
kubectl -n team-a get deploy staging-demo -o jsonpath='{.metadata.annotations}' | jq 'with_entries(select(.key | startswith("argocd")))'
kubectl -n team-a get deploy staging-demo -o jsonpath='{.metadata.labels}' | jq
outputcaptured 2026-09-13
$ kubectl -n argocd get cm argocd-cm -o jsonpath='{.data.application\.resourceTrackingMethod}' | grep . || echo 'unset, so the 3.x default is in force'
unset, so the 3.x default is in force
$ kubectl -n team-a get deploy staging-demo -o jsonpath='{.metadata.annotations}' | jq 'with_entries(select(.key | startswith("argocd")))'
{
  "argocd.argoproj.io/tracking-id": "demo-staging:apps/Deployment:team-a/staging-demo"
}
$ kubectl -n team-a get deploy staging-demo -o jsonpath='{.metadata.labels}' | jq
{
  "app": "demo",
  "app.kubernetes.io/part-of": "demo-app",
  "cost-centre": "team-a"
}
verify: argocd-cm has no application.resourceTrackingMethod key, so the 3.x default of annotation is in force. Notice how the annotation on the Deployment encodes the application, group/kind, and destination namespace in one string.

Self-check

answer before opening
State the four OpenGitOps principles without looking.

Declarative, versioned and immutable, pulled automatically by agents, and continuously reconciled. If you blank on one under pressure, it's usually "versioned and immutable", which also happens to be the one carrying the audit and rollback story.

Why are environment branches discouraged?

Long-lived branches accumulate divergent changes. Promotion turns into messy merges with conflicts and cherry-picks instead of a clean, reviewable diff, and environments drift apart structurally instead of differing only in the values you intended. Directories keep those differences explicit and diffable.

A colleague fixes production with kubectl edit during an incident. What happens next, and what should they have done?

Self-heal reverts it on the next reconcile (or flags it as drift if self-heal is off). The right move is to suspend or disable reconciliation for that app, apply the emergency change, then land the same fix in git and resume so it sticks and stays in the audit trail.

What does prune actually change, and what is the failure mode in each setting?

Prune deletes live resources whose manifests disappear from git. With prune off, renamed or removed resources linger forever as invisible cruft. With prune on, deleting a file deletes the running workload, so a careless refactor can cause a production outage. Neither mode is magically safe; safety comes from knowing which one is on.

Where do secrets live in a GitOps repo?

Encrypted (Sealed Secrets or SOPS) or by reference (External Secrets Operator pointing at an external store), never plaintext and never bare base64. The key distinction to state: Sealed Secrets and SOPS keep ciphertext in git, while ESO keeps only a reference and leaves the secret material in the external store.

What is the rendered manifests pattern and how does Argo CD 3.5 implement it?

You render Helm or Kustomize in a pipeline and commit the resulting plain YAML to a branch or directory that the agent syncs from, so reviewers diff final manifests instead of templates. Argo CD's Source Hydrator (beta since 3.5) builds this right into the controller: sourceHydrator.drySource is the templated input, and syncSource.targetBranch/path is where hydrated output gets pushed and synced from using a repository-write Secret.

Which secret approach keeps no secret material in git at all, and what is its dependency?

External Secrets Operator. Git holds an ExternalSecret referencing keys in a SecretStore or ClusterSecretStore, and the operator fetches and writes the Kubernetes Secret on a refreshInterval. The trade-off is your dependency on that external store and its credentials: if it goes down, rotation pauses (though existing Secrets keep working). Sealed Secrets and SOPS store ciphertext in git instead.

What does flux bootstrap actually create, and what is the name of the object that then manages Flux itself?

It installs the controllers, commits gotk-components.yaml and gotk-sync.yaml under --path in your repo, and creates a GitRepository and a Kustomization both named flux-system in the flux-system namespace. From then on, that Kustomization reconciles the whole cluster directory (Flux included), so upgrading Flux is just another commit.

Why does helm list show nothing for a chart Argo CD deployed?

Argo CD renders charts using helm template semantics and applies the plain manifests itself, so it never creates Helm release Secrets. Flux's helm-controller runs real Helm install and upgrade actions and keeps full release history, which is why helm list -n <storageNamespace> sees them. Make sure you call out that difference when comparing engines.

Docs to know your way around

study time, not exam time
  • opengitops.dev: the four principles, in exactly the form graders like.
  • kustomize.io: bases and overlays, patches, and the transformer list.
  • argo-cd.readthedocs.io and fluxcd.io: each has a "core concepts" page worth ten minutes before the tool sections.
  • Offline: kubectl kustomize <dir>, helm template, git log --oneline: your desired state is a repo, so ordinary git tooling is half the diagnosis.
  • fluxcd.io/flux/guides/repository-structure: monorepo, repo per environment and repo per team with their trade-offs.
  • argo-cd.readthedocs.io: Source Hydrator, OCI, Multiple Sources: the rendered manifests feature, oci:// sources and the $values pattern.
  • fluxcd.io/flux/guides/mozilla-sops and github.com/bitnami-labs/sealed-secrets: decryption config for Flux; scopes and key renewal for Sealed Secrets.