From 7a85d3f613cd577301a2081cebb722d9638c4f79 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 11 Dec 2025 19:41:57 -0600 Subject: [PATCH] use built in route --- .../helm/harbor/templates/http-route.yaml | 47 ------------------- clusters/cl01tl/helm/harbor/values.yaml | 14 ++++-- 2 files changed, 11 insertions(+), 50 deletions(-) delete mode 100644 clusters/cl01tl/helm/harbor/templates/http-route.yaml diff --git a/clusters/cl01tl/helm/harbor/templates/http-route.yaml b/clusters/cl01tl/helm/harbor/templates/http-route.yaml deleted file mode 100644 index 5deb03c53..000000000 --- a/clusters/cl01tl/helm/harbor/templates/http-route.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: gateway.networking.k8s.io/v1 -kind: HTTPRoute -metadata: - name: http-route-harbor - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: http-route-harbor - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - parentRefs: - - group: gateway.networking.k8s.io - kind: Gateway - name: traefik-gateway - namespace: traefik - hostnames: - - harbor.alexlebens.net - rules: - - matches: - - path: - type: PathPrefix - value: /api/ - - path: - type: PathPrefix - value: /service/ - - path: - type: PathPrefix - value: /v2/ - - path: - type: PathPrefix - value: /c/ - backendRefs: - - group: '' - kind: Service - name: harbor-core - port: 80 - weight: 100 - - matches: - - path: - type: PathPrefix - value: / - backendRefs: - - group: '' - kind: Service - name: harbor-portal - port: 80 - weight: 100 diff --git a/clusters/cl01tl/helm/harbor/values.yaml b/clusters/cl01tl/helm/harbor/values.yaml index c10d02646..39dd20c5f 100644 --- a/clusters/cl01tl/helm/harbor/values.yaml +++ b/clusters/cl01tl/helm/harbor/values.yaml @@ -1,9 +1,17 @@ harbor: expose: - type: clusterIP + type: route tls: - auto: - commonName: harbor.alexlebens.net + enabled: true + certSource: none + route: + parentRefs: + - group: gateway.networking.k8s.io + kind: Gateway + name: traefik-gateway + namespace: traefik + hosts: + - harbor.alexlebens.net externalURL: https://harbor.alexlebens.net persistence: enabled: true