cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 1230662e6d96fbd3c43c3aed7f4cb3f6e53610e5
parent 7b2a80a1e43b351f013878a9411ee90b66d96cc9
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 19 Mar 2025 13:41:51 +0100

Migrate mas to HTTPRoute

Diffstat:
Mapps/base/envoy-gateway/release.yaml | 12++++++++++++
Mapps/base/matrix/mas/mas_deployment.yaml | 33++++++++++++++-------------------
2 files changed, 26 insertions(+), 19 deletions(-)

diff --git a/apps/base/envoy-gateway/release.yaml b/apps/base/envoy-gateway/release.yaml @@ -334,6 +334,18 @@ spec: certificateRefs: - kind: Secret name: rspamd.midnightthoughts.space-tls + - name: https-midnightthoughts-mas + protocol: HTTPS + hostname: "mas.midnightthoughts.space" + port: 443 + allowedRoutes: + namespaces: + from: "All" + tls: + mode: Terminate + certificateRefs: + - kind: Secret + name: mas.midnightthoughts.space-tls - name: https-nordgedanken-root protocol: HTTPS hostname: "nordgedanken.dev" diff --git a/apps/base/matrix/mas/mas_deployment.yaml b/apps/base/matrix/mas/mas_deployment.yaml @@ -96,26 +96,21 @@ spec: port: 8080 targetPort: 8080 --- -apiVersion: networking.k8s.io/v1 -kind: Ingress +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute metadata: name: mas - annotations: - cert-manager.io/cluster-issuer: letsencrypt-dns - external-dns.alpha.kubernetes.io/hostname: midnightthoughts.space + namespace: matrix spec: + parentRefs: + - name: envoy-gateway + namespace: envoy-gateway + hostnames: + - mas.midnightthoughts.space rules: - - host: mas.matrix.midnightthoughts.space - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: mas - port: - number: 8080 - tls: - - hosts: - - mas.matrix.midnightthoughts.space - secretName: mas.matrix.midnightthoughts.space-tls-secret + - backendRefs: + - name: mas + port: 8080 + timeouts: + request: 240s + backendRequest: 0s