From 265b966d20bf1f3cd979e070aa60098b6945823a Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 19 May 2025 20:40:43 -0500 Subject: [PATCH] remove ngnix --- .../services/harbor/templates/http-route.yaml | 72 ++++++------------- clusters/cl01tl/services/harbor/values.yaml | 2 +- 2 files changed, 22 insertions(+), 52 deletions(-) diff --git a/clusters/cl01tl/services/harbor/templates/http-route.yaml b/clusters/cl01tl/services/harbor/templates/http-route.yaml index 277301b77..1dcdb56cb 100644 --- a/clusters/cl01tl/services/harbor/templates/http-route.yaml +++ b/clusters/cl01tl/services/harbor/templates/http-route.yaml @@ -16,6 +16,25 @@ spec: 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: 443 + weight: 100 - matches: - path: type: PathPrefix @@ -23,55 +42,6 @@ spec: backendRefs: - group: '' kind: Service - name: harbor - port: 80 + name: harbor-portal + port: 443 weight: 100 - -# --- -# 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: 443 -# weight: 100 -# - matches: -# - path: -# type: PathPrefix -# value: / -# backendRefs: -# - group: '' -# kind: Service -# name: harbor-portal -# port: 443 -# weight: 100 diff --git a/clusters/cl01tl/services/harbor/values.yaml b/clusters/cl01tl/services/harbor/values.yaml index 33ceabc05..c1d1fdcd6 100644 --- a/clusters/cl01tl/services/harbor/values.yaml +++ b/clusters/cl01tl/services/harbor/values.yaml @@ -35,7 +35,7 @@ harbor: image: repository: goharbor/nginx-photon tag: v2.13.0 - replicas: 2 + replicas: 0 portal: image: repository: goharbor/harbor-portal