<p>My treafik(v2.0) service is in <code>kube-system</code> namespce,now I want to expose namespace <code>dabai-fat</code> eureka service. This is my expose route config of treafik:</p>

<pre><code>apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: fat-eureka-route
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`k8s-fat-eureka.example.com`) 
      kind: Rule
      services:
        - name: eureka
          port: 8761
</code></pre>

<p>the problem is eureka service in namespace <code>dabai-fat</code>.when I check the ingress log:</p>

<pre><code>kubectl logs --follow --since=10s traefik-ingress-controller-hx4xd --namespace kube-system
</code></pre>

<p>the output is:</p>

<pre><code>{"ingress":"fat-eureka-route","level":"error","msg":"Cannot create service: service not found kube-system/eureka","namespace":"kube-system","providerName":"kubernetescrd","serviceName":"eureka","servicePort":8761,"time":"2020-02-02T14:35:18Z"}
</code></pre>

<p>how to specify the <code>dabai-fat</code> namespace.</p>

Dolphin
<p>The IngressRoute and service should be in the same namespace.You need to create IngressRoute in <code>dabai-fat</code> namespace where you have <code>eureka</code> service and pods.</p>

<p>So your IngressRoute should look like below:</p>

<pre><code>apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: fat-eureka-route
  namespace: dabai-fat
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`k8s-fat-eureka.example.com`) 
      kind: Rule
      services:
        - name: eureka
          port: 8761
</code></pre>
