Back to results for “App of Apps”
ArgoCD › Multi-cluster

What is the difference between targeting a cluster by server URL vs name?

Intermediate

Answer

destination.server uses the exact API server URL; destination.name uses the human-friendly cluster name from its Secret. Names are more portable and readable (URLs can change), so referencing clusters by name is often preferred in templates and manifests.
destination:
  name: prod-eu   # portable; vs server: https://...
Real-world example Apps reference clusters by name so a changed API endpoint doesn't require editing every Application.

Common follow-ups: Why is name more portable than URL? | Where is the name defined?