Files
k8scd/gateway/gateway.yaml
T
Ruben Hensen 69a0661d09 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.
2026-10-23 17:39:04 +02:00

201 lines
4.8 KiB
YAML

# The single entry point for all HTTP(S) traffic. Each app adds an HTTPS
# listener for its hostname here and an HTTPRoute in its own namespace.
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: homelab
namespace: envoy-gateway-system
spec:
gatewayClassName: envoy
listeners:
- name: http
protocol: HTTP
port: 80
allowedRoutes:
namespaces:
from: All
# One HTTPS listener per hostname, each limited to its app's namespace.
# The certificates stay in the app namespaces (ReferenceGrant there).
- name: https-s2
protocol: HTTPS
port: 443
hostname: s2.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: gatus
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: gatus
- name: https-ynab
protocol: HTTPS
port: 443
hostname: ynab.rubenhensen.nl
tls:
certificateRefs:
- name: actual-budget-tls
namespace: actual-budget
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: actual-budget
- name: https-authentik
protocol: HTTPS
port: 443
hostname: authentik.rubenhensen.nl
tls:
certificateRefs:
- name: authentik-tls
namespace: authentik
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: authentik
- name: https-vic
protocol: HTTPS
port: 443
hostname: vic.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: bolletjestrui
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: bolletjestrui
- name: https-rss
protocol: HTTPS
port: 443
hostname: rss.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: freshrss
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: freshrss
- name: https-git
protocol: HTTPS
port: 443
hostname: git.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: gitea
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: gitea
- name: https-ha
protocol: HTTPS
port: 443
hostname: ha.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: home-assistant
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: home-assistant
- name: https-foto
protocol: HTTPS
port: 443
hostname: foto.scoutingmbg.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: immich
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: immich
- name: https-scoutingmbg
protocol: HTTPS
port: 443
hostname: scoutingmbg.nl
tls:
certificateRefs:
- name: scoutingmbg-nl-tls
namespace: mbgwp
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: mbgwp
- name: https-www-scoutingmbg
protocol: HTTPS
port: 443
hostname: www.scoutingmbg.nl
tls:
certificateRefs:
- name: scoutingmbg-nl-tls
namespace: mbgwp
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: mbgwp
- name: https-ntfy2
protocol: HTTPS
port: 443
hostname: ntfy2.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: ntfy
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: ntfy
- name: https-serpbear
protocol: HTTPS
port: 443
hostname: serpbear.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: serpbear
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: serpbear
- name: https-vault
protocol: HTTPS
port: 443
hostname: vault.rubenhensen.nl
tls:
certificateRefs:
- name: letsencrypt-prod
namespace: vault
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: vault