feat: expose Harbor

This commit is contained in:
Peter 2025-03-24 13:59:00 +01:00
parent 7eb36c1c29
commit 74bb6e7928
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 50 additions and 0 deletions

View file

@ -79,6 +79,21 @@ spec:
certificateRefs:
- name: vikunja-tls
- name: harbor-registry
hostname: "registry.icb4dc0.de"
port: 443
protocol: HTTPS
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: harbor
tls:
mode: Terminate
certificateRefs:
- name: harbor-registry-tls
- name: ente-endpoints
hostname: "*.ente.icb4dc0.de"
port: 443

View file

@ -32,6 +32,7 @@ resources:
- resources/db/db.yaml
- resources/db/user.yaml
- resources/dragonfly/db.yaml
- resources/http_routes.yaml
labels:
- includeSelectors: true

View file

@ -0,0 +1,34 @@
---
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:
- name: harbor
port: 80