ExternalName service type in K8s

Hello,

I am trying to create an externalname type service in k8s cluster by providing a dns name in the externalname field.

I have two resources only one is the extername type service and other is the ingress resource that provides me the LB url that allows me to access the service outside the cluster.

However I am getting backend service not found in the ingress logs.

I read in the k8s documentation that if there is no selector defined in the service then an endpoint has to be created separately linked with the service.

Is it what is causing the issue? Do I need to create an endpoint also for externalname service as it does not have any selectors.

Any specifics have not been given in the docs for this type of service.

Thanks.