Sync of a large CRD fails with `metadata.annotations: Too long: must have at most 262144 bytes`.
BeginnerTroubleshootingSync Operations, Hooks & Health
Answer
Likely causes → Client-side apply stores the full object in the kubectl.kubernetes.io/last-applied-configuration annotation, which exceeds 256 KiB for big CRDs (Prometheus Operator, Crossplane, Argo's own).
Diagnose → The failing resource is almost always a CRD or a large ConfigMap.
Fix → Enable server-side apply for the app or that resource:
syncPolicy:
syncOptions:
- ServerSideApply=true
Replace=true also works but recreates the object.
Prevent → Default to ServerSideApply=true for apps that ship CRDs.
More on Sync Operations, Hooks & Health
Sync fails with `one or more synchronization tasks are not valid` and `the server could not find the requested resource` for a custom resource.Intermediate`one or more objects failed to apply, reason: Deployment.apps "web" is invalid: spec.selector: Invalid value: ...: field is immutable`.BeginnerAn app has been stuck at `Syncing` for an hour with `waiting for completion of hook batch/Job/db-migrate`.IntermediateA PreSync hook fails with `jobs.batch "db-migrate" already exists`.BeginnerA PostSync smoke-test hook never runs, even though the sync says succeeded.IntermediateAn Ingress stays `Progressing` forever, holding the app at Progressing.Intermediate