Operate and shipLesson 9 of 10
- Metrics, logs, events and traces, not reconciled
- Horizontal pod autoscaling, not reconciled
- Right-sizing and in-place resize, not reconciled
- A troubleshooting method, not reconciled
- kubectl debug and ephemeral containers, not reconciled
- Debugging from the node: crictl, journalctl and nsenter, not reconciled
- Upgrades and version skew, not reconciled
- etcd, backup and disaster recovery, not reconciled
- GitOps with Argo CD, not reconciled
- Progressive delivery, not reconciled
GitOps with Argo CD
GitOps keeps desired state in Git and lets an agent in the cluster pull it and revert drift. Argo CD does that with Applications scoped by AppProjects, sync policies, waves and hooks, and ApplicationSets for many clusters.
Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.
kubectl apply from a laptop or a CI job works until two people apply different versions, someone patches production by hand, or the pipeline that holds cluster-admin credentials is compromised. GitOps answers all three with the reconcile loop you already know from controllers, moved one level out: the desired state is a Git repository, and a controller makes the cluster match it, all the time. This lesson covers the principles, how CI and CD divide the work, and Argo CD’s model: Applications, Projects, sync, ordering and ApplicationSets.
Reconcile, in 8 scenes
Principles
OpenGitOps, overseen by the CNCF’s GitOps Working Group, states four principles:
- Declarative. The system’s desired state is expressed as data, Kubernetes manifests, not as a script of steps.
- Versioned and immutable. That state is stored so that every version is kept and cannot be changed after the fact, which in practice means Git. History is the audit log, and rollback is a revert.
- Pulled automatically. Software agents fetch the desired state from the source. Nothing outside pushes into the cluster.
- Continuously reconciled. Agents compare actual with desired state continuously and act on any difference, including differences someone made by hand.
The third principle moves credentials. In a push pipeline, CI holds a kubeconfig that can change production. In a pull model the agent inside the cluster holds that power, and CI only needs to push images and commit to a repository. The fourth principle is what makes it GitOps rather than “apply from Git”: driftAny difference between the live state of an object and the state its source declares, whether made by hand, by another controller or by a failed apply. is detected and reverted.
You can do one turn of that loop by hand. This is web.yaml as Git holds it:
Manifestweb.yaml
- deployment.apps/web
The preview runs once this page's cluster starts.$ kubectl diff -f web.yamlHere someone scales the Deployment and hot-patches its image, and the manifest still says three replicas of web:1.0:
kubectl apply -f web.yaml
deployment.apps/web created
kubectl scale deployment web --replicas=5
deployment.apps/web scaled
kubectl set image deployment/web web=ghcr.io/kx-labs/web:1.1
deployment.apps/web image updated
kubectl diff -f web.yaml
diff -u -N /tmp/LIVE-964565530/apps.v1.Deployment.default.web /tmp/MERGED-3432254820/apps.v1.Deployment.default.web
--- /tmp/LIVE-964565530/apps.v1.Deployment.default.web 2026-11-19 09:01:20.000000000 +0000
+++ /tmp/MERGED-3432254820/apps.v1.Deployment.default.web 2026-11-19 09:01:20.000000000 +0000
@@ -15,7 +15,7 @@
uid: 85694271-5cb3-4bab-9fc4-fc111ace4711
spec:
progressDeadlineSeconds: 600
- replicas: 5
+ replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
@@ -31,7 +31,7 @@
app: web
spec:
containers:
- - image: ghcr.io/kx-labs/web:1.1
+ - image: ghcr.io/kx-labs/web:1.0
imagePullPolicy: IfNotPresent
name: web
ports:kubectl apply -f web.yaml
deployment.apps/web configured
kubectl get deployment web -o wide
NAME READY UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR web 3/3 3 3 50s web ghcr.io/kx-labs/web:1.0 app=web
kubectl diff exits non-zero when it finds a difference; the lines starting with - are live and + are what the file would produce. A GitOps agent runs that comparison for every object it manages, reports the result as out of sync, and applies the file if you let it.
The pull model narrows the attack surface without closing it. The agent deploys whatever the manifests reference, so anyone who can push a new image under a mutable tag, or a new chart version to a Helm repository, changes production without touching Git. Pin images by digest and verify signatures at admission, with a policy such as Kyverno’s verifyImages or the Sigstore policy-controller.
The term GitOps came from Weaveworks, which created Flux and shut down in early 2024; Flux continues as a CNCF graduated project maintained by engineers at several companies. Argo CD belongs to Argo, the other graduated project with a GitOps controller, and the CNCF’s 2025 Argo CD end-user survey reports it as the majority choice among respondents. The rest of this lesson uses Argo CD.
CI and CD split
CI and CD become separate systems with a Git commit between them.
- CI runs on every change to application code: build, test, scan, push the image, and record it. It signs the image by digest, with Sigstore cosign or the Notary Project’s Notation, never by tag, because a tag can be moved to different bytes. The last step is a commit to the configuration repository that changes one image reference, for example with
kustomize edit set image, rather than asedover everyimage:line, which would also rewrite sidecars and init containers. For staging and production that commit is a pull request. - CD is the GitOps controller. It notices the new commit, renders the manifests and applies them.
Promotion tools can automate the commit: Argo CD Image Updater can write new tags back to Git, Flux’s image automation controllers do the same for Flux, and Kargo models promotion as stages. Pin the third-party actions or plugins a pipeline runs to full commit SHAs rather than tags; tags on popular CI actions have been force-pushed to malicious commits.
The same history measures delivery. DORA defines five software delivery metrics: change lead time, deployment frequency and failed deployment recovery time for throughput, and change failure rate and deployment rework rate for instability. Deployment frequency falls straight out of the configuration repository’s commits, and change lead time comes from joining them with the application commits they release. Failed deployment recovery time is the metric older material calls MTTR; DORA renamed it in 2023 and added rework rate in 2024.
Argo CD architecture
Argo CD runs in its own namespace, usually argocd, as a handful of components:
- API server: the gRPC and REST API behind the web UI, the
argocdCLI and CI integrations, with authentication and RBAC. - Repository server: clones repositories, keeps a local cache, and renders manifests from plain YAML, Kustomize, Helm or a config management plugin for a given repository, revision and path.
- Application controller: the reconcile loop. It watches live resources through a cache of each cluster, compares them with the rendered desired state, runs syncs and hooks, and computes health. It runs as a StatefulSet so it can shard clusters across replicas; the other components are Deployments.
- ApplicationSet controller and notifications controller, both in the standard install. The separate notifications catalog manifest adds only trigger and template definitions.
- Redis, a throwaway cache shared by the controller, the repository server and the API server.
- Dex, optional, for SSO through connectors such as SAML or LDAP; an existing OIDC provider can be configured directly instead.
This lesson follows Argo CD 3.6. Install from a pinned release with server-side apply: from Argo CD 3.3, the ApplicationSet CRD is too large for the annotation client-side apply writes, so kubectl apply -n argocd --server-side --force-conflicts -f the release’s install.yaml. Argo CD 3.0 changed defaults that older material assumes: resources are tracked by annotation, RBAC for update and delete on an application no longer covers its managed resources, access to logs is enforced by RBAC, and repositories are configured as Secrets, no longer as entries in argocd-cm.
The unit of deployment is an ApplicationAn Argo CD custom resource that pairs a source (repository, revision and path, or a chart) with a destination (cluster and namespace) and a sync policy.:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: shop-prod
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: shop
source:
repoURL: https://git.example.com/shop/deploy.git
targetRevision: main
path: overlays/prod
destination:
server: https://kubernetes.default.svc
namespace: shop
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
project and destination are required. https://kubernetes.default.svc is the cluster Argo CD runs in. The finalizer makes deleting the Application delete the resources it manages; without it, deleting the Application leaves them running.
Each Application reports two independent statuses. Sync status, Synced or OutOfSync, says whether live matches Git. Health, Healthy, Progressing, Degraded, Suspended or Missing, says whether the resources work. Argo CD polls each repository every 120 seconds plus up to 60 seconds of jitter, so a commit shows up within about three minutes, and setting timeout.reconciliation to 0 turns polling off. A webhook from the Git host makes it near-immediate. Flux has no global interval; every Flux source and Kustomization sets a required spec.interval.
Health comes from a check per kind. A Deployment is Progressing until its rollout completes; an Argo Rollouts Rollout paused at a step is Suspended, and an aborted one is Degraded.
Projects
An AppProjectAn Argo CD custom resource that limits which repositories, destination clusters and namespaces, and resource kinds its Applications may use, and who may act on them. is the guardrail between teams. The built-in default project allows any source, any destination and every kind, so production setups give each team its own:
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: shop
namespace: argocd
spec:
sourceRepos:
- https://git.example.com/shop/*
destinations:
- server: https://kubernetes.default.svc
namespace: shop
- server: https://staging.example.com
namespace: shop
- server: https://prod.example.com
namespace: shop
clusterResourceWhitelist:
- group: ""
kind: Namespace
namespaceResourceBlacklist:
- group: ""
kind: ResourceQuota
roles:
- name: deployer
policies:
- p, proj:shop:deployer, applications, sync, shop/*, allow
Its Applications may deploy only into the shop namespace of the three listed clusters. Here cluster-scoped kinds are restricted by an allow list and namespaced kinds by a deny list, so this project may create Namespaces but no other cluster-scoped object, such as a ClusterRole, and may create any namespaced kind except ResourceQuota. With no clusterResourceWhitelist at all, a project allows no cluster-scoped kinds. An Application that steps outside gets a clear refusal, such as a destination or resource that “is not permitted in project”. Project roles grant actions such as get, sync, update, delete and override on the project’s applications, which is how CI can be allowed to sync one project and nothing else. Projects also hold sync windows: a deny window blocks syncs during a freeze, and manualSync: true on a window still allows manual syncs while automated ones stay blocked.
Sync
Sync is applying the rendered manifests to the cluster. Manual sync waits for a person or a CI call; automated sync starts whenever the desired state changes. Three switches shape automated sync, and all three default to off:
prunedeletes resources that were removed from Git. Without it, Argo CD reports them as needing pruning and leaves them running.selfHealsyncs again when the live state drifts. Argo CD sees live changes through its watch-based cache, so self-heal acts within seconds, backing off exponentially (from 2 seconds, up to 5 minutes by default) if the resource keeps drifting; the three-minute interval is Git polling, not drift detection.allowEmptylets automated sync with prune proceed when the source renders no resources at all. It is off so that a bad commit that empties a directory cannot delete an application.
Automated sync attempts each combination of commit and parameters once and does not retry a failed sync for the same commit unless retry is set, as in the example above; limit: -1 retries without end, and from Argo CD 3.2 retry.refresh: true lets a retrying sync pick up a newer revision. From Argo CD 3.1, automated.enabled: false switches automation off while keeping its settings. Rolling back with argocd app rollback is refused while automated sync is on, because the next sync would undo it; the GitOps rollback is git revert.
Sync options change how resources are applied. CreateNamespace=true creates the destination namespace. PruneLast=true deletes pruned resources after everything else is healthy. ServerSideApply=true applies with Kubernetes server-side apply, which handles large objects and field ownership; it is opt-in per Application, and since Argo CD 3.6 those Applications also compute their diff server-side. Other Applications keep the client-side three-way diff based on the last-applied annotation unless the argocd.argoproj.io/compare-options: ServerSideDiff=true annotation or the controller-wide setting turns server-side diff on, which brings API server defaults and admission webhooks into the comparison.
Argo CD 3.x records ownership in the annotation argocd.argoproj.io/tracking-id, with a value such as shop-prod:apps/Deployment:shop/web. Argo CD 2.x tracked resources with the label app.kubernetes.io/instance by default, and guides written for it select an application’s resources by that label; on a default 3.x install that selector matches nothing.
Ordering
A sync is not one big apply. Argo CD orders it by phase, then by wave, then by kind, then by name.
Phases come from hooks, resources annotated with argocd.argoproj.io/hook. PreSync hooks run before anything is applied, Sync hooks with the manifests, PostSync hooks after everything is synced and healthy, and SyncFail hooks when the sync fails. PreDelete and PostDelete hooks run around deleting an Application. A failed PreSync hook stops the sync, which makes it the place for a database migration. Skip is different: it tells Argo CD not to apply that manifest at all.
Waves order resources inside a phase. argocd.argoproj.io/sync-wave holds an integer, negative values allowed, and resources without it are in wave 0. Argo CD applies the lowest wave, waits until it is synced and healthy, pauses two seconds, and moves on. Inside a wave, kinds go in dependency order: namespaces first, then other built-in resources, then custom resources.
apiVersion: batch/v1
kind: Job
metadata:
name: db-migrate
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
spec:
backoffLimit: 1
template:
spec:
restartPolicy: Never
containers:
- name: migrate
image: ghcr.io/kx-labs/worker:1.0
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: web
image: ghcr.io/kx-labs/web:1.1
ports:
- containerPort: 8080
Hooks are deleted according to hook-delete-policy; with none set, Argo CD uses BeforeHookCreation, deleting the previous run’s Job just before creating the next. When a custom resource and its CRD are in the same sync, Argo CD skips the dry run for the resource automatically and applies the CRD first. When the CRD comes from somewhere else, such as an operator that installs it at startup, the dry run fails because the kind does not exist yet; annotate the resource with argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true.
Scaling out
One Application per service per environment adds up fast. Two patterns manage that.
App of apps is an Application whose source directory contains Application manifests. Syncing the parent creates the children, and when the children carry the resources finalizer, deleting the parent cascades to everything beneath it.
An ApplicationSetAn Argo CD custom resource that generates Applications from a template and a set of parameters produced by generators. generates Applications from parameters. Generators include list, cluster (every cluster registered with Argo CD), git (one Application per directory or per file), matrix and merge to combine two generators, pull request for preview environments (exposing .number, .branch and .head_sha to the template), SCM provider, cluster decision resource and plugin. Templates use Go templating when goTemplate: true is set; fasttemplate’s {{env}} syntax is still the default, the documentation steers new templates to Go templating, and templatePatch, which needs Go templating, can add fields conditionally:
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: shop
namespace: argocd
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- env: staging
cluster: https://staging.example.com
autoSync: true
- env: prod
cluster: https://prod.example.com
autoSync: false
template:
metadata:
name: "shop-{{.env}}"
spec:
project: shop
source:
repoURL: https://git.example.com/shop/deploy.git
targetRevision: main
path: "overlays/{{.env}}"
destination:
server: "{{.cluster}}"
namespace: shop
templatePatch: |
{{- if .autoSync }}
spec:
syncPolicy:
automated:
prune: true
selfHeal: true
{{- end }}
Staging syncs automatically and production waits for a manual sync. Setting prune: false and selfHeal: false would not have achieved that: the presence of the automated block is what turns automated sync on, which is why the block is added only where autoSync is true. missingkey=error makes a typo in a parameter name fail loudly. The ApplicationSet controller gives every Application it generates the resources finalizer, so removing an element from a generator deletes its Application and its workloads; setting syncPolicy.preserveResourcesOnDeletion: true on the ApplicationSet leaves the finalizer off and keeps the workloads.
An Application can also have several sources. The common case is a chart from a Helm repository with values from Git: one entry in spec.sources carries ref: values, and the chart source names its value files as $values/<path>, as in a source with chart: prometheus, repoURL: https://prometheus-community.github.io/helm-charts and targetRevision: 29.47.2. $values may only start a value-file path, and the documentation advises against more than two or three sources. Pin chart versions as you pin images.
Repository layout
Keep application source and deployment configuration in separate repositories, or at least separate paths, so that CI commits to configuration do not retrigger builds and access can differ. Inside the configuration repository, one directory per environment is the common layout; long-lived branches per environment drift apart and turn promotion into merge conflicts, while directories make every promotion a reviewable diff.
# overlays/prod/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
labels:
- pairs:
env: prod
patches:
- path: replicas.yaml
images:
- name: ghcr.io/kx-labs/web
newTag: "1.1"
Kustomize 5 deprecated commonLabels and patchesStrategicMerge in favour of labels and patches, and kustomize edit fix migrates old files. Argo CD 3.6 bundles Kustomize 5.8; a different version has to be installed in the repository server and registered in argocd-cm. Quote tags: unquoted, YAML reads 1.10 as the number 1.1, not the string 1.10. With Helm, the same layout is one chart and a values file per environment. Promotion is a pull request that copies a change from the staging directory to the production one.
Secrets do not belong in Git as plain Secret manifests, base64 being an encoding, not encryption. Commit encrypted SealedSecret objects, or keep values in an external store and commit only references, for example External Secrets Operator resources in external-secrets.io/v1 (ESO 0.17 stopped serving v1beta1), or mount them with the Secrets Store CSI Driver. Argo CD’s documentation advises against injecting secret values while rendering manifests, which is what plugins such as the Argo CD Vault Plugin do, because the rendered manifests, secrets included, are cached in Redis and can be read back through the repository server’s API.
kubectl --context kind-kx create deployment web --image=nginx:1.30 --replicas=3 --dry-run=client -o yaml > web.yamlkubectl --context kind-kx apply -f web.yamlkubectl --context kind-kx scale deployment web --replicas=5kubectl --context kind-kx diff -f web.yamlkubectl --context kind-kx apply -f web.yamlkubectl --context kind-kx delete -f web.yaml
For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The diff shows replicas 5 against 3 in the file; the second apply puts it back. Argo CD runs this comparison for every resource it manages and reports the result as sync status.
Actual state
Check your understanding
Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.
Lesson not yet reconciled
Desired: 5 objectives, 0 metReconciled: 5 of 5 objectives met
- State the GitOps principles, declarative, versioned, pulled and continuously reconciled, and what each buys you. (not yet met)
- Split CI from CD so that CI builds and records images and a GitOps controller deploys what Git declares. (not yet met)
- Define an Argo CD Application and an AppProject with scoped sources, destinations and resource kinds. (not yet met)
- Configure automated sync with prune and self-heal, and order resources with sync waves and hooks. (not yet met)
- Generate Applications across environments and clusters with an ApplicationSet. (not yet met)
Pass every check above to reconcile this lesson.
Every check has passed, so the desired state is met. First-try accuracy: 0 of 6. This lesson's review cards are in your queue.
Changed since the notes
This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.
Show 63 corrections
The notes said'Flux… Originally from Weaveworks (who coined "GitOps")'; Flux presented as an active CNCF project
CorrectedOrigin is right, but Weaveworks shut down in early 2024. Flux stays a CNCF graduated project (graduated 2022-11-30) and GA; core maintainers are employed by ControlPlane (its main sponsor), SUSE and other companies, or are independent. Latest release is Flux v2.10.0 (2026-10-26).
The notes said'Most tools default to 3-5 minutes' reconciliation
CorrectedArgo CD polls Git every timeout.reconciliation 120s plus up to 60s jitter (timeout.reconciliation.jitter), so at most about 3 minutes; 0 disables polling. Flux has no global default: every source/Kustomization/HelmRelease sets a required spec.interval. Both support webhooks for near-immediate reconciliation.
The notes said'ArgoCD is the most popular GitOps tool'
CorrectedSupported by surveys but should be dated and attributed: the CNCF Argo CD End User Survey (2025-07-24) reports Argo CD as the majority-adopted GitOps tool (about 60% of respondents' clusters). Vendor surveys (Octopus Deploy's State of GitOps) report a similar lead over Flux; those figures were not confirmed against a primary source here.
The notes said'image updates (various image update automation tools)'
CorrectedName them: Argo CD Image Updater (argoproj-labs, v1.5.0), Flux image-reflector-controller and image-automation-controller (v1.3.0), and Kargo (Akuity, v1.12.6) for stage-based promotion.
The notes saidAn attacker 'must either compromise Git… or compromise the in-cluster agent'
CorrectedOverstated. The agent deploys whatever image or chart the manifests reference, so pushing a mutable tag to the registry or a chart version to a Helm repository changes production without touching Git. Pin images by digest and verify signatures at admission (Kyverno verifyImages, Sigstore policy-controller) or in the GitOps tool (Flux OCI/Helm verification).
Sourcegithub.com/kyverno/kyverno;%20https://github.com/sigstore/policy-controller
The notes saidkubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
CorrectedFrom Argo CD 3.3 the ApplicationSet CRD exceeds the 262144-byte last-applied annotation limit, so client-side apply fails. Use: kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml, and pin a release tag for production.
The notes saidArgo CD architecture and defaults described for 2.x
CorrectedArgo CD 3.0 changed defaults: annotation-based resource tracking, fine-grained RBAC for update/delete on sub-resources, logs RBAC enforced, default resource.exclusions, legacy repository config in argocd-cm removed, Dex RBAC based on federated_claims.user_id. Later: automated.enabled (3.1), retry.refresh (3.2), server-side install required (3.3), Helm 4 bundled (3.5), Server-Side Apply apps use Server-Side Diff (3.6). Latest release is v3.6.2.
The notes saidSelf-managed Argo CD on EKS with IRSA for cluster credentials
CorrectedSelf-managed with IRSA or Pod Identity remains valid. AWS also offers the managed EKS Capability for Argo CD (launched 2025-11-30 with ACK and kro): it runs outside your cluster, is billed per capability-hour, authenticates users through IAM Identity Center mapped to ADMIN/EDITOR/VIEWER roles, uses an IAM Capability Role, reaches target clusters through EKS access entries, and since August 2026 accepts custom argocd-cm configuration. One capability of each type per cluster.
The notes said'The Dex Server provides authentication'
CorrectedDex is bundled and optional. Argo CD's SSO docs give two options: the bundled Dex (for SAML/LDAP or Dex connector features such as GitHub org/team mapping) or configuring an existing OIDC provider directly in argocd-cm oidc.config. Local users and the admin account remain.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/user-management
The notes said'Services are healthy when endpoints exist'
CorrectedArgo CD's built-in Service health only assesses type LoadBalancer, which is Healthy once status.loadBalancer.ingress has a hostname or IP. Other Service types are Healthy regardless of endpoints.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/health#service
The notes saidLists the ApplicationSet Controller as '(optional)'
CorrectedThe standard install.yaml deploys argocd-applicationset-controller and argocd-notifications-controller alongside argocd-server, argocd-repo-server, argocd-redis, argocd-dex-server and argocd-application-controller.
Sourcegithub.com/argoproj/argo-cd/blob/master/manifests/install.yaml
The notes said'These components run as Deployments'
Correctedargocd-application-controller runs as a StatefulSet (for sharding across clusters); the other components are Deployments.
Sourcegithub.com/argoproj/argo-cd/blob/master/manifests/install.yaml
The notes saidRedis provides caching 'for the API server'
CorrectedRedis is a throwaway cache shared by the application controller, the repo server and the API server (manifests, app state, live resource tree).
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/architecture
The notes saidApplicationSet templates use '{{env}}' fasttemplate syntax
Correctedfasttemplate is still the default in 3.6 but the docs say it will be deprecated in favour of Go templates. Recommend goTemplate: true with goTemplateOptions: ['missingkey=error'] and {{.env}} syntax; templatePatch (go templating only) is the way to template non-string fields.
The notes saidKustomize options 'commonLabels' and version 'v4.5.7'
CorrectedApplication spec.source.kustomize.commonLabels is still a valid Argo CD field, but commonLabels in kustomization.yaml was deprecated in Kustomize v5.0.0 in favour of labels (kustomize edit fix migrates it). Argo CD bundles Kustomize 5.8.x; a non-bundled version such as v4.5.7 must be installed and registered in argocd-cm as kustomize.path.v4.5.7 before spec.source.kustomize.version can reference it.
The notes saidMulti-source Applications with ref/$values
CorrectedThe current docs no longer label multi-source as beta and it is absent from the feature-maturity table of alpha/beta features. Caveats remain: $values may only start a value-file path, duplicate resources across sources raise RepeatedResourceWarning, and the docs warn against using more than 2 to 3 sources.
The notes saidActions 'get, create, update, delete, sync, override, and action'
CorrectedActions are get, create, update, delete, sync, rollback, action, override and invoke. Since 3.0, update and delete on an application no longer cover managed resources; grant update/* or delete/<group>/<kind>/<ns>/<name> explicitly. Resources include applications, applicationsets, clusters, projects, repositories, write-repositories, accounts, certificates, gpgkeys, logs (get), exec (create) and extensions (invoke).
The notes said'JMESPath expressions provide more complex matching' followed by a managedFieldsManagers example
CorrectedArgo CD does not use JMESPath. ignoreDifferences supports jsonPointers, jqPathExpressions (jq) and managedFieldsManagers; the example shown is managedFieldsManagers.
The notes saidignoreDifferences on /spec/replicas presented as the HPA fix
CorrectedignoreDifferences only affects diff/sync status; during sync Argo CD still applies the Git replicas unless the RespectIgnoreDifferences=true sync option is set (effective only once the resource exists). Simpler: omit spec.replicas from the manifest when an HPA owns it.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/sync-options#respect-ignore-difference-configs
The notes said'ServerSideApply… Recommended for most use cases with Kubernetes 1.22+'
CorrectedServer-side apply is still opt-in per Application (syncOptions ServerSideApply=true), not the default. Since 3.6, Applications with ServerSideApply=true automatically use Server-Side Diff; the controller-wide flag (--server-side-diff-enabled / controller.diff.server.side) still defaults to false. Argo CD's own install now requires server-side apply.
The notes said'It uses a three-way diff similar to kubectl apply, considering the last-applied annotation'
CorrectedThe legacy client-side three-way diff is still the default. Server-Side Diff (a server-side apply dry-run against kube-apiserver, so admission webhooks and defaults are included) is enabled per app via compare-options ServerSideDiff=true, controller-wide via the flag, or automatically for ServerSideApply=true apps since 3.6, which also removed the Structured-Merge diff.
The notes saidSelfHeal timing
CorrectedSelf-heal retries use exponential backoff set by --self-heal-backoff-timeout-seconds (default 2), --self-heal-backoff-factor (default 3) and --self-heal-backoff-cap-seconds (default 300); --self-heal-timeout-seconds now has no default, and --self-heal-backoff-cooldown-seconds is deprecated since 3.3. The auto-sync page still mentions a 5-second timeout, which conflicts with the flag reference.
The notes saidRetry configuration fields (limit/backoff)
Correctedretry has limit (-1 means unlimited) and backoff.duration/factor/maxDuration, plus retry.refresh: true (Argo CD 3.2+, CLI --sync-retry-refresh), which makes a retrying sync pick up new revisions.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/auto_sync#automatic-retry-refresh-on-new-revisions
The notes said'Remember waves are strings, so "10" sorts before "2"'
Correctedargocd.argoproj.io/sync-wave is an integer (negative allowed, default 0) and waves run lowest to highest numerically, so wave 10 runs after wave 2. Behaviour for a non-integer value was not confirmed.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/sync-waves
The notes said'ManualSync can be true to also block manual syncs'
CorrectedInverted. Windows affect both manual and automated syncs; manualSync: true allows manual syncs during a deny window (or outside an allow window) while automated syncs stay blocked.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/sync_windows
The notes said'If selfHeal is enabled… Disable selfHeal temporarily if you need rollback to persist'
CorrectedRollback cannot be performed on an application with automated sync enabled at all. Disable automated sync first (remove the automated block or, from 3.1, set syncPolicy.automated.enabled: false), then run argocd app rollback APPNAME [ID].
Sourceargo-cd.readthedocs.io/en/stable/user-guide/auto_sync#automated-sync-semantics
The notes saidThe 'SelfHeal interval… defaulting to checking every few minutes'
CorrectedSelf-heal reacts to live-state changes from the controller's watch-based cluster cache within seconds (subject to the self-heal backoff). The roughly 3-minute interval is Git polling (timeout.reconciliation 120s plus up to 60s jitter).
The notes saidSkip is used 'with PreSync or PostSync to run only during those phases'
CorrectedHook-annotated resources already run only in their phase. argocd.argoproj.io/hook: Skip tells Argo CD not to apply the manifest at all.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/sync-waves
The notes said'A Rollout in the middle of canary analysis shows as Progressing'
CorrectedArgo CD surfaces Rollout status.phase: during an analysis or setWeight step it is Progressing, but a Rollout paused at a pause step (status.phase Paused or pauseConditions set) is mapped to Suspended; aborted rollouts show Degraded.
Sourcegithub.com/argoproj/argo-cd/blob/master/resource_customizations/argoproj.io/Rollout/health.lua
The notes saidGitHub Actions uses actions/checkout@v3
Correctedv3 ran on the deprecated Node 16 runtime. Current majors: v5 (2025-08, Node 24), v6 (2025-11) and v7 (2026-06, latest v7.0.1). Use actions/checkout@v7 or pin a commit SHA.
The notes said'These metrics (deployment frequency, lead time, change failure rate, MTTR) are the DORA metrics'
CorrectedDORA now uses five software delivery performance metrics in two groups: throughput (change lead time, deployment frequency, failed deployment recovery time) and instability (change failure rate, deployment rework rate). MTTR was renamed failed deployment recovery time (2023) and rework rate was added in 2024.
The notes saidImage signing with 'cosign, Notary'; scanners 'Trivy, Snyk, Anchore'
CorrectedNotary v2 is now the Notary Project's Notation CLI (CNCF incubating). Teach Sigstore cosign or Notation for signing and verification at admission time with Kyverno verifyImages (v1.20.0) or Sigstore policy-controller. The scanners named remain active.
The notes saidApplicationSet {{autoSync}}/{{number}}/{{head_sha}} fasttemplate variables
CorrectedThe PR generator still exposes number, branch, head_sha (plus head_short_sha and others). With the recommended goTemplate: true they are written {{.number}}, {{.branch}}, {{.head_sha}}; fasttemplate remains the default but is slated for deprecation.
The notes said'ArgoCD rollback uses ArgoCD's history… kubectl argo rollouts rollback or the UI'
CorrectedArgo CD rollback is argocd app rollback APPNAME [ID] (automated sync must be off). The Rollouts plugin command is kubectl argo rollouts undo (also abort, retry, promote); kubectl argo rollouts rollback does not exist.
The notes saidThe ApplicationSet promotion example gates production
CorrectedIt does not: prune/selfHeal false leaves automated sync on because the automated block is present; '{{autoSync}}' renders a string into boolean fields; spec.project is missing. Use goTemplate with templatePatch to add the automated block (or, from Argo CD 3.1, syncPolicy.automated.enabled: false) only for non-production elements, and set project.
The notes saidThe GitHub Actions example works as written
CorrectedIt cannot: it needs an AWS credentials step (aws-actions/configure-aws-credentials with GitHub OIDC and permissions: id-token: write) before ECR login (aws-actions/amazon-ecr-login, which also outputs the registry), $ECR_REGISTRY is undefined, the deploy repo is cloned and pushed without a token or git user identity, and sed 's|image: .*|…|' rewrites every image line including sidecars and initContainers (use kustomize edit set image or yq on one path).
Sourcegithub.com/aws-actions/configure-aws-credentials;%20https://github.com/aws-actions/amazon-ecr-login
The notes saidkubectl get all -l app.kubernetes.io/instance=my-app finds app resources
CorrectedArgo CD 3.0 made annotation tracking (argocd.argoproj.io/tracking-id) the default. The label selector matches nothing unless resourceTrackingMethod is set to label.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/upgrading/2.14-3.0
The notes saidnotifications_catalog/install.yaml installs Argo CD Notifications
CorrectedThe notifications controller ships with Argo CD. That manifest installs only the trigger and template catalog.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/notifications
The notes saidExternalSecret external-secrets.io/v1beta1 (also note 95)
CorrectedESO stopped serving v1beta1 in v0.17.0; use external-secrets.io/v1. ESO is at v2.15.0.
Sourcegithub.com/external-secrets/external-secrets/releases/tag/v0.17.0
The notes saidKustomize commonLabels and patchesStrategicMerge
CorrectedDeprecated in Kustomize v5.0.0. Use labels and patches.
Sourcegithub.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.0.0
The notes saidApplicationSet template '{{cluster}}' (fasttemplate)
Correctedfasttemplate is still the default and is not formally deprecated. The docs call Go templates (goTemplate: true, {{.cluster}}) more powerful.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/applicationset/GoTemplate
The notes saidHook phases are PreSync, Sync, PostSync, Skip, SyncFail
CorrectedPostDelete (added in v2.10) and PreDelete also exist.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/sync-waves
The notes saidInstall Argo CD from stable manifests (version unstated)
CorrectedArgo CD is at v3.6.2. Version 3.0 changed the tracking and RBAC defaults.
The notes saidEKS cluster secret uses bearerToken
CorrectedFor EKS, use awsAuthConfig (clusterName, roleARN) with IRSA or Pod Identity. Since 2026-08-21, the EKS Capability for Argo CD supports a subset of argocd-cm keys.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup
The notes saidArgo CD Vault Plugin for secrets
CorrectedThe Argo CD docs strongly caution against injecting secrets during manifest generation. Prefer ESO or the Secrets Store CSI Driver.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/secret-management
The notes saidprometheus chart targetRevision 15.0.0
Correctedprometheus-community/prometheus is at 29.47.2 (app v3.16.0).
Sourceartifacthub.io/packages/helm/prometheus-community/prometheus
The notes saidRedis caches only for the repo server
CorrectedRedis is a throw-away cache shared by the application controller, the API server and the repo server.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/architecture
The notes saidApp-of-apps Application without destination and project
Correcteddestination and project are both required Application spec fields.
Sourceargo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup
The notes said$values valueFiles without a ref: values source
Corrected$values needs spec.sources with one source that carries ref: values.
Sourceargo-cd.readthedocs.io/en/stable/user-guide/multiple_sources
The notes saidactions/upload-artifact@v3
Correctedv3 artifact actions fail on github.com from 2025-01-30. upload-artifact is at v7.
Sourcegithub.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions
The notes saidcache@v3, codecov@v3, codeql-action@v2, slack-github-action@v1, create-pull-request@v5, paths-filter@v2
CorrectedThe current majors are cache v6, codecov v7, CodeQL v4, slack-github-action v4, create-pull-request v8 and paths-filter v4. CodeQL v2 was retired in January 2025, and v3 is deprecated with GHES 3.19 (December 2026). cache@v3 still resolves to v3.4.0+, which works on cache service v2.
Sourcegithub.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3
The notes saidaquasecurity/tfsec-action for IaC scanning
Correctedtfsec has been folded into Trivy (trivy config), and the tfsec README documents the migration.
The notes saidFROM node:18 / node:18-slim (also note 94)
CorrectedNode 18 reached EOL on 2025-04-30, and Node 20 on 2026-04-30. Use Node 24 or 26 LTS.
The notes saiddocker-compose up -d
CorrectedCompose v1 stopped receiving updates in July 2023. Use docker compose.
The notes saidGitLab only: - main
Correctedonly/except are not actively developed. Use rules:.
Sourcedocs.gitlab.com/ci/yaml
The notes saidActions referenced at @master/@main (trivy-action, snyk, trufflehog)
CorrectedFloating refs are a supply-chain risk; pin to full commit SHAs. On 2026-03-19, attackers force-pushed malicious commits onto trivy-action tags.
Sourcegithub.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23
The notes saidruns-on: ubuntu-latest-4-cores
CorrectedAn org admin names larger runners, so this is not a standard label.
Sourcedocs.github.com/en/actions/using-github-hosted-runners/using-larger-runners
The notes saidImage pushed to ecr.amazonaws.com/my-app
CorrectedThe format is <account>.dkr.ecr.<region>.amazonaws.com/<repo>, and pushing requires an ECR login first.
Sourcedocs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html
The notes saidDeploy job runs kubectl without checkout, credentials or kubeconfig
CorrectedThe job needs checkout, configure-aws-credentials, aws eks update-kubeconfig, and an EKS access entry for the role.
Sourcedocs.aws.amazon.com/eks/latest/userguide/access-entries.html
The notes saidamazon-ecr-login uses OIDC
Correctedamazon-ecr-login reuses the credentials that configure-aws-credentials sets. OIDC belongs to that step.
The notes saidcosign sign --key on a tag
CorrectedSign by digest. cosign is at v3.1.4.
Sourcedocs.sigstore.dev/cosign/signing/signing_with_containers
The notes saidcreate-pull-request with a repository input
CorrectedThere is no repository input. Check out the target repo to a path and pass path:.
Sourcegithub.com/peter-evans/create-pull-request/blob/main/action.yml
The notes saidnpm test inside the slim production image
CorrectedThe production stage has no devDependencies. Run tests in the build stage.
Every correction across the guide, by note and topic.
Sources
Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .
- opengitops.dev
- argo-cd.readthedocs.io/en/stable/operator-manual/architecture
- argo-cd.readthedocs.io/en/stable/faq
- argo-cd.readthedocs.io/en/stable/user-guide/projects
- argo-cd.readthedocs.io/en/stable/user-guide/auto_sync
- argo-cd.readthedocs.io/en/stable/user-guide/sync-options
- argo-cd.readthedocs.io/en/stable/user-guide/sync-waves
- argo-cd.readthedocs.io/en/stable/user-guide/resource_tracking
- argo-cd.readthedocs.io/en/stable/user-guide/diffing
- argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Generators
- argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Application-Deletion
- argo-cd.readthedocs.io/en/stable/operator-manual/upgrading/2.14-3.0
- kubernetes.io/docs/reference/kubectl/generated/kubectl_diff
- kubectl.docs.kubernetes.io/references/kustomize/kustomization
- docs.aws.amazon.com/eks/latest/userguide/argocd-comparison.html
- docs.aws.amazon.com/eks/latest/userguide/argocd-considerations.html
- docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html
GitOps with Argo CD
↓ ↑ step, 1 to 8 scene, Esc leave