How to use Traefik IngressRoute on a Headless Service How to use Traefik IngressRoute on a Headless Service kubernetes kubernetes

How to use Traefik IngressRoute on a Headless Service


Resolved !

The error came from a misconfiguration of my service and endpoints.

The name I set for the port of my endpoints didn't match the name of the port of the service (in fact, I didn't set a name).Once the ports in the endpoints and the ports in the services have the same name set, everything worked fine.

kind: EndpointsapiVersion: v1metadata:  name: central-db-service  namespace: devsubsets:  - addresses:        - ip: 192.168.0.50    ports:      - port: 5984        name: central-db-service---kind: ServiceapiVersion: v1metadata:  name: central-db-service  namespace: devspec:  clusterIP: None  ports:  - port: 5984    targetPort: 5984    name: central-db-service