What is the difference between targeting a cluster by server URL vs name?
Short 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.
Advertisement
AModel 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.
Likely follow-ups
- Why is name more portable than URL? | Where is the name defined?
Related topics