apps/harbor/resources/http_routes.yaml

34 lines
671 B
YAML

---
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