title: Forward to ExternalName with traefik in kubernetes as the documenation suggests
body: <p>Following the <a href="https://docs.traefik.io/user-guide/kubernetes/#deploy-trfik-using-a-deployment-or-daemonset" rel="nofollow noreferrer" title="Official Guide">Official Guide</a> I got to the section on<a href="https://docs.traefik.io/user-guide/kubernetes/#forwarding-to-externalnames" rel="nofollow noreferrer" title="External Names">Forwarding to ExtternalNames</a>.  Where it says:</p>
  
  <blockquote>
    <p>When specifying an ExternalName, Træfik will forward requests to the given host accordingly</p>
  </blockquote>
  
  <p>which points to the docs from kubernetes <a href="https://kubernetes.io/docs/concepts/services-networking/service/#services-without-selectors" rel="nofollow noreferrer">services without selectors</a></p>
  
  <p>Which led me to create a service</p>
  
  <pre><code>kind: Service
  apiVersion: v1
  metadata:
    name: my-service
    namespace: prod
  spec:
    type: ExternalName
    externalName: my.database.example.com
  </code></pre>
  
  <p>Of which Traefik happily ignores when I point to it:</p>
  
  <pre><code>---
  apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: my-service
    namespace: kube-system
  spec:
    rules:
    - host: my-service.example.com
      http:
        paths:
        - path: /
          backend:
            serviceName: my-service
            servicePort: 4080
  </code></pre>
  
  <p>I have also tried as an endpoint.</p>
  
  <pre><code>---                                                                                                                                                                                           
  kind: Service
  apiVersion: v1
  metadata:
    name: my-service
    namespace: kube-system
  spec:
    ports:
    - protocol: TCP
      port: 80
      targetPort: 4080
  ---
  kind: Endpoints
  apiVersion: v1
  metadata:
    name: my-service
  subsets:
    - addresses:
        - ip: 10.0.0.3
      ports:
        - port: 4080
  </code></pre>
  
  <p>Does anyone know how to get traefik to point to an externalname as the documentation suggests?</p>