goharbor / harbor-helm

The helm chart to deploy Harbor
Apache License 2.0
1.18k stars 760 forks source link

HTTP 404 when accessing Harbor Portal URL via NGINX Ingress #1189

Closed pcgeek86 closed 2 years ago

pcgeek86 commented 2 years ago

Reproduction Steps

helm install harbor --namespace harbor harbor/harbor `
  --set expose.ingress.hosts.core=core-harbor.cbttrevor.com `
  --set expose.ingress.controller=nginx `
  --set externalURL=https://core-harbor.cbttrevor.com `
  --set logLevel=debug `
  --set harborAdminPassword=Harbor123 `
  --set notary.enabled=false

image

image

Related to #1155

pcgeek86 commented 2 years ago

Seems like a bug in the Helm Chart for Harbor. I manually worked around this by manually updating the ingressClassName property on the ingress/harbor-ingress resource.

Run this command:

kubectl edit ingress/harbor-ingress --namespace harbor

Add the following text under the spec property for the harbor-ingress resource:

ingressClassName: nginx

image

After making that change manually, I was then able to access the Harbor portal.

image

zyyw commented 2 years ago

Hi could you please share with us which harbor helm version you are using?

pcgeek86 commented 2 years ago

@zyyw Yes, it's Harbor 2.5.0 and Helm Chart version 1.9.0.

PS > helm list -A
NAME                    NAMESPACE               REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
harbor                  harbor                  1               2022-05-03 16:54:32.623717 -0600 MDT    deployed        harbor-1.9.0            2.5.0
teleport-cluster        teleport-cluster        1               2022-05-03 17:47:11.906151 -0600 MDT    deployed        teleport-cluster-9.1.3  9.1.3