From e4b4b028a96404dfcb545aa00742dac133e15867 Mon Sep 17 00:00:00 2001 From: Claude AI Date: Tue, 3 Mar 2026 06:48:08 +0000 Subject: [PATCH] feat: add IngressRoute for weighted canary traffic --- 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..9235d86 --- /dev/null +++ b/apps/nginx-weighted/ingressroute.yaml @@ -0,0 +1,38 @@ +--- +# HTTPS — 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 — redirects all traffic to HTTPS +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