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.
make coreOrientation
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.
- Declarative: the system's desired state is expressed declaratively.
- Versioned and immutable: desired state is stored in a way that enforces immutability and versioning, and retains a complete version history.
- Pulled automatically: software agents pull the desired state declarations from the source.
- 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 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".
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
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.
| Choice | Common form | Why |
|---|---|---|
| App source vs config | Separate repos | A config tweak shouldn't rebuild an image, and merging app code shouldn't deploy by accident. |
| Environments | Directories, not branches | Long-lived environment branches drift and fight during merges. Directories diff cleanly and promote with a straightforward copy or PR. |
| Many apps | Monorepo with per-app paths, or one repo per app plus a platform repo | Monorepos make atomic cross-app changes easy; separate repos make ownership and access control cleaner. |
| Promotion | Changes flow staging → prod via a PR that bumps an image tag or patch | The git diff is the change record, so reviews and approvals attach to it naturally. |
| Rendered manifests | CI renders Kustomize/Helm output to a branch the agent watches | Reviewers 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.
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
- 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
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
| Layout | Tree | Choose it when | Cost |
|---|---|---|---|
| Monorepo | apps/{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 environment | Same tree, with production split into its own repository | Production access needs to be strictly narrower than staging access. | Promotion requires a cross-repo PR, and infrastructure changes take two commits. |
| Repo per team | Platform repo with teams/, infrastructure/, clusters/; each dev team owns an apps repo registered as a source | Tenants 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,targetRevisionto a tag or digest, andpath: .. Helm charts in OCI registries work the same way, using standardchartfields. - Flux: Run
flux push artifact oci://registry/org/config:tag --path ./deploy --source ... --revision ...to publish an artifact with Flux media types. AnOCIRepositoryconsumes it viaref.tag,ref.semver, orref.digest, with optionalverify.provider: cosignornotationverification, and a Kustomization uses it just like aGitRepository. - 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
| Question | Kustomize | Helm |
|---|---|---|
| You own the manifests and want per-env deltas | Bases and overlays, patches, images, replacements, components | Possible via values files, though heavier |
| You consume third-party software | Possible by vendoring or remote bases (Flux can forbid remote bases) | The chart is the product: pin version and override values |
| Conditionals, loops, generated names | None by design | Full Go templates |
| Review | Plain YAML; kubectl kustomize shows the exact output | helm template or the Source Hydrator |
| Lifecycle | The GitOps agent is the entire lifecycle | Release 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.
"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
The three secret answers, field by field
| Question | Sealed Secrets | SOPS | External Secrets Operator |
|---|---|---|---|
| What lives in git | A SealedSecret CR holding ciphertext encrypted to the controller's public key | The Secret manifest with data/stringData encrypted in place, plus a sops metadata block | An ExternalSecret naming keys in an external store, with zero secret material |
| Who decrypts | Only the in-cluster controller | The 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 key | The 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 backends | refreshInterval (or refreshPolicy: CreatedOnce), templating, and PushSecret to write back |
| Weak point | Losing the controller's private key loses everything; tightly cluster-bound | Distributing decryption keys to every agent; rotating a secret requires a commit | The 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
| Aspect | Argo CD 3.x | Flux 2.x |
|---|---|---|
| Unit | Application (single or multi-source) and ApplicationSet | GitRepository/OCIRepository paired with Kustomization or HelmRelease |
| UI and RBAC | Built in: web UI, SSO, project roles, and policy.csv | No built-in UI; uses Kubernetes RBAC via impersonation (serviceAccountName) |
| Helm | Renders the chart and applies plain manifests; no Helm release history | Real Helm releases with tests, remediation, and rollback |
| Drift | selfHeal is opt-in; OutOfSync is still reported in manual mode | Re-applies on every interval, so drift correction is implicit |
| Image write-back | Not built in (Argo CD Image Updater is a separate project) | Built-in image-reflector and image-automation controllers |
| Fan-out | ApplicationSet generators | One Kustomization per cluster directory (plus Flux Operator ResourceSets in the wider ecosystem) |
| Footprint | api-server, repo-server, application-controller, redis, dex, applicationset, notifications | Four to six small, focused controllers |
| Multi-tenant lockdown | AppProject 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 supportsgitlab,gitea,bitbucket-server, and genericgit). Bootstrap installs the controllers, commitsgotk-components.yamlandgotk-sync.yamlunder that path, and creates theflux-systemGitRepository and Kustomization so Flux manages itself from then on. Pass--components-extra image-reflector-controller,image-automation-controllerfor image automation, verify withflux check, and runflux migratebefore upgrades to move objects to current API versions (Flux 2.9 removed thev1beta2image and notification APIs). - Argo CD: Apply the install manifest, then create a root Application pointing at your platform repo's
argocd/orclusters/directory containing Argo CD's own config plus every child Application (the app-of-apps pattern). From there, Argo CD manages its ownargocd-cm,argocd-rbac-cm, and Applications. Don't forget to rotate and delete the initial admin password inargocd-initial-admin-secret.
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
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: cacheThe 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 pushoutputcaptured 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 -> mainBoth controllers are already wired up to Gitea:
kubectl -n argocd get secret gitea-repo -o jsonpath='{.data.url}' | base64 -d; echo
flux get sources gitoutputcaptured 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' 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.
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:9e73f795cf5ea00d6f8120f2a75ecc210d6aea9d70d9148d190428fea3eef73dBefore 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 -Aoutputcaptured 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' 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.0helm 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}' | jqoutputcaptured 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"
}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
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
- 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.