# Traefik 2.3 Kubernetes: Can't Create IngressRoute on Headless Service

**URL:** <https://community.traefik.io/t/traefik-2-3-kubernetes-cant-create-ingressroute-on-headless-service/8765>\
**Category:** Traefik v2\
**Tags:** kubernetes-crd, kubernetes-ingress\
**Created:** [November 28, 2020, 7:15am UTC](https://community.traefik.io/t/traefik-2-3-kubernetes-cant-create-ingressroute-on-headless-service/8765 "2020-11-28T07:15:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![popopame](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/popopame/32/2953_2.png) [@popopame](https://community.traefik.io/u/popopame)\
**Post date:** [November 28, 2020, 7:15am UTC](https://community.traefik.io/t/traefik-2-3-kubernetes-cant-create-ingressroute-on-headless-service/8765/1 "2020-11-28T07:15:28Z")

</div>

Hello !

I am trying to configure a Traefik IngressRoute to point to a Headless service (the service point to a Database behind the cluster). The Setup work well with a "normal" service (with the endpoint inside the cluster). I am using traefik 2.3.

But when I try to create an ingressRoute that point to the headless service, I have that error in the traefik logs:

```auto
`time="2020-11-27T10:41:53Z" level=error msg="cannot define a port for dev/-central-db-service" ingress=webapp-ingressroute providerName=kubernetescrd namespace=traefik

 time="2020-11-27T10:41:54Z" level=error msg="cannot define a port for dev/central-db-service" providerName=kubernetescrd ingress=webapp-ingressroute namespace=traefik`

```

And When I try to access the ingress, I have a 404 error.  
[Here is the IngressRoute I am trying to create, along with the Headless service with endpoint.](https://pastebin.com/XWdsYVSy)

The setup work perfectly with a "normal" service.

What did I miss? Is it even possible to point to headless service with traefik 2.3 ? Thanks in advance for your help.
