apps/garage/resources/http_routes.yaml
Peter Kurfer a50f210d52
All checks were successful
Renovate / renovate (push) Successful in 20s
feat(garage): deploy S3 HTTP routes
2024-05-05 17:11:24 +02:00

51 lines
No EOL
947 B
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-s3-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- "s3.icb4dc0.de"
- "*.s3.icb4dc0.de"
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-s3-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- "s3.icb4dc0.de"
rules:
- backendRefs:
- name: garage
port: 3900
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-s3-subdomains-https
spec:
parentRefs:
- name: contour
sectionName: garage-s3-subdomains
namespace: projectcontour
hostnames:
- "*.s3.icb4dc0.de"
rules:
- backendRefs:
- name: garage
port: 3900