apps/harbor/resources/http_routes.yaml

57 lines
1.2 KiB
YAML
Raw Normal View History

2025-03-24 13:59:00 +01:00
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: harbor-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- registry.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: harbor-https
spec:
parentRefs:
- name: contour
sectionName: harbor-registry
namespace: projectcontour
hostnames:
- registry.icb4dc0.de
rules:
- backendRefs:
2025-03-24 15:05:36 +01:00
- kind: Service
name: harbor-core
2025-03-24 13:59:00 +01:00
port: 80
2025-03-24 15:05:36 +01:00
matches:
- path:
type: PathPrefix
value: "/api/"
- path:
type: PathPrefix
value: "/service/"
- path:
type: PathPrefix
value: "/v2/"
- path:
type: PathPrefix
value: "/c/"
- backendRefs:
- kind: Service
name: harbor-portal
port: 80
matches:
- path:
type: PathPrefix
value: "/"