# Traefik in kubernetes with ingresRoute

**URL:** <https://community.traefik.io/t/traefik-in-kubernetes-with-ingresroute/13814>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [March 18, 2022, 10:49am UTC](https://community.traefik.io/t/traefik-in-kubernetes-with-ingresroute/13814 "2022-03-18T10:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Albert](https://community.traefik.io/u/Albert)\
**Post date:** [March 18, 2022, 10:49am UTC](https://community.traefik.io/t/traefik-in-kubernetes-with-ingresroute/13814/1 "2022-03-18T10:49:42Z")

</div>

I have one question here. Traefik is install in kube-system namespace. Can I create a route for the "default" namespace? The ingressRoute allows gives me a 404.

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: mynginx
  namespace: default
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`testweb.company.com`)
      kind: Rule
      services:
        - name: mynginx
          namespace: default
          port: 80

```

---

<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:** [March 18, 2022, 12:06pm UTC](https://community.traefik.io/t/traefik-in-kubernetes-with-ingresroute/13814/2 "2022-03-18T12:06:11Z")

</div>

Could you please double-check that Nginx exposes the endpoint on port 80?

You can easily validate it by:

`kubectl get endpoints -n default`

---

<div class="post-metadata">

**Author:** ![Albert](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Albert](https://community.traefik.io/u/Albert)\
**Post date:** [March 19, 2022, 1:03am UTC](https://community.traefik.io/t/traefik-in-kubernetes-with-ingresroute/13814/3 "2022-03-19T01:03:36Z")

</div>

Thanks for the clue. the nginx server was missing the selector. This is now fixed. Thank you.
