Harbor with traefik ingress not working as expected in routing ,need help

I installed goharbor with helm chart in Kubernetes cluster all the pods are running fine and using traefik as ingress.

Issue: looks correct routing is not happening couldn't be able to identify the issue.

When I use below ingress-route login screen is not coming only blank screen I see, it complains that common.js file not found.

Loading failed for the module with source “https://registry-rc.labs.net/common.4d37e7fb3a2d5859.js

apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
labels:
argocd.argoproj.io/instance: harbor-release-candidate
name: harbor-ingressroute
namespace: harbor
spec:
entryPoints:

  • websecure
    routes:
  • kind: Rule
    match: Host(registry-rc.labs.net)
    services:
  • kind: Service
    name: harbor-release-candidate-portal
    namespace: harbor
    port: 80
    scheme: http
  • kind: Rule
    match: >-
    Host(registry-rc.labs.net) && (PathPrefix(/api) ||
    PathPrefix(/service) || PathPrefix(/v2) || PathPrefix(/chartrepo)
    || PathPrefix(/c))
    services:
  • kind: Service
    name: harbor-release-candidate-core
    namespace: harbor
    port: 80
    scheme: http
    tls:
    secretName: harbor-tls

It seems you missed some PathPrefixes to enable the JS dependencies to be loaded

Thanks for your reply, in the portal service you mean ?

The browser can't load the file:

So it might be related to

 match: Host(registry-rc.labs.net)

 match: >-
Host(registry-rc.labs.net) && (PathPrefix(/api) ||
PathPrefix(/service) || PathPrefix(/v2) || PathPrefix(/chartrepo)
|| PathPrefix(/c))

But at the end the harbor maintainers or the helm chart maintainers should know.

Enable Traefik access log in JSON format for more request details.

Update: please learn how to paste code in forum or github. If it's unreadable like that, the chances for a response are very low.

thanks @bluepuma77 .

I read static files .js are from portal service. Updated github issue code with correct format . Thanks for suggestion

Enable Traefik access log in JSON format for more request details. Share a failing request.