feat(ente): deploy s3 proxy HTTPS route
All checks were successful
Renovate / renovate (push) Successful in 1m23s

This commit is contained in:
Peter 2024-11-22 18:29:47 +01:00
parent 8165a655ab
commit ed7cf68762
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 57 additions and 41 deletions

View file

@ -4,7 +4,7 @@ metadata:
name: s3-cors-proxy name: s3-cors-proxy
spec: spec:
image: "code.icb4dc0.de/infrastructure/functions:latest" image: "code.icb4dc0.de/infrastructure/functions:latest"
executor: containerd-shim-spin executor: ente-containerd-shim-spin
replicas: 2 replicas: 2
variables: variables:
- name: s3_endpoint_url - name: s3_endpoint_url

View file

@ -5,20 +5,36 @@ metadata:
name: http name: http
spec: spec:
parentRefs: parentRefs:
- name: contour - name: contour
sectionName: http sectionName: http
namespace: projectcontour namespace: projectcontour
hostnames: hostnames:
- ente.icb4dc0.de - ente.icb4dc0.de
- api.ente.icb4dc0.de - api.ente.icb4dc0.de
- albums.ente.icb4dc0.de - albums.ente.icb4dc0.de
- cast.ente.icb4dc0.de - cast.ente.icb4dc0.de
rules: rules:
- filters: - filters:
- type: RequestRedirect - type: RequestRedirect
requestRedirect: requestRedirect:
scheme: https scheme: https
statusCode: 301 statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: s3-api
spec:
parentRefs:
- name: contour
sectionName: ente-endpoints
namespace: projectcontour
hostnames:
- s3.ente.icb4dc0.de
rules:
- backendRefs:
- name: ente-s3-cors-proxy
port: 80
--- ---
apiVersion: gateway.networking.k8s.io/v1 apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute kind: HTTPRoute
@ -26,15 +42,15 @@ metadata:
name: https-api name: https-api
spec: spec:
parentRefs: parentRefs:
- name: contour - name: contour
sectionName: ente-endpoints sectionName: ente-endpoints
namespace: projectcontour namespace: projectcontour
hostnames: hostnames:
- api.ente.icb4dc0.de - api.ente.icb4dc0.de
rules: rules:
- backendRefs: - backendRefs:
- name: ente-museum - name: ente-museum
port: 8080 port: 8080
--- ---
apiVersion: gateway.networking.k8s.io/v1 apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute kind: HTTPRoute
@ -42,15 +58,15 @@ metadata:
name: https-photos name: https-photos
spec: spec:
parentRefs: parentRefs:
- name: contour - name: contour
sectionName: https sectionName: https
namespace: projectcontour namespace: projectcontour
hostnames: hostnames:
- ente.icb4dc0.de - ente.icb4dc0.de
rules: rules:
- backendRefs: - backendRefs:
- name: ente-photos - name: ente-photos
port: 3000 port: 3000
--- ---
apiVersion: gateway.networking.k8s.io/v1 apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute kind: HTTPRoute
@ -58,15 +74,15 @@ metadata:
name: https-albums name: https-albums
spec: spec:
parentRefs: parentRefs:
- name: contour - name: contour
sectionName: ente-endpoints sectionName: ente-endpoints
namespace: projectcontour namespace: projectcontour
hostnames: hostnames:
- albums.ente.icb4dc0.de - albums.ente.icb4dc0.de
rules: rules:
- backendRefs: - backendRefs:
- name: ente-photos - name: ente-photos
port: 3000 port: 3000
--- ---
apiVersion: gateway.networking.k8s.io/v1 apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute kind: HTTPRoute
@ -74,12 +90,12 @@ metadata:
name: https-cast name: https-cast
spec: spec:
parentRefs: parentRefs:
- name: contour - name: contour
sectionName: ente-endpoints sectionName: ente-endpoints
namespace: projectcontour namespace: projectcontour
hostnames: hostnames:
- cast.ente.icb4dc0.de - cast.ente.icb4dc0.de
rules: rules:
- backendRefs: - backendRefs:
- name: ente-cast - name: ente-cast
port: 3000 port: 3000