Introduction
Sometimes you want to access an external service using a Kubernetes service name. ExternalName service type lets you create a service inside Kubernetes that points to an external DNS name. This way, your apps can use the service name as if it was inside the cluster.
When you want to access a database hosted outside your Kubernetes cluster using a simple service name.
When you have a legacy service running outside Kubernetes but want to unify access through Kubernetes service names.
When you want to avoid changing application code that expects a service name, but the actual service is external.
When you want to route traffic to an external API or service using Kubernetes DNS.
When you want to simplify service discovery for external services in your cluster.