From 9447fe8b014be85b58a5b54822ff91f59f4b3c09 Mon Sep 17 00:00:00 2001 From: Claude AI Date: Wed, 4 Mar 2026 18:41:15 +0000 Subject: [PATCH] feat: TraefikService weighted routing 90/10 stable/canary --- apps/nginx-weighted/traefikservice.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apps/nginx-weighted/traefikservice.yaml diff --git a/apps/nginx-weighted/traefikservice.yaml b/apps/nginx-weighted/traefikservice.yaml new file mode 100644 index 0000000..912f3fe --- /dev/null +++ b/apps/nginx-weighted/traefikservice.yaml @@ -0,0 +1,25 @@ +--- +# TraefikService — weighted load balancer between stable and canary. +# THIS IS THE ONLY FILE YOU NEED TO EDIT to shift traffic weights. +# +# Weight scenarios: +# Initial canary test → stable: 90 canary: 10 +# Extended testing → stable: 50 canary: 50 +# Full promote to canary → stable: 0 canary: 100 +# Emergency rollback → stable: 100 canary: 0 +apiVersion: traefik.io/v1alpha1 +kind: TraefikService +metadata: + name: nginx-weighted + namespace: nginx-mcp +spec: + weighted: + services: + - name: nginx-mcp + namespace: nginx-mcp + port: 80 + weight: 90 + - name: nginx-canary-proxy + namespace: nginx-mcp + port: 80 + weight: 10