feat(garage): configure blog routes
All checks were successful
Renovate / renovate (push) Successful in 23s

This commit is contained in:
Peter 2024-05-07 18:28:39 +02:00
parent a502e602ee
commit a9df520f9c
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 40 additions and 1 deletions

View file

@ -22,7 +22,8 @@ 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 - resources/api_routes.yaml
- resources/web_routes.yaml
configMapGenerator: configMapGenerator:
- name: garage-config - name: garage-config

View file

@ -0,0 +1,38 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-web-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- "www.icb4dc0.de"
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: garage-blog-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- "www.icb4dc0.de"
rules:
- filters:
- type: URLRewrite
urlRewrite:
hostname: blog.icb4dc0.de
backendRefs:
- name: garage
port: 3902