From e9823e56ad1a634c554068ec24b5ec71ac8093c7 Mon Sep 17 00:00:00 2001 From: Claude AI Date: Wed, 4 Mar 2026 18:41:33 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20IngressRoutes=20=E2=80=94=20websecure?= =?UTF-8?q?=20(weighted)=20+=20web=20(redirect)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/nginx-weighted/ingressroute.yaml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 apps/nginx-weighted/ingressroute.yaml diff --git a/apps/nginx-weighted/ingressroute.yaml b/apps/nginx-weighted/ingressroute.yaml new file mode 100644 index 0000000..5e2c31f --- /dev/null +++ b/apps/nginx-weighted/ingressroute.yaml @@ -0,0 +1,38 @@ +--- +# HTTPS entrypoint — routes nginx.thedevops.dev through weighted TraefikService +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: nginx-weighted + namespace: nginx-mcp +spec: + entryPoints: + - websecure + routes: + - match: Host(`nginx.thedevops.dev`) + kind: Rule + services: + - name: nginx-weighted + namespace: nginx-mcp + kind: TraefikService + tls: + secretName: nginx-weighted-tls +--- +# HTTP entrypoint — redirects all HTTP traffic to HTTPS via middleware +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: nginx-weighted-http + namespace: nginx-mcp +spec: + entryPoints: + - web + routes: + - match: Host(`nginx.thedevops.dev`) + kind: Rule + middlewares: + - name: redirect-https + namespace: nginx-mcp + services: + - name: nginx-mcp + port: 80