feat(garage): deploy S3 HTTP routes
All checks were successful
Renovate / renovate (push) Successful in 20s

This commit is contained in:
Peter 2024-05-05 17:04:30 +02:00
parent de66a1f2ca
commit a50f210d52
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 52 additions and 0 deletions

View file

@ -22,6 +22,7 @@ resources:
- resources/secret.rpc.yaml - resources/secret.rpc.yaml
- resources/workload.yaml - resources/workload.yaml
- resources/services.yaml - resources/services.yaml
- resources/http_routes.yaml
configMapGenerator: configMapGenerator:
- name: garage-config - name: garage-config

View file

@ -0,0 +1,51 @@
---
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