From 52ce6eab0a0a6fd09149a646f87127883f4282f8 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Mon, 9 Sep 2024 00:06:31 +0300 Subject: [PATCH] expose harbor via traefik --- harbor/values.yaml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/harbor/values.yaml b/harbor/values.yaml index abb142b..5779610 100644 --- a/harbor/values.yaml +++ b/harbor/values.yaml @@ -1,21 +1,17 @@ expose: - type: loadBalancer + type: ingress tls: enabled: true - certSource: secret - secret: - secretName: "harbor-ingress" - loadBalancer: - name: harbor - ports: - httpPort: 80 - httpsPort: 443 + ingress: + hosts: + core: harbor.k-space.ee annotations: - cert-manager.io/cluster-issuer: default - external-dns.alpha.kubernetes.io/hostname: harbor.k-space.ee - metallb.universe.tf/address-pool: elisa + cert-manager.io/cluster-issuer: default + kubernetes.io/ingress.class: traefik + traefik.ingress.kubernetes.io/router.entrypoints: websecure + traefik.ingress.kubernetes.io/router.tls: "true" + external-dns.alpha.kubernetes.io/target: traefik.k-space.ee labels: {} - sourceRanges: [] externalURL: https://harbor.k-space.ee @@ -48,7 +44,7 @@ persistence: # Refer to # https://github.com/distribution/distribution/blob/main/docs/configuration.md#redirect # for the detail. - disableredirect: true + disableredirect: false type: s3 s3: # Set an existing secret for S3 accesskey and secretkey