Sync fails with `namespaces "payments" not found`.
BeginnerTroubleshootingSync Operations, Hooks & Health
Answer
Likely causes → The destination namespace does not exist and the app does not create it.
Diagnose → kubectl get ns payments on the target cluster.
Fix → Add the sync option, plus labels if needed:
syncPolicy:
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
team: payments
Or create the namespace in a platform app first.
Prevent → Decide per tenancy model who owns namespaces and make it the default in the app template.
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`.BeginnerSync of a large CRD fails with `metadata.annotations: Too long: must have at most 262144 bytes`.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.Intermediate