Broken delivery is the single most likely domain 2 exam task. Failures sort cleanly into four buckets (plus admission), and your first diagnostic move is figuring out which bucket you're in. Everything on this page trains that reflex.

needsmake core

Orientation

the diagnostic half of every domain 2 competency

Under exam time pressure, the costly mistake isn't picking the wrong fix; it's fixing the wrong layer. Bucket the problem first, then descend. Name the bucket out loud before touching anything: it takes three seconds and keeps you from patching live state when the real bug lives in git.

The 30-second triage
argocd app get <app>            # sync status + health + last sync time + conditions
flux get kustomizations -A       # Ready / Suspended / revision
kubectl -n <ns> get pods         # is anything even running
kubectl -n <ns> get events --sort-by=.lastTimestamp | tail -20
outputcaptured 2026-08-26
$ argocd app get demo-staging     # sync status + health + last sync time + conditions
Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        Synced to main (c7cb9a1)
Health Status:      Healthy

GROUP  KIND        NAMESPACE  NAME          STATUS  HEALTH   HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  Synced  Healthy        deployment.apps/staging-demo configured
       Service     team-a     staging-demo  Synced  Healthy        
$ flux get kustomizations -A       # Ready / Suspended / revision
NAMESPACE  	NAME     	REVISION          	SUSPENDED	READY	MESSAGE                              
flux-system	demo-flux	main@sha1:c7cb9a1e	False    	True 	Applied revision: main@sha1:c7cb9a1e	
$ kubectl -n team-a get pods       # is anything even running
NAME                            READY   STATUS    RESTARTS   AGE
staging-demo-66955f8974-2xxd2   1/1     Running   0          4m21s
staging-demo-66955f8974-pzxdh   1/1     Running   0          4m21s
staging-demo-66955f8974-tzpqx   1/1     Running   0          4m22s
$ kubectl -n team-a get events --sort-by=.lastTimestamp | tail -20
4m16s       Normal    Created             pod/staging-demo-66955f8974-2xxd2    Container created
4m15s       Normal    Created             pod/staging-demo-66955f8974-tzpqx    Container created
4m15s       Normal    Started             pod/staging-demo-66955f8974-pzxdh    Container started
4m15s       Normal    Started             pod/staging-demo-66955f8974-tzpqx    Container started
4m1s        Normal    SuccessfulCreate    replicaset/staging-demo-66955f8974   Created pod: staging-demo-66955f8974-7xnfb
4m1s        Normal    ScalingReplicaSet   deployment/staging-demo              Scaled up replica set staging-demo-66955f8974 from 3 to 5
4m1s        Normal    Scheduled           pod/staging-demo-66955f8974-7xnfb    Successfully assigned team-a/staging-demo-66955f8974-7xnfb to cnpe-worker
4m1s        Normal    SuccessfulCreate    replicaset/staging-demo-66955f8974   Created pod: staging-demo-66955f8974-jh7rr
4m          Normal    Scheduled           pod/staging-demo-66955f8974-jh7rr    Successfully assigned team-a/staging-demo-66955f8974-jh7rr to cnpe-worker2
3m59s       Normal    SuccessfulDelete    replicaset/staging-demo-66955f8974   Deleted pod: staging-demo-66955f8974-7xnfb
3m59s       Normal    ScalingReplicaSet   deployment/staging-demo              Scaled down replica set staging-demo-66955f8974 from 5 to 3
3m59s       Normal    SuccessfulDelete    replicaset/staging-demo-66955f8974   Deleted pod: staging-demo-66955f8974-jh7rr
3m58s       Normal    Pulled              pod/staging-demo-66955f8974-7xnfb    Container image "ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine" already present on machine and can be accessed by the pod
3m58s       Normal    Pulled              pod/staging-demo-66955f8974-jh7rr    Container image "ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine" already present on machine and can be accessed by the pod
3m57s       Normal    Killing             pod/staging-demo-66955f8974-jh7rr    Stopping container web
3m57s       Normal    Started             pod/staging-demo-66955f8974-jh7rr    Container started
3m57s       Normal    Created             pod/staging-demo-66955f8974-jh7rr    Container created
3m57s       Normal    Killing             pod/staging-demo-66955f8974-7xnfb    Stopping container web
3m57s       Normal    Started             pod/staging-demo-66955f8974-7xnfb    Container started
3m57s       Normal    Created             pod/staging-demo-66955f8974-7xnfb    Container created

Those four commands drop you into the right bucket almost every single time.

The four buckets

symptom → evidence → who fixes it

1 · Git is wrong, the cluster is faithful

Synced and Degraded. Someone pushed a bad image tag, an impossible resource request, a missing ConfigMap key, or a readiness probe that can never pass. The controller did its job faithfully, so the fix is a git commit. Evidence: health reads Degraded (or sits in Progressing headed there) while sync is green, and pod events spell out the real fault: ImagePullBackOff, CreateContainerConfigError, or CrashLoopBackOff.

2 · The cluster refuses what git says

The sync fails outright. An admission policy blocks the manifest, the API version doesn't exist on this cluster, a field is immutable (Service clusterIP, Deployment selectors, shrinking a PVC), or the CRD isn't installed yet. Evidence: the sync operation's error quotes the API server's rejection verbatim. For immutable-field errors, you need delete-and-recreate or Replace=true.

3 · The controller lacks permission or access

The repo is unreachable, credentials rotated, an Application targets a namespace the controller's RBAC can't touch, or an ApplicationSet token is missing a scope. Evidence: the error points at the controller's own identity, lives in controller logs (kubectl -n argocd logs deploy/argocd-repo-server or flux logs), and says nothing about your workload. No pod is ever involved, and that absence is the giveaway.

4 · Nobody is wrong, the state is stale

A dropped webhook, a long poll interval, a forgotten suspend, or a branch that moved while the app is pinned to a tag. Evidence: everything looks green, just old. flux get kustomizations shows Suspended: True, or argocd app get shows a last-sync timestamp from an hour ago. Run argocd app get --refresh or flux reconcile … --with-source, and always check for suspension first.

BucketSyncHealthWhere the text comes fromFix lives in
1 git wrongSyncedDegradedPod eventsA git commit
2 cluster refusesFailed / OutOfSyncn/aAPI server, quoted by the sync opA commit + a sync option
3 accessUnknown / errorn/aController logsA Secret, RBAC, or token
4 staleSyncedHealthyTimestamps, Suspended flagA reconcile or resume
Drift deserves one more sentence

With self-heal turned on, live drift vanishes automatically, flipping the mystery to "what keeps recreating this object I keep deleting?". A controller is doing it, and kubectl get <res> -o jsonpath='{.metadata.ownerReferences}' (or Argo CD's argocd.argoproj.io/tracking-id annotation) proves which one. With self-heal off, argocd app diff shows you line by line what drifted.

The descent, one level at a time

resist skipping levels
Application / Kustomization   status.conditions, last sync, revision
        │
        ▼
rendered manifests            argocd app manifests · kustomize build · flux build
        │
        ▼
the apply                     sync operation message, API server rejection text
        │
        ▼
controller objects            Deployment → ReplicaSet → Pod   ← quota and PSS errors live on the RS
        │
        ▼
pod                           describe → events → logs → logs --previous → exec/debug
        │
        ▼
prove recovery with the signal that showed the failure

Two habits pay off every single time. First, compare rendered manifests against live objects instead of squinting at raw source YAML: argocd app manifests <app> prints the exact manifests being applied, catching overlay bugs that source review misses. Second, don't skip the middle layer: when a Deployment exists with zero pods, the error is sitting on its ReplicaSet, and skipping straight from Deployment to pods makes people miss it completely.

The status vocabulary, engine by engine

every string you will see in a status field, and the bucket it points at

Bucketing gets much faster once you read the exact status string instead of reacting to red vs green. Both engines emit stable condition and reason names, and exam scenarios love quoting them directly.

Argo CD

FieldValueBucket
status.sync.statusOutOfSyncBucket 1 if auto-sync is off and git moved, or bucket 4 if auto-sync should have acted (check syncPolicy and sync windows)
status.sync.statusUnknownBucket 3: comparison itself failed; read conditions
status.health.statusDegraded · MissingBucket 1: workload can't run, or a desired resource is missing (pruned by another app, or refused by admission in bucket 5)
status.health.statusProgressing (for long)Bucket 1, or a CRD with no custom health check that never settles
status.health.statusSuspendedA paused Deployment, suspended CronJob, or paused Rollout (intentional, not a fault)
status.operationState.phaseFailedBucket 2 or 5: the API server rejected an apply (check syncResult.resources[].message)
status.operationState.phaseErrorBucket 3: Argo CD couldn't even run the operation (render failure, repo error, hook creation)
conditions[].typeComparisonErrorBucket 3: unreachable repo, bad credentials, render error, or unreachable destination cluster
conditions[].typeInvalidSpecErrorBucket 3: the AppProject blocks the repo, destination, or kind, or the referenced project doesn't exist
conditions[].typeSyncErrorBucket 2 or 5
conditions[].typeSharedResourceWarning · RepeatedResourceWarning · OrphanedResourceWarning · ExcludedResourceWarningNon-blocking warnings: two apps fighting over one resource, duplicate resource in one source, untracked namespace objects, or a kind skipped by resource.exclusions
conditions[].typeDeletionErrorA PreDelete or PostDelete hook failed, leaving the Application stuck in Terminating

Flux

ObjectReady reasonBucket
GitRepository / OCIRepositoryAuthenticationFailed · GitOperationFailed · OCIArtifactPullFailed · VerificationErrorBucket 3: credentials, URL, ref, or signature verification
KustomizationArtifactFailedBucket 3 (upstream): the source has no artifact yet; fix the source first
KustomizationBuildFailedBucket 1: wrong path, invalid kustomization, or missing substituteFrom ConfigMap
KustomizationDependencyNotReadyFollow the named dependency down the exact same ladder
KustomizationReconciliationFailedBucket 2 or 5: the apply failed, with the API server or webhook rejection right in the message
KustomizationHealthCheckFailedBucket 1: applied cleanly, but never became healthy before timeout
KustomizationPruneFailedBucket 2: garbage collection blocked by finalizers or a protected resource
HelmReleaseInstallFailed · UpgradeFailedBucket 1 or 2: Helm error; inspect with kubectl describe hr and flux logs --kind HelmRelease
HelmReleaseTestFailedBucket 1: chart tests failed, triggering remediation unless ignored
HelmReleaseRollbackSucceeded · UninstallSucceeded · RetriesExceededRemediated onto the last good revision; needs a spec change or flux reconcile hr --reset to retry
anyReconciling=True, reason ProgressingWithRetryLast attempt failed and a retry is queued; check the Ready reason for why
anyspec.suspend: true (Suspended column)Bucket 4
Reflex

In Argo CD, run argocd app get X then kubectl -n argocd get app X -o jsonpath='{.status.conditions[*].type}'. In Flux, run flux get all -A --status-selector ready=false then kubectl get kustomization X -n flux-system -o jsonpath='{.status.conditions[?(@.type=="Ready")].reason}'. Let the reason string pick your bucket first; only then dig into the full message.

Bucket 5: admission refused it

webhooks and policy engines between the controller and etcd

The first four buckets assume the API server itself is the final gatekeeper. Once you add Kyverno, Gatekeeper, ValidatingAdmissionPolicy, or operator webhooks, there's a fifth place a manifest can die, and it speaks its own error dialect.

Message fragmentWhoFix lives in
admission webhook "validate.kyverno.svc-fail" denied the request: ... policy X rule YKyverno validate in Enforce modeThe manifest (satisfy the rule) or the policy (exclude or switch to Audit), never the GitOps controller
admission webhook "validation.gatekeeper.sh" denied the request: [constraint-name] ...Gatekeeper constraintSame choice; enforcementAction: dryrun is the audit equivalent
ValidatingAdmissionPolicy 'x' with binding 'y' denied request: ...VAP (GA 1.30), or MutatingAdmissionPolicy (GA 1.36) for mutationsThe policy's CEL expression or binding match (no webhook pod exists here)
failed calling webhook "x": ... connection refused / context deadline exceeded / no endpoints availableA webhook whose backing pod is down with failurePolicy: FailThe webhook's Deployment or Service; every matching write is frozen until it's back, including the GitOps controller's own
dry-run failed ... admission webhook "x" does not support dry runFlux's server-side dry-run hitting a webhook without sideEffects: None or NoneOnDryRunThe webhook configuration
the server could not find the requested resourceA CR whose CRD isn't installed yet (Argo CD dry-run)SkipDryRunOnMissingResource=true or a sync wave; in Flux, dependsOn the CRD Kustomization

The tell separating bucket 5 from bucket 2 is simple: the error names a webhook or policy rather than a schema field. On the controller side the symptom looks identical (Argo SyncFailed, Flux ReconciliationFailed), and for Deployments a pod-level policy violation can again show up one level down on the ReplicaSet. Meanwhile, a mutating policy that alters manifests after apply (injecting sidecars, labels, or resource requests) shows up as endless OutOfSync in Argo CD and noisy "configured" events every interval in Flux. Fix that with ignoreDifferences or kustomize.toolkit.fluxcd.io/ssa: Merge instead of fighting the policy.

The webhook that blocks its own fix

A dead webhook with failurePolicy: Fail and a broad scope (all pods, all namespaces) can block the GitOps controller from applying the exact manifest that would fix it. Inspect kubectl get validatingwebhookconfiguration,mutatingwebhookconfiguration and the webhook Service's endpoints. The clean fix is getting the webhook pod healthy; the break-glass move is flipping that webhook to Ignore or tightening its namespaceSelector, then capturing that change in git.

Exercises

each one stages a failure; diagnose before fixing

Always diagnose and name the bucket before touching a fix.

Push newTag: 9.9.9-nope to the staging overlay in the platform repo. Watch demo-staging stay Synced while health moves to Progressing (Degraded waits on the Deployment's 10-minute progress deadline, so don't wait for it; the pod error shows up immediately). Walk down the stack: argocd app get demo-staging → kubectl -n team-a get pods → kubectl describe pod reveals ImagePullBackOff. Fix it in git only.

verify: revert commit pushed, app back to Healthy without touching live state via kubectl.

Add a Kustomize patch in the staging overlay setting spec.clusterIP: 10.96.99.99 on the demo Service (since the Service lives in base, patching it in the overlay is the standard Kustomize move). Sync and inspect the rejection.

verify: you can trace where the error came from (the API server, relayed by the sync operation) and fix it by dropping the patch. Classic bucket 2, called out right in the error message.

Deleting the repo Secret wouldn't break this lab, and knowing why is half the exercise: the lab's Gitea repos are public, so anonymous cloning still succeeds. Bad credentials fail where missing credentials wouldn't, because Gitea rejects a wrong password even on a public repo. Corrupt the Secret:

kubectl -n argocd patch secret gitea-repo -p '{"stringData":{"password":"wrong"}}'
argocd app get demo-staging --refresh
outputcaptured 2026-08-26
$ kubectl -n argocd patch secret gitea-repo -p '{"stringData":{"password":"wrong"}}'
secret/gitea-repo patched
$ argocd app get demo-staging --refresh
Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        Unknown
Health Status:      Healthy

CONDITION        MESSAGE  LAST TRANSITION
ComparisonError  Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = failed to list refs: authentication required: Failed to authenticate user
                 2026-08-26 22:21:09 -0400 EDT


GROUP  KIND        NAMESPACE  NAME          STATUS   HEALTH   HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  Unknown  Healthy        deployment.apps/staging-demo configured
       Service     team-a     staging-demo  Unknown  Healthy        

Notice the error talks about authentication, not manifests. Fix it by re-running make gitops (idempotent) or patching the real password back in; remember the Secret holds GITEA_PASS from lab.env, not the API token in .gitea-token.

verify: refresh succeeds again. Notice how clean the bucket-3 signature was: not a single workload pod was ever involved.

Run flux suspend kustomization demo-flux (from section 2.3), push any small edit to demo-app/base in the platform repo, and watch demo-flux's target sit completely frozen with zero errors (meanwhile, Argo CD picks up the base edit right away; only the suspended consumer goes quietly stale). That lack of an error is the symptom.

verify: flux get kustomizations flags Suspended True, and resuming lets the change land immediately. Make checking suspension your automatic first move; it takes three seconds.

Run FAULT=config make break to inject a live fault into team-a under a 7-minute timer. Bucket it, fix it, then check your work with make break-answer.

verify: repeat until you can call the right bucket in under a minute.

An admission policy blocks both GitOps engines, yet each reports the refusal in its own status vocabulary. Get comfortable with both error shapes so either one instantly clicks.

# the LoadBalancer IP only exists when cloud-provider-kind runs; the NodePort is always there
ARGO=$(kubectl get node cnpe-control-plane -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}'):$(kubectl -n argocd get svc argocd-server -o jsonpath='{.spec.ports[?(@.port==80)].nodePort}')
argocd login "$ARGO" --username admin --password "$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d)" --plaintext --grpc-web
kubectl apply -f - <<'EOF'
apiVersion: policies.kyverno.io/v1
kind: ValidatingPolicy
metadata: { name: require-owner }
spec:
  validationActions: [Deny]
  matchConstraints:
    resourceRules:
      - apiGroups: [apps]
        apiVersions: [v1]
        operations: [CREATE, UPDATE]
        resources: [deployments]
    namespaceSelector:
      matchExpressions:
        - { key: kubernetes.io/metadata.name, operator: In, values: [team-a, flux-demo] }
  validations:
    - expression: "has(object.metadata.labels) && 'owner' in object.metadata.labels && object.metadata.labels['owner'] != ''"
      message: "every Deployment needs an owner label"
EOF
sleep 10
# an unchanged resource is never sent to admission, so each engine has to create one
kubectl -n team-a delete deploy staging-demo --ignore-not-found
kubectl -n flux-demo delete deploy demo --ignore-not-found
# this app syncs automatically, so wait out the controller's own operation first
argocd app wait demo-staging --operation --timeout 180 || true
argocd app sync demo-staging --timeout 60 || true
argocd app wait demo-staging --operation --timeout 180 || true
kubectl -n argocd get app demo-staging -o jsonpath='{.status.operationState.phase}{"\n"}{.status.operationState.message}{"\n"}'
flux reconcile kustomization demo-flux --with-source || true
kubectl -n flux-system get kustomization demo-flux -o jsonpath='{.status.conditions}' | jq '.[] | {type, status, reason, message}'
kubectl delete validatingpolicy require-owner
# this app syncs automatically, so wait out the controller's own operation first
argocd app wait demo-staging --operation --timeout 180 || true
argocd app sync demo-staging --timeout 120
outputcaptured 2026-11-18
$ # the LoadBalancer IP only exists when cloud-provider-kind runs; the NodePort is always there
$ ARGO=$(kubectl get node cnpe-control-plane -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}'):$(kubectl -n argocd get svc argocd-server -o jsonpath='{.spec.ports[?(@.port==80)].nodePort}')
$ argocd login "$ARGO" --username admin --password "$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d)" --plaintext --grpc-web
'admin:login' logged in successfully
Context '172.18.0.12:32162' updated
$ kubectl apply -f - <<'EOF'
apiVersion: policies.kyverno.io/v1
kind: ValidatingPolicy
metadata: { name: require-owner }
spec:
  validationActions: [Deny]
  matchConstraints:
    resourceRules:
      - apiGroups: [apps]
        apiVersions: [v1]
        operations: [CREATE, UPDATE]
        resources: [deployments]
    namespaceSelector:
      matchExpressions:
        - { key: kubernetes.io/metadata.name, operator: In, values: [team-a, flux-demo] }
  validations:
    - expression: "has(object.metadata.labels) && 'owner' in object.metadata.labels && object.metadata.labels['owner'] != ''"
      message: "every Deployment needs an owner label"
EOF
validatingpolicy.policies.kyverno.io/require-owner created
$ sleep 10
$ # an unchanged resource is never sent to admission, so each engine has to create one
$ kubectl -n team-a delete deploy staging-demo --ignore-not-found
deployment.apps "staging-demo" deleted from team-a namespace
$ kubectl -n flux-demo delete deploy demo --ignore-not-found
deployment.apps "demo" deleted from flux-demo namespace
$ # this app syncs automatically, so wait out the controller's own operation first
$ argocd app wait demo-staging --operation --timeout 180 || true
TIMESTAMP                  GROUP        KIND   NAMESPACE                  NAME    STATUS    HEALTH        HOOK  MESSAGE
2026-11-18T02:28:12-05:00            Service      team-a          staging-demo    Synced   Healthy              
2026-11-18T02:28:12-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              
2026-11-18T02:28:14-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label

This is the state of the app after wait timed out:

The command timed out waiting for the conditions to be met.

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        OutOfSync from main (9122b3b)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Running
Start:              2026-11-18 02:28:12 -0500 EST
Finished:           2026-11-18 02:30:43 -0500 EST
Duration:           2m31s
Message:            one or more objects failed to apply, reason: admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label. Retrying attempt #5 at 2026-11-18T07:32:03Z.

GROUP  KIND        NAMESPACE  NAME          STATUS     HEALTH   HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  OutOfSync  Missing        admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label
       Service     team-a     staging-demo  Synced     Healthy        
{"level":"fatal","msg":"timed out (180s) waiting for app \"demo-staging\" match desired state","time":"2026-11-18T02:31:12-05:00"}
$ argocd app sync demo-staging --timeout 60 || true
{"level":"fatal","msg":"rpc error: code = FailedPrecondition desc = another operation is already in progress","time":"2026-11-18T02:31:13-05:00"}
$ argocd app wait demo-staging --operation --timeout 180 || true
TIMESTAMP                  GROUP        KIND   NAMESPACE                  NAME    STATUS    HEALTH        HOOK  MESSAGE
2026-11-18T02:31:13-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label
2026-11-18T02:31:13-05:00            Service      team-a          staging-demo    Synced   Healthy              

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        OutOfSync from main (9122b3b)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Failed
Start:              2026-11-18 02:28:12 -0500 EST
Finished:           2026-11-18 02:33:23 -0500 EST
Duration:           5m11s
Message:            one or more objects failed to apply, reason: admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label (retried 5 times).

GROUP  KIND        NAMESPACE  NAME          STATUS     HEALTH   HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  OutOfSync  Missing        admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label
       Service     team-a     staging-demo  Synced     Healthy        
$ kubectl -n argocd get app demo-staging -o jsonpath='{.status.operationState.phase}{"\n"}{.status.operationState.message}{"\n"}'
Failed
one or more objects failed to apply, reason: admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label (retried 5 times).
$ flux reconcile kustomization demo-flux --with-source || true
► annotating GitRepository platform in flux-system namespace
✔ GitRepository annotated
◎ waiting for GitRepository reconciliation
✔ fetched revision main@sha1:9122b3b7ce447c8ea8755ee20bdeb1a76e785265
► annotating Kustomization demo-flux in flux-system namespace
✔ Kustomization annotated
◎ waiting for Kustomization reconciliation
✗ context deadline exceeded
$ kubectl -n flux-system get kustomization demo-flux -o jsonpath='{.status.conditions}' | jq '.[] | {type, status, reason, message}'
{
  "type": "Reconciling",
  "status": "True",
  "reason": "ProgressingWithRetry",
  "message": "Detecting drift for revision main@sha1:9122b3b7ce447c8ea8755ee20bdeb1a76e785265 with a timeout of 30s"
}
{
  "type": "Ready",
  "status": "False",
  "reason": "ReconciliationFailed",
  "message": "Deployment/flux-demo/demo dry-run failed: admission webhook \"vpol.validate.kyverno.svc-fail-7cb0fd77\" denied the request: Policy require-owner failed: every Deployment needs an owner label\n"
}
$ kubectl delete validatingpolicy require-owner
validatingpolicy.policies.kyverno.io "require-owner" deleted
$ # this app syncs automatically, so wait out the controller's own operation first
$ argocd app wait demo-staging --operation --timeout 180 || true

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        OutOfSync from main (9122b3b)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Failed
Start:              2026-11-18 02:28:12 -0500 EST
Finished:           2026-11-18 02:33:23 -0500 EST
Duration:           5m11s
Message:            one or more objects failed to apply, reason: admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label (retried 5 times).

GROUP  KIND        NAMESPACE  NAME          STATUS     HEALTH   HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  OutOfSync  Missing        admission webhook "vpol.validate.kyverno.svc-fail-7cb0fd77" denied the request: Policy require-owner failed: every Deployment needs an owner label
       Service     team-a     staging-demo  Synced     Healthy        
$ argocd app sync demo-staging --timeout 120
TIMESTAMP                  GROUP        KIND   NAMESPACE                  NAME    STATUS    HEALTH        HOOK  MESSAGE
2026-11-18T02:43:08-05:00            Service      team-a          staging-demo    Synced   Healthy              
2026-11-18T02:43:08-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              
2026-11-18T02:43:10-05:00            Service      team-a          staging-demo    Synced   Healthy                  service/staging-demo unchanged
2026-11-18T02:43:10-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Progressing              deployment.apps/staging-demo created
2026-11-18T02:43:10-05:00   apps  Deployment      team-a          staging-demo    Synced  Progressing              deployment.apps/staging-demo created

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        Synced to main (9122b3b)
Health Status:      Progressing

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Succeeded
Start:              2026-11-18 02:43:08 -0500 EST
Finished:           2026-11-18 02:43:10 -0500 EST
Duration:           2s
Message:            successfully synced (all tasks run)

GROUP  KIND        NAMESPACE  NAME          STATUS  HEALTH       HOOK  MESSAGE
       Service     team-a     staging-demo  Synced  Healthy            service/staging-demo unchanged
apps   Deployment  team-a     staging-demo  Synced  Progressing        deployment.apps/staging-demo created
verify: Argo CD marks the operation Failed citing the admission webhook by name, and Flux sets Ready=False (ReconciliationFailed) quoting the exact same webhook. Same root cause, two dialects: be able to translate either straight to "a policy rejected the manifest".

A webhook with failurePolicy: Fail and zero healthy backends doesn't fail open; it blocks every matching write. It's the classic outage that makes the API server look broken, and it's one bad rollout away in any cluster.

kubectl get validatingwebhookconfiguration -o custom-columns=NAME:.metadata.name,POLICY:.webhooks[*].failurePolicy | grep -i kyverno
# scaling Kyverno to zero does not reproduce this on this install: its webhooks still admit.
# own the webhook instead, pointed at a Service with no backend, scoped to team-a.
kubectl apply -f - <<'EOF'
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata: { name: no-endpoints }
webhooks:
  - name: no-endpoints.lab.local
    admissionReviewVersions: ["v1"]
    sideEffects: None
    failurePolicy: Fail
    timeoutSeconds: 5
    namespaceSelector:
      matchLabels: { kubernetes.io/metadata.name: team-a }
    clientConfig:
      service: { name: absent, namespace: team-a, path: /validate, port: 443 }
    rules:
      - { apiGroups: ["apps"], apiVersions: ["v1"], operations: ["CREATE","UPDATE"], resources: ["deployments"], scope: Namespaced }
EOF
sleep 5
kubectl -n team-a create deployment probe --image=nginx:1.27-alpine
# an unchanged resource is never sent to admission, so make the sync create one
kubectl -n team-a delete deploy staging-demo --ignore-not-found
# this app syncs automatically, so wait out the controller's own operation first
argocd app wait demo-staging --operation --timeout 180 || true
argocd app sync demo-staging --timeout 60 || true
kubectl -n argocd get app demo-staging -o jsonpath='{.status.operationState.phase}{"\n"}{.status.operationState.message}{"\n"}'
kubectl delete validatingwebhookconfiguration no-endpoints
kubectl -n team-a delete deployment probe --ignore-not-found
# this app syncs automatically, so wait out the controller's own operation first
argocd app wait demo-staging --operation --timeout 180 || true
argocd app sync demo-staging --timeout 120
outputcaptured 2026-11-18
$ kubectl get validatingwebhookconfiguration -o custom-columns=NAME:.metadata.name,POLICY:.webhooks[*].failurePolicy | grep -i kyverno
kyverno-cel-exception-validating-webhook-cfg    Fail
kyverno-cleanup-validating-webhook-cfg          Fail
kyverno-exception-validating-webhook-cfg        Fail
kyverno-global-context-validating-webhook-cfg   Fail
kyverno-policy-validating-webhook-cfg           Fail
kyverno-resource-validating-webhook-cfg         Fail,Fail
kyverno-ttl-validating-webhook-cfg              Ignore
$ # scaling Kyverno to zero does not reproduce this on this install: its webhooks still admit.
$ # own the webhook instead, pointed at a Service with no backend, scoped to team-a.
$ kubectl apply -f - <<'EOF'
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata: { name: no-endpoints }
webhooks:
  - name: no-endpoints.lab.local
    admissionReviewVersions: ["v1"]
    sideEffects: None
    failurePolicy: Fail
    timeoutSeconds: 5
    namespaceSelector:
      matchLabels: { kubernetes.io/metadata.name: team-a }
    clientConfig:
      service: { name: absent, namespace: team-a, path: /validate, port: 443 }
    rules:
      - { apiGroups: ["apps"], apiVersions: ["v1"], operations: ["CREATE","UPDATE"], resources: ["deployments"], scope: Namespaced }
EOF
validatingwebhookconfiguration.admissionregistration.k8s.io/no-endpoints created
$ sleep 5
$ kubectl -n team-a create deployment probe --image=nginx:1.27-alpine
Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "nginx" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "nginx" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "nginx" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "nginx" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
error: failed to create deployment: Internal error occurred: failed calling webhook "no-endpoints.lab.local": failed to call webhook: Post "https://absent.team-a.svc:443/validate?timeout=5s": service "absent" not found
$ # an unchanged resource is never sent to admission, so make the sync create one
$ kubectl -n team-a delete deploy staging-demo --ignore-not-found
deployment.apps "staging-demo" deleted from team-a namespace
$ # this app syncs automatically, so wait out the controller's own operation first
$ argocd app wait demo-staging --operation --timeout 180 || true
TIMESTAMP                  GROUP        KIND   NAMESPACE                  NAME    STATUS   HEALTH        HOOK  MESSAGE
2026-11-18T02:44:55-05:00            Service      team-a          staging-demo    Synced  Healthy              
2026-11-18T02:44:55-05:00   apps  Deployment      team-a          staging-demo    Synced  Missing              
2026-11-18T02:44:55-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              
2026-11-18T02:44:55-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              Internal error occurred: failed calling webhook "no-endpoints.lab.local": failed to call webhook: Post "https://absent.team-a.svc:443/validate?timeout=5s": service "absent" not found

This is the state of the app after wait timed out:

The command timed out waiting for the conditions to be met.

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        OutOfSync from main (9122b3b)
Health Status:      Healthy

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Running
Start:              2026-11-18 02:44:55 -0500 EST
Finished:           2026-11-18 02:47:25 -0500 EST
Duration:           2m30s
Message:            one or more objects failed to apply, reason: Internal error occurred: failed calling webhook "no-endpoints.lab.local": failed to call webhook: Post "https://absent.team-a.svc:443/validate?timeout=5s": service "absent" not found. Retrying attempt #5 at 2026-11-18T07:48:45Z.

GROUP  KIND        NAMESPACE  NAME          STATUS     HEALTH   HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  OutOfSync  Missing        Internal error occurred: failed calling webhook "no-endpoints.lab.local": failed to call webhook: Post "https://absent.team-a.svc:443/validate?timeout=5s": service "absent" not found
       Service     team-a     staging-demo  Synced     Healthy        
{"level":"fatal","msg":"timed out (180s) waiting for app \"demo-staging\" match desired state","time":"2026-11-18T02:47:55-05:00"}
$ argocd app sync demo-staging --timeout 60 || true
{"level":"fatal","msg":"rpc error: code = FailedPrecondition desc = another operation is already in progress","time":"2026-11-18T02:47:55-05:00"}
$ kubectl -n argocd get app demo-staging -o jsonpath='{.status.operationState.phase}{"\n"}{.status.operationState.message}{"\n"}'
Running
one or more objects failed to apply, reason: Internal error occurred: failed calling webhook "no-endpoints.lab.local": failed to call webhook: Post "https://absent.team-a.svc:443/validate?timeout=5s": service "absent" not found. Retrying attempt #5 at 2026-11-18T07:48:45Z.
$ kubectl delete validatingwebhookconfiguration no-endpoints
validatingwebhookconfiguration.admissionregistration.k8s.io "no-endpoints" deleted
$ kubectl -n team-a delete deployment probe --ignore-not-found
$ # this app syncs automatically, so wait out the controller's own operation first
$ argocd app wait demo-staging --operation --timeout 180 || true
TIMESTAMP                  GROUP        KIND   NAMESPACE                  NAME    STATUS    HEALTH        HOOK  MESSAGE
2026-11-18T02:47:57-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              Internal error occurred: failed calling webhook "no-endpoints.lab.local": failed to call webhook: Post "https://absent.team-a.svc:443/validate?timeout=5s": service "absent" not found
2026-11-18T02:47:57-05:00            Service      team-a          staging-demo    Synced   Healthy              
2026-11-18T02:50:05-05:00   apps  Deployment      team-a          staging-demo  OutOfSync  Missing              deployment.apps/staging-demo created

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        Synced to main (9122b3b)
Health Status:      Progressing

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Succeeded
Start:              2026-11-18 02:44:55 -0500 EST
Finished:           2026-11-18 02:50:05 -0500 EST
Duration:           5m10s
Message:            successfully synced (all tasks run)

GROUP  KIND        NAMESPACE  NAME          STATUS  HEALTH       HOOK  MESSAGE
apps   Deployment  team-a     staging-demo  Synced  Progressing        deployment.apps/staging-demo created
       Service     team-a     staging-demo  Synced  Healthy            
$ argocd app sync demo-staging --timeout 120
TIMESTAMP                  GROUP        KIND   NAMESPACE                  NAME    STATUS   HEALTH            HOOK  MESSAGE
2026-11-18T02:50:08-05:00            Service      team-a          staging-demo    Synced  Healthy                  
2026-11-18T02:50:08-05:00   apps  Deployment      team-a          staging-demo    Synced  Progressing              
2026-11-18T02:50:10-05:00            Service      team-a          staging-demo    Synced  Healthy                  service/staging-demo unchanged
2026-11-18T02:50:10-05:00   apps  Deployment      team-a          staging-demo    Synced  Progressing              deployment.apps/staging-demo unchanged

Name:               argocd/demo-staging
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          staging
URL:                https://argocd.example.com/applications/demo-staging
Source:
- Repo:             http://gitea.lab:3000/lab/platform.git
  Target:           main
  Path:             demo-app/overlays/staging
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        Synced to main (9122b3b)
Health Status:      Progressing

Operation:          Sync
Sync Revision:      9122b3b7ce447c8ea8755ee20bdeb1a76e785265
Phase:              Succeeded
Start:              2026-11-18 02:50:07 -0500 EST
Finished:           2026-11-18 02:50:09 -0500 EST
Duration:           2s
Message:            successfully synced (all tasks run)

GROUP  KIND        NAMESPACE  NAME          STATUS  HEALTH       HOOK  MESSAGE
       Service     team-a     staging-demo  Synced  Healthy            service/staging-demo unchanged
apps   Deployment  team-a     staging-demo  Synced  Progressing        deployment.apps/staging-demo unchanged
verify: plain kubectl create deployment fails with Internal error occurred: failed calling webhook "no-endpoints.lab.local" ... service "absent" not found, and Argo CD slams into the same wall. Notice the wait prints staging-demo OutOfSync Missing with that webhook error because self-heal beat you to the sync (which is also why the manual sync says another operation is already in progress). Two conditions have to line up for this outage: failurePolicy: Fail and a rule matching the write (which is why we deleted the Deployment first). Note that scaling Kyverno to zero won't trigger this in our lab setup.

Every failure on this page leaves a distinct Application condition, and reading the condition type gets you to the right bucket faster than parsing the message. Expect an empty list right now since everything is back to healthy; the real drill is naming the condition types from memory.

kubectl -n argocd get app demo-staging -o jsonpath='{range .status.conditions[*]}{.type}: {.message}{"\n"}{end}'
kubectl -n argocd get app -o custom-columns=NAME:.metadata.name,SYNC:.status.sync.status,HEALTH:.status.health.status,CONDITIONS:.status.conditions[*].type
kubectl explain application.status.conditions.type
outputcaptured 2026-09-12
$ kubectl -n argocd get app demo-staging -o jsonpath='{range .status.conditions[*]}{.type}: {.message}{"\n"}{end}'
$ kubectl -n argocd get app -o custom-columns=NAME:.metadata.name,SYNC:.status.sync.status,HEALTH:.status.health.status,CONDITIONS:.status.conditions[*].type
NAME           SYNC     HEALTH    CONDITIONS
demo-prod      Synced   Healthy   <none>
demo-staging   Synced   Healthy   <none>
payments-dev   Synced   Healthy   <none>
$ kubectl explain application.status.conditions.type
GROUP:      argoproj.io
KIND:       Application
VERSION:    v1alpha1

FIELD: type <string>


DESCRIPTION:
    Type is an application condition type
    
verify: every Application shows <none> because the cluster is clean again. Without looking back up the page, name the condition type produced by each earlier failure: a repo forbidden by an AppProject, a manifest blocked by admission, and a controller with bad repo credentials. Three failures, three condition types, and only one of them happens inside the cluster.

Self-check

bucket each of these in one sentence
"The app is Synced and Healthy but the feature we merged an hour ago is missing."

Bucket 4 (stale). Check for suspension first, then compare the last-sync timestamp and resolved revision against your commit SHA, and confirm the app is tracking the branch you actually pushed to. Trigger a refresh/reconcile before digging deeper.

"Sync fails: Service "demo" is invalid: spec.clusterIP: Invalid value: field is immutable."

Bucket 2 (cluster refuses). The API server rejected the patch and the sync operation relayed it verbatim. Either fix the manifest in git or use replace/force semantics if the field genuinely needs to change (accepting the recreation churn).

"argocd-repo-server logs show authentication required; the workload is untouched and running fine."

Bucket 3 (access). None of your workload pods are involved: the controller's own repo credentials, token scope, or rotated Secret broke. Existing pods keep humming because reconciliation broke, not the running deployment.

"Deployment exists, no pods, no error on the Deployment."

Step one level down to the ReplicaSet: a ResourceQuota, Pod Security Standards, or an admission webhook blocked pod creation (just like sections 1.4 and 5.3). Delivery succeeded; admission stopped the pods.

"I keep deleting this ConfigMap and it keeps coming back."

A controller is actively reconciling it: Argo CD self-heal, a Flux Kustomization on its interval, or an operator. Identify the owner via ownerReferences, Argo's argocd.argoproj.io/tracking-id annotation, or flux trace, then fix the source of truth (or suspend reconciliation first if you need a temporary live edit).

"Sync failed: admission webhook "validate.kyverno.svc-fail" denied the request". Which bucket, and where does the fix go?

Bucket 5 (admission). The manifest reached the API server and Kyverno blocked it. Fix the manifest so it satisfies the rule (usually what the grader expects), or update the policy if the task says the policy itself is wrong. Clicking sync again won't help: Argo CD reports SyncFailed and Flux reports ReconciliationFailed with the same denial text.

A Flux Kustomization reports ArtifactFailed. What is broken and where do you look first?

Its upstream source has no valid artifact: the GitRepository or OCIRepository isn't Ready (AuthenticationFailed, GitOperationFailed, bad ref) or hasn't fetched yet. That's bucket 3 upstream of the Kustomization: run flux get sources all -A and kubectl describe gitrepository first. Once the source publishes, the Kustomization heals on its own.

Argo CD shows sync status Unknown with a ComparisonError condition. Bucket?

Bucket 3 (access/tooling). Comparison itself failed, so Argo CD can't even tell whether live matches git. Common causes are bad repo credentials or URL/revision, a Kustomize/Helm render error in repo-server, or an unreachable target cluster. The condition message names the cause, and the workload stays untouched, the signature of bucket 3.

Docs to know your way around

study time, not exam time
  • argo-cd.readthedocs.io: sync options (Replace, ServerSideApply), resource health checks, the troubleshooting section.
  • fluxcd.io: the troubleshooting cheatsheet (flux logs, flux events, tracing a resource to its Kustomization).
  • Offline: argocd app manifests, argocd app diff, flux build kustomization <name> --path ./…, and kubectl get events -A --sort-by=.lastTimestamp.
  • argo-cd.readthedocs.io: Application specification (status fields) and the gitops-engine health package: the exact sync, health, operation phase and condition strings.
  • fluxcd.io troubleshooting cheatsheet ("webhook does not support dry run") and each component's Conditions section: the reason strings and the Flux-specific admission failure.