feat: deploy nginx-weighted traffic layer (TraefikService 90/10, TLS, HTTP redirect) #4
25
apps/nginx-weighted/traefikservice.yaml
Normal file
25
apps/nginx-weighted/traefikservice.yaml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user