Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

`application destination server 'https://kubernetes.default.svc' and namespace 'payments' do not match any of the allowed destinations in project 'team-a'`.

BeginnerTroubleshootingRepos, Clusters, Projects & Permissions
Answer

Likely causes → The project's destinations list does not include that server/namespace pair, or the app uses destination.name while the project lists only server (or the reverse in older versions).

Diagnose → argocd proj get team-a -o yaml | yq '.spec.destinations'.

Fix →

spec:
  destinations:
    - server: https://kubernetes.default.svc
      namespace: payments

Use namespace: 'payments-*' for a team prefix.

Prevent → Give each team a namespace prefix and a matching destination glob.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repos, Clusters, Projects & Permissions