Argo CD sync failed, OutOfSync or Degraded: what each status means

Reproduced on k3s v1.31.5 (k3d) with kubectl v1.36.1, Argo CD v3.6.2 from the official install manifest and the argocd CLI v3.1.7 in core mode.

What you see

$ kubectl get applications -n argocd
NAME                 SYNC STATUS   HEALTH STATUS
guestbook            OutOfSync     Missing
guestbook-badimage   Synced        Progressing
guestbook-nons       OutOfSync     Missing

# a few minutes later, after one manual sync and a kubectl scale on guestbook
$ kubectl get applications -n argocd
NAME                 SYNC STATUS   HEALTH STATUS
guestbook            OutOfSync     Healthy
guestbook-badimage   Synced        Degraded
guestbook-nons       OutOfSync     Missing

$ argocd app diff argocd/guestbook
===== apps/Deployment gb/guestbook-ui ======
105c105
<   replicas: 3
---
>   replicas: 1

$ argocd app get argocd/guestbook-badimage
Sync Status:        Synced to HEAD (8088f4c)
Health Status:      Degraded

GROUP  KIND        NAMESPACE  NAME                    STATUS   HEALTH    HOOK  MESSAGE
       Namespace              gb-bad                  Running  Synced          namespace/gb-bad created
       Service     gb-bad     kustomize-guestbook-ui  Synced   Healthy         service/kustomize-guestbook-ui created
apps   Deployment  gb-bad     kustomize-guestbook-ui  Synced   Degraded        deployment.apps/kustomize-guestbook-ui created

$ kubectl describe application guestbook-badimage -n argocd
  Health:
    Message:               Caused by apps/Deployment:gb-bad/kustomize-guestbook-ui
    Status:                Degraded

$ kubectl get deployment kustomize-guestbook-ui -n gb-bad -o jsonpath='{range .status.conditions[*]}{.type}{"\t"}{.status}{"\t"}{.reason}{"\t"}{.message}{"\n"}{end}'
Available	False	MinimumReplicasUnavailable	Deployment does not have minimum availability.
Progressing	False	ProgressDeadlineExceeded	ReplicaSet "kustomize-guestbook-ui-6c5659487d" has timed out progressing.

$ kubectl get pods -n gb-bad
NAME                                      READY   STATUS             RESTARTS   AGE
kustomize-guestbook-ui-6c5659487d-vjqp8   0/1     ImagePullBackOff   0          3m14s

$ argocd app get argocd/guestbook-nons
Sync Policy:        Automated
Sync Status:        OutOfSync from HEAD (8088f4c)
Health Status:      Missing

CONDITION  MESSAGE
SyncError  Failed last sync attempt to [8088f4c0d970abb09e250248cc97e35623447cb5]: one or more objects failed to apply, reason: namespaces "does-not-exist" not found (retried 5 times).

GROUP  KIND        NAMESPACE       NAME          STATUS     HEALTH   HOOK  MESSAGE
       Service     does-not-exist  guestbook-ui  OutOfSync  Missing        namespaces "does-not-exist" not found
apps   Deployment  does-not-exist  guestbook-ui  OutOfSync  Missing        namespaces "does-not-exist" not found

What it means

Argo CD renders the manifests from Git and compares them with the live objects. Synced means they match. OutOfSync means at least one object is missing, different or extra. A new app without automated sync stays OutOfSync and Missing until someone syncs it.

Health is a separate check. Argo CD looks at each object, for example whether a Deployment has its replicas available. The app takes the worst result. In our lab an app with a bad image tag was Synced and Degraded at the same time. Git and the cluster matched, but the pods could not start.

Sync failed is a third case. Argo CD tried to apply the manifests and the API server refused them, so the app stays OutOfSync. With automated sync it retries and the operation message shows the attempt number.

Common causes

Nobody has synced the app yet

The app has no automated sync policy. Argo CD only reports the difference and waits for someone to press sync.

How to tell: SYNC STATUS OutOfSync with HEALTH STATUS Missing. argocd app get shows Sync Policy Manual.

Someone changed the live object

A kubectl scale, kubectl edit or a hotfix during an incident changed a field that Git also sets. Argo CD now sees drift.

How to tell: argocd app diff shows the field. In our lab it showed replicas: 3 live against replicas: 1 in Git.

The API server refused the apply

The target namespace does not exist, a manifest is invalid, a field is immutable or Argo CD lacks the RBAC to create the object. Nothing is applied for that object and the sync fails.

How to tell: The operation message reads one or more objects failed to apply, with the API server's reason, for example namespaces "does-not-exist" not found.

The pods cannot start

Git and the cluster match, but the workload itself is broken. A bad image tag, a crash on start or a failing probe makes the Deployment miss its progress deadline and Argo CD marks it Degraded.

How to tell: The health message reads Caused by apps/Deployment:<namespace>/<name>. The Deployment has the condition ProgressDeadlineExceeded and its pods show ImagePullBackOff or CrashLoopBackOff.

Another controller keeps changing a field

An HPA sets replicas, a webhook adds a sidecar or the API server fills in a default. Each sync puts Git's value back and the other controller changes it again.

How to tell: The app goes back to OutOfSync soon after every sync and the diff shows the same field each time.

How to diagnose it

  1. kubectl get applications -n argocd

    The SYNC STATUS and HEALTH STATUS columns. OutOfSync with Missing means not applied yet. Synced with Degraded means a workload problem, not a Git problem.

  2. kubectl describe application <app> -n argocd

    A failed sync shows as a SyncError condition and in the Operation State message, with each resource's own message below. Under Health, the Message names the object that made the app Degraded.

  3. kubectl get deployment <name> -n <namespace> -o yaml

    Read status.conditions. Progressing False with reason ProgressDeadlineExceeded is what Argo CD turns into Degraded for a Deployment.

  4. kubectl get pods -n <namespace>

    Find the pods behind the Degraded object. ImagePullBackOff, CrashLoopBackOff or 0/1 Running points to the page for that error.

  5. kubectl get events -n <namespace> --sort-by=.lastTimestamp

    Shows failed pulls, back-off and probe failures in the app's namespace. The argocd CLI gives the Git side: argocd app diff <app> lists every field that differs.

How to fix it

Review the diff and sync

Check what will change, then sync. Turn on automated sync if you want Argo CD to apply new commits without a person pressing the button.

argocd app diff <app>
argocd app sync <app>

Trade-off: Automated sync applies every commit that lands on the target branch. A bad commit reaches the cluster with nobody looking at it first.

Put the live change into Git, or let Argo CD undo it

If the manual change was right, commit it so Git matches. If it was not, sync to put Git's version back. selfHeal makes Argo CD undo drift without waiting for a sync.

Trade-off: With selfHeal on, a manual kubectl fix during an incident is reverted. Turn automated sync off for the app first if you need to change things by hand.

Fix what made the apply fail

Read the message and fix the manifest or the cluster it names. For a missing namespace, create it or add CreateNamespace=true to syncOptions.

spec:
  syncPolicy:
    syncOptions:
    - CreateNamespace=true

Trade-off: CreateNamespace=true creates a bare namespace. Labels you rely on, for example for network policies or quotas, have to be set with managedNamespaceMetadata or created another way.

Fix the broken workload in Git

Degraded is a workload problem, not an Argo CD one. Fix the image tag, config or probe in Git and sync again. Another sync of the same commit will not help, because Git holds the broken version.

Trade-off: argocd app rollback only works with automated sync turned off. Git still holds the bad version until you revert it there.

Ignore fields another controller owns

Tell Argo CD not to compare a field that an HPA or webhook manages, so OutOfSync keeps meaning real drift.

spec:
  ignoreDifferences:
  - group: apps
    kind: Deployment
    jsonPointers:
    - /spec/replicas

Trade-off: Argo CD stops reporting any drift in that field, even drift you would want to know about.

How to stop it coming back

  • Render the manifests in CI before they merge, with kustomize build or helm template, so broken YAML never reaches Argo CD.
  • Set progressDeadlineSeconds on Deployments so a stuck rollout turns Degraded instead of staying Progressing.
  • Add ignoreDifferences for fields that an HPA or webhook owns.
  • Alert on apps that are Degraded or whose last sync failed, not only on OutOfSync.

How KubeGraf investigates it

Specialist agents pull the logs, events, metrics, workloads and recent deploys for the failing workload into one view. How KubeGraf handles Kubernetes incidents.

Frequently asked questions

What does Degraded mean in Argo CD?

At least one object in the app is failing its health check. For a Deployment that usually means it missed its progress deadline because the pods do not become ready. The health message names the object.

Why does my Argo CD app stay OutOfSync after a sync?

Another controller is changing a field after each sync. An HPA setting replicas and a webhook adding a sidecar are common examples. Add that field to ignoreDifferences.

How do I see why an Argo CD sync failed?

Run kubectl describe application for the app in the argocd namespace and read the Operation State message. It holds the API server's reason, for example a namespace that does not exist.

How do I see what is OutOfSync in Argo CD?

Run argocd app diff with the app name. It prints each field where the live object and Git differ.

Last updated . Try KubeGraf Freemium.

Related

Kubernetes documentation