feat(garage): deploy S3 HTTP routes
All checks were successful
Renovate / renovate (push) Successful in 20s
All checks were successful
Renovate / renovate (push) Successful in 20s
This commit is contained in:
parent
de66a1f2ca
commit
a50f210d52
2 changed files with 52 additions and 0 deletions
|
@ -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
|
||||||
|
|
51
garage/resources/http_routes.yaml
Normal file
51
garage/resources/http_routes.yaml
Normal 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
|
Loading…
Reference in a new issue