feat(garage): configure blog routes
All checks were successful
Renovate / renovate (push) Successful in 23s
All checks were successful
Renovate / renovate (push) Successful in 23s
This commit is contained in:
parent
a502e602ee
commit
a9df520f9c
3 changed files with 40 additions and 1 deletions
|
@ -22,7 +22,8 @@ resources:
|
|||
- resources/secret.rpc.yaml
|
||||
- resources/workload.yaml
|
||||
- resources/services.yaml
|
||||
- resources/http_routes.yaml
|
||||
- resources/api_routes.yaml
|
||||
- resources/web_routes.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: garage-config
|
||||
|
|
38
garage/resources/web_routes.yaml
Normal file
38
garage/resources/web_routes.yaml
Normal 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
|
Loading…
Reference in a new issue