fix(harbor): switch from Gateway API to nginx-ingress
- Change expose.type from clusterIP to ingress - Use nginx IngressClass - Reference harbor-tls certificate secret - Add staging cert-manager annotation - Gateway API was returning intermittent 503 errors for static assets
This commit is contained in:
@@ -7,17 +7,24 @@
|
|||||||
# External URL for Harbor - primary DNS name
|
# External URL for Harbor - primary DNS name
|
||||||
externalURL: https://the-seas.local.mk-labs.cloud
|
externalURL: https://the-seas.local.mk-labs.cloud
|
||||||
|
|
||||||
# Expose Harbor via ClusterIP (Gateway API handles ingress)
|
# Expose Harbor via Ingress (nginx-ingress controller)
|
||||||
# TLS termination handled by Gateway API, not Harbor
|
|
||||||
expose:
|
expose:
|
||||||
type: clusterIP
|
type: ingress
|
||||||
tls:
|
tls:
|
||||||
enabled: false
|
enabled: true
|
||||||
clusterIP:
|
certSource: secret
|
||||||
name: the-seas
|
secret:
|
||||||
ports:
|
secretName: harbor-tls
|
||||||
httpPort: 80
|
notarySecretName: harbor-tls
|
||||||
httpsPort: 443
|
ingress:
|
||||||
|
hosts:
|
||||||
|
core: the-seas.local.mk-labs.cloud
|
||||||
|
notary: notary-the-seas.local.mk-labs.cloud
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-staging
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||||
|
|
||||||
# Admin credentials from ExternalSecret
|
# Admin credentials from ExternalSecret
|
||||||
harborAdminPassword: ""
|
harborAdminPassword: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user