# 404 on some ingress route

**URL:** https://community.traefik.io/t/404-on-some-ingress-route/11758
**Category:** Traefik v2
**Tags:** kubernetes-crd, kubernetes-ingress
**Created:** [September 15, 2021, 3:46am UTC](https://community.traefik.io/t/404-on-some-ingress-route/11758 "2021-09-15T03:46:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bitgandtter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/bitgandtter/32/3932_2.png) [@bitgandtter](https://community.traefik.io/u/bitgandtter)
#### Post date: [September 15, 2021, 3:46am UTC](https://community.traefik.io/t/404-on-some-ingress-route/11758/1 "2021-09-15T03:46:47Z")

</div>

I have a cluster that has few namespaces and on each namespace, I have an application deployed that is exposed using an ingress route. I'm able to connect to some applications but not others which gave me a 404. Notice that its the same helm chart so there is no actual variation of the resource besides the namespace and the domain. Traefik was deployed using the helm chart and its on version 2.5.1 below its an example of the ingress routes

**this one works**

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: myname
  namespace: namespace1
spec:
  entryPoints:
    - websecure
  routes:
    - kind: Rule
      match: Host(`mydomain1`)
      middlewares:
        - name: ratelimit
          namespace: namespace1
        - name: inflightreq
          namespace: namespace1
      services:
        - name: service
          port: 80
  tls:
    secretName: cert

```

this one gave 404

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: myname
  namespace: namespace2
spec:
  entryPoints:
    - websecure
  routes:
    - kind: Rule
      match: Host(`mydomain2`)
      middlewares:
        - name: ratelimit
          namespace: namespace2
        - name: inflightreq
          namespace: namespace2
      services:
        - name: service
          port: 80
  tls:
    secretName: cert

```

traefik was deployed as a deployment with a 2 pods configuration and hpa enabled

any idea please.

---

<div class="post-metadata">

### Author: ![jakubhajek](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jakubhajek/32/3389_2.png) [@jakubhajek](https://community.traefik.io/u/jakubhajek)
#### Post date: [September 16, 2021, 2:28pm UTC](https://community.traefik.io/t/404-on-some-ingress-route/11758/2 "2021-09-16T14:28:09Z")

</div>

Hello @bitgandtter

Thank you for using Traefik and asking the question here.

I think the issue is related to allowCrossNamespace which should be set to true if you use resources created in the different namespaces.

Please, see the docs: [Kubernetes IngressRoute - Traefik](https://doc.traefik.io/traefik/providers/kubernetes-crd/#allowcrossnamespace)
