mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 14:29:09 +01:00
Add HTTPRoutes for the apps behind ingress-nginx
Each app gets an HTTPS listener on the Gateway with its existing certificate, an HTTPRoute, and a ReferenceGrant for that certificate. The routes drop Envoy's 15s request timeout, as nginx has no overall limit either. Argo CD and Longhorn follow separately; the Ingresses stay until the switch-over.
This commit is contained in:
1 parent
d1efb91a4b
commit
69a0661d09
13 files changed
+547
No files matched your search
@@ -0,0 +1,38 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: wordpress
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: homelab
|
||||
namespace: envoy-gateway-system
|
||||
sectionName: https-scoutingmbg
|
||||
- name: homelab
|
||||
namespace: envoy-gateway-system
|
||||
sectionName: https-www-scoutingmbg
|
||||
hostnames:
|
||||
- scoutingmbg.nl
|
||||
- www.scoutingmbg.nl
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: mbgwp-official-helm-wordpress
|
||||
port: 80
|
||||
# No limit on the whole request, as with nginx. Envoy's default of 15s
|
||||
# cuts off uploads and long-lived connections.
|
||||
timeouts:
|
||||
request: 0s
|
||||
---
|
||||
# Lets the Gateway serve the certificate cert-manager keeps in this namespace.
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: ReferenceGrant
|
||||
metadata:
|
||||
name: gateway-tls
|
||||
spec:
|
||||
from:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
namespace: envoy-gateway-system
|
||||
to:
|
||||
- group: ""
|
||||
kind: Secret
|
||||
name: scoutingmbg-nl-tls
|
||||
Reference in new issue
Block a user