Traefik ingressroute returns 404 not found

Viewed 320

I'm using Traefik ingress controller. When I request to my domain https://harbor.domain.com/ it returns 404 not found. what's wrong with my ingressroute?

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: harbor
  namespace: harbor
spec:
  entryPoints:
    - web
    - websecure
  routes:
    - kind: Rule
      match: Host(`harbor.domain.com`) && (PathPrefix(`/api`) || PathPrefix(`/service`) || PathPrefix(`/v2`) || PathPrefix(`/chartrepo`) || PathPrefix(`/c`))
      services:
        - kind: Service
          name: harbor-portal
          namespace: harbor
          port: 80
          scheme: https
    - kind: Rule
      match: Host(`notary.domain.com`)
      services:
        - kind: Service
          name: harbor-notary-server
          namespace: harbor
          port: 4443
          scheme: https
  tls:
    secretName: harbor.domain.com

Secret file exists and created by cluster issuer.
these are my services in harbor namespace: Services for harbor namespace

0 Answers
Related