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:
Ruben Hensen committed 2026-10-23 17:39:04 +02:00
1 parent d1efb91a4b
commit 69a0661d09
13 files changed
+547

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: ntfy
spec:
parentRefs:
- name: homelab
namespace: envoy-gateway-system
sectionName: https-ntfy2
hostnames:
- ntfy2.rubenhensen.nl
rules:
- backendRefs:
- name: ntfy
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: letsencrypt-prod