feat: setup Gateway API

This commit is contained in:
Peter 2024-02-21 08:12:13 +01:00
parent ba06d96a2c
commit 80721ce1da
Signed by: prskr
GPG key ID: F56BED6903BC5E37
75 changed files with 20990 additions and 1271 deletions

View file

@ -19,7 +19,7 @@ resources:
- resources/pvc.yaml
- resources/deployment.yaml
- resources/service.yaml
- resources/ingress.yaml
- resources/http_routes.yaml
generators:
- ./secret-generator.yaml

View file

@ -0,0 +1,34 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: nocodb-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- noco.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: nocodb-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- noco.icb4dc0.de
rules:
- backendRefs:
- name: nocodb
port: 8080

View file

@ -1,28 +0,0 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nocodb
annotations:
gethomepage.dev/description: Data workspace
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Apps
gethomepage.dev/icon: nocodb.png
gethomepage.dev/name: NocoDB
cert-manager.io/cluster-issuer: letsencrypt-production
spec:
rules:
- host: noco.icb4dc0.de
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: nocodb
port:
number: 8080
tls:
- hosts:
- noco.icb4dc0.de
secretName: nocodb-ingress-tls