feat: add TraefikService weighted routing 90/10

This commit is contained in:
Claude AI
2026-03-03 06:47:51 +00:00
parent 1cb39eb6fc
commit 93c041f3a9

View File

@@ -0,0 +1,23 @@
---
# TraefikService — weighted load balancer between stable and canary
# Edit weights to control traffic split:
# stable: 90, canary: 10 → 10% to canary (initial test)
# stable: 50, canary: 50 → 50% to canary (extended testing)
# stable: 0, canary: 100 → full promote canary to stable
# stable: 100, canary: 0 → emergency rollback
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